SPI device driver question
jerrylshao at yahoo.com
Mon Feb 25 20:35:56 CET 2008
Should I have to rebuild kernel when a new spi slave device is added?
Is any non-static way (no need to rebuild kernel) to register spi slave device in driver level? That case I don't have to rebuild kernel, but using driver modules to fill necessary devive info and register driver.
----- Original Message ----
From: andrzej zaborowski <balrogg at gmail.com>
To: Jerry Shao <jerrylshao at yahoo.com>
Cc: openmoko-devel at lists.openmoko.org
Sent: Monday, February 25, 2008 4:38:48 AM
Subject: Re: SPI device driver question
On 25/02/2008, Jerry Shao <jerrylshao at yahoo.com> wrote:
> I am working on FIC phone (gta01) to add a new spi device. The problem is
> that the probe function is not invoked when spi_register_driver is called.
> Can anyone provide information how to make probe function to be called?
> Looks to me that we have to add the device info (such as name, irq...) in
> spi_board_info in mach-gta01.c Can anyone confirm is it right way?
Yes, exactly. As with platform_devices, the .name field needs to match
that of the driver. Note that the probe function is not invoked
immediately when spi_register_driver is called. It will be called
later in the boot sequence.
Please do not print this email unless absolutely necessary. Spread
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the openmoko-devel