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 arequip...@gmail.com
-------- "I grew up before Mark Zuckerberg invented friendship" --------
========================================================================
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel