linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udev rule for custom driver
@ 2006-12-19  0:41 Justin Clacherty
  2006-12-19  0:53 ` Alex Merry
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Justin Clacherty @ 2006-12-19  0:41 UTC (permalink / raw)
  To: linux-hotplug

Hi,

I've been trying to get a udev rule to automatically create the /dev 
entries for the custom spi driver I've written for my board but am 
having no luck.  I've created the file /etc/udev/rules.d/10-spi.rules 
which contains the following line:

SUBSYSTEM="spi", SYSFS{modalias}="nexus_spi", NAME="nspi%n"

If I run udevmonitor and do a udev trigger I see the following line in 
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="spi1.0"
    SUBSYSTEM="spi"
    SYSFS{modalias}="nexus_spi"

  looking at parent device '/devices/platform/pxa2xx-spi.1':
    ID="pxa2xx-spi.1"
    BUS="platform"
    DRIVER="pxa2xx-spi"
    SYSFS{modalias}="pxa2xx-spi"

  looking at parent device '/devices/platform':
    ID="platform"
    BUS=""
    DRIVER=""

Running udevtest on the sysfs tree gives the following output:

main: looking at device '/devices/platform/pxa2xx-spi.1/spi1.0' from 
subsystem 'spi'
main: run: 'socket:/org/kernel/udev/monitor'

Obviously I've missed something here, can anyone point to the problem?  
Do I need to add something to my driver for this to work or is my udev 
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=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-12-19  7:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-19  0:41 udev rule for custom driver Justin Clacherty
2006-12-19  0:53 ` Alex Merry
2006-12-19  1:19 ` Justin Clacherty
2006-12-19  3:33 ` Justin Clacherty
2006-12-19  7:31 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).