Skip to content

Commit 987201f

Browse files
committed
Add new CRU vendor and device ID in the udev enumeration rule
1 parent 945d03a commit 987201f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patches/linux_uio/99-pda.rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# on module load; set perms on /sys/...../new_id; enumerate CRUs & CRORCs
2-
SUBSYSTEM=="drivers", ACTION=="add", KERNEL=="uio_pci_dma", RUN+="/bin/chgrp pda /sys/%p/new_id", RUN+="/bin/chmod 0220 /sys/%p/new_id", RUN+="/bin/sh -c 'echo 1172 e001 > /sys/bus/pci/drivers/uio_pci_dma/new_id'", RUN+="/bin/sh -c 'echo 10dc 0033 > /sys/bus/pci/drivers/uio_pci_dma/new_id'"
2+
SUBSYSTEM=="drivers", ACTION=="add", KERNEL=="uio_pci_dma", RUN+="/bin/chgrp pda /sys/%p/new_id", RUN+="/bin/chmod 0220 /sys/%p/new_id", RUN+="/bin/sh -c 'echo 1172 e001 > /sys/bus/pci/drivers/uio_pci_dma/new_id'", RUN+="/bin/sh -c 'echo 10dc 0033 > /sys/bus/pci/drivers/uio_pci_dma/new_id'", RUN+="/bin/sh -c 'echo 10dc 0034 > /sys/bus/pci/drivers/uio_pci_dma/new_id'"
33

44
# new device added; set perms on /dev/uioX and PCI config and resources
55
SUBSYSTEM=="uio", ACTION=="add", RUN+="/bin/chgrp pda %N /sys/%p/device/config /sys/%p/device/resource0 /sys/%p/device/resource1", RUN+="/bin/chmod 0664 %N /sys/%p/device/config" RUN+="/bin/chmod 0660 %N /sys/%p/device/resource0 /sys/%p/device/resource1"

0 commit comments

Comments
 (0)