From mboxrd@z Thu Jan 1 00:00:00 1970 From: Justin Clacherty Date: Tue, 19 Dec 2006 00:41:09 +0000 Subject: udev rule for custom driver Message-Id: <45873525.8050007@redfish-group.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org Hi, I've been trying to get a udev rule to automatically create the /dev=20 entries for the custom spi driver I've written for my board but am=20 having no luck. I've created the file /etc/udev/rules.d/10-spi.rules=20 which contains the following line: SUBSYSTEM=3D"spi", SYSFS{modalias}=3D"nexus_spi", NAME=3D"nspi%n" If I run udevmonitor and do a udev trigger I see the following line in=20 the output: UEVENT[1166449657.257561] add@/devices/platform/pxa2xx-spi.1/spi1.0 Running udevinfo on /devices/platform/pxa2xx-spi.1/spi1.0 gives: looking at device '/devices/platform/pxa2xx-spi.1/spi1.0': KERNEL=3D"spi1.0" SUBSYSTEM=3D"spi" SYSFS{modalias}=3D"nexus_spi" looking at parent device '/devices/platform/pxa2xx-spi.1': ID=3D"pxa2xx-spi.1" BUS=3D"platform" DRIVER=3D"pxa2xx-spi" SYSFS{modalias}=3D"pxa2xx-spi" looking at parent device '/devices/platform': ID=3D"platform" BUS=3D"" DRIVER=3D"" Running udevtest on the sysfs tree gives the following output: main: looking at device '/devices/platform/pxa2xx-spi.1/spi1.0' from=20 subsystem 'spi' main: run: 'socket:/org/kernel/udev/monitor' Obviously I've missed something here, can anyone point to the problem? =20 Do I need to add something to my driver for this to work or is my udev=20 setup at fault? Regards, Justin. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=DEVD= EV _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel