[systemd-devel] [SOLVED] Re: udev rule for GPIO "chip"
Ian Pilcher
arequipeno at gmail.com
Sat Dec 17 17:54:48 UTC 2016
On 12/17/2016 10:59 AM, Ian Pilcher wrote:
> I am trying to write a udev rule that will match a GPIO "chip" (not
> a particular GPIO).
>
> The device in question is:
>
> # udevadm info -q all -p
> /sys/devices/pci0000:00/0000:00:1f.0/gpio_ich.1.auto/gpio/gpiochip195
> P: /devices/pci0000:00/0000:00:1f.0/gpio_ich.1.auto/gpio/gpiochip195
> E:
> DEVPATH=/devices/pci0000:00/0000:00:1f.0/gpio_ich.1.auto/gpio/gpiochip195
> E: SUBSYSTEM=gpio
>
> I am trying (unsuccessfully) to match it with this rule:
>
> ACTION=="add",
> DEVPATH=="/sys/devices/pci0000:00/0000:00:1f.0/gpio_ich.1.auto/gpio/gpiochip195",RUN+="/usr/sbin/modprobe
> n5550_board"
Aargh! I needed to remove the leading "/sys" from the path.
--
========================================================================
Ian Pilcher arequipeno at gmail.com
-------- "I grew up before Mark Zuckerberg invented friendship" --------
========================================================================
More information about the systemd-devel
mailing list