From: md@Linux.IT (Marco d'Itri) Date: Sun, 14 Mar 2010 11:12:13 +0000 Subject: create persistent links for PCI input devices Message-Id: <20100314111213.GA17935@bongo.bofh.it> MIME-Version: 1 Content-Type: multipart/mixed; boundary="SLDf9lqlvOQaIe6s" List-Id: To: linux-hotplug@vger.kernel.org --SLDf9lqlvOQaIe6s Content-Type: text/plain; charset=us-ascii Content-Disposition: inline This is needed to create links for e.g. the IR receivers of PCI DVB cards. -- ciao, Marco --SLDf9lqlvOQaIe6s Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="pci-persistent-input.diff" --- rules/rules.d/60-persistent-input.rules~ 2009-12-03 13:45:03.000000000 +0100 +++ rules/rules.d/60-persistent-input.rules 2010-03-14 12:03:22.725004917 +0100 @@ -27,7 +27,7 @@ SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-event-if$attr{bInterfaceNumber}" # by-path -SUBSYSTEMS=="usb|platform", IMPORT{program}="path_id %p" +SUBSYSTEMS=="pci|usb|platform", IMPORT{program}="path_id %p" ENV{ID_PATH}=="?*", KERNEL=="mouse*|js*", ENV{.INPUT_CLASS}=="?*", SYMLINK+="input/by-path/$env{ID_PATH}-$env{.INPUT_CLASS}" ENV{ID_PATH}=="?*", KERNEL=="event*", ENV{.INPUT_CLASS}=="?*", SYMLINK+="input/by-path/$env{ID_PATH}-event-$env{.INPUT_CLASS}" # allow empty class for platform and usb devices; platform supports only a single interface that way --SLDf9lqlvOQaIe6s--