On 06/04/2012 10:48 AM, Pierre-Emmanuel Goudet wrote: > We are now able to confirm that device ".name" and > ".modalias" inside board configuration have got the same value. > > Everything seems fine and correctly executed during boot sequence. > > We've made the driver as a loadable module. Then when we "modprobe" the > module it correctly start/init and register. BUT definitely we never go > through it's "probe" function.
You shouldn't have to modprobe it. Do you have a MODULE_DEVICE_TABLE in your driver? This is what makes it modprobe automatically. Even without this though, it should probe you if you modprobe manually. This leads me to believe something is not correct in your board file. > We are expecting a new physical driver that could be detected with the "iz > listphy" userspace tool from Linux-zigbee (like a "wpan-phyX" interface). Is > that ok ? > > Have you got any idea about what we are missing ? > Look at the existing drivers, like cc2420. > Maybe something to do on user side ? Nothing on the user side should be required. > Have you got any idea of where we could find the task that "probe" existing > or "loadable" driverS inside the kernel ? This way we could try to debug it > to see if it parse all the declared SPI devices ? The SPI subsystem probes you if it believes that your driver is responsible for communicating with an SPI device which it believes is connected to the system. This relationship is set up like you said with the .modalias and the .name. I think you have it set up incorrectly in the board file. Post your code and we can take a look. Alan. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Linux-zigbee-devel mailing list Linux-zigbee-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel