Skip to content

Commit 945d03a

Browse files
authored
Merge pull request #2 from kostorr/cru-crorc-enum
Enumerate CRU and CRORC cards on modprobe
2 parents 4469d8b + 774c3b7 commit 945d03a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

patches/linux_uio/99-pda.rules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# on module load; set perms on /sys/...../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"
1+
# 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'"
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"

patches/linux_uio/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
KDIR := /lib/modules/$(shell uname -r)/build
22
VERSION := $(shell uname -r)-$(shell cat uio_pci_dma.h | grep UIO_PCI_DMA_VERSION | cut -d\" -f2)
3-
DKMS_VERSION := 1.0.3
3+
DKMS_VERSION := 1.0.4
44
DKMS_DIR=pda-kadapter-dkms-${DKMS_VERSION}
55

66
all: prepare

patches/linux_uio/dkms.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PACKAGE_VERSION="1.0.3"
1+
PACKAGE_VERSION="1.0.4"
22

33
# Items below here should not have to change with each driver version
44
PACKAGE_NAME="pda-kadapter-dkms"

patches/linux_uio/pda_kadapter_dkms.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
%define module pda-kadapter-dkms
2-
%define version 1.0.3
2+
%define version 1.0.4
33

44
Summary: PDA kernel adapter DKMS package
55
Name: %{module}

0 commit comments

Comments
 (0)