EmbeddedRelated.com
Forums

Need to know code flow spi driver

Started by Ravi Gupta November 20, 2012









Hi all,

I am trying to see how a spi driver is registered as character device. In linux kernel 2.6.25, in drivers\spi\atmel_spi.c, in the probe function I could not find spi_register_driver(). I would also like to know the code flow for how spi driver registers itself as character device.

 

Thanks & Regards,

Ravi Gupta

 

Get your FREE, LinuxWaves.com Email Now! --> http://www.LinuxWaves.com
Join Linux Discussions! --> http://Community.LinuxWaves.com











__._,_.___






stime53394880













__,_._,___
Hi Ravi,
See the file drivers/spi/spidev.c
Atmel_spi.c is a platform driver and not a spi client driver.
Regards,
TVRPrasad
Technical Lead,
KPIT
>
> **
> Hi all,
> I am trying to see how a spi driver is registered as character device. In
> linux kernel 2.6.25, in drivers\spi\atmel_spi.c, in the probe function I
> could not find spi_register_driver(). I would also like to know the code
> flow for how spi driver registers itself as character device.
>
> Thanks & Regards,
> Ravi Gupta
> ------------------------------
> Get your FREE, LinuxWaves.com Email Now! --> http://www.LinuxWaves.com
> Join Linux Discussions! --> http://Community.LinuxWaves.com
>
>