<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">Thanks.</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"> </DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">Should I have to rebuild kernel when a new spi slave device is added? </DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"> </DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">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.<BR><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: andrzej zaborowski <balrogg@gmail.com><BR>To: Jerry Shao <jerrylshao@yahoo.com><BR>Cc: openmoko-devel@lists.openmoko.org<BR>Sent: Monday, February 25, 2008 4:38:48 AM<BR>Subject: Re: SPI device driver question<BR><BR>On 25/02/2008, Jerry Shao <<A href="mailto:jerrylshao@yahoo.com" ymailto="mailto:jerrylshao@yahoo.com">jerrylshao@yahoo.com</A>> wrote:<BR>> I am working on FIC phone (gta01) to add a new spi device. The problem is<BR>> that the probe function is not invoked when spi_register_driver is called.<BR>> Can anyone provide information how to make probe function to be called?<BR>><BR>> Looks to me that we have to add the device info (such as name, irq...) in<BR>> spi_board_info in mach-gta01.c Can anyone confirm is it right way?<BR><BR>Yes, exactly. As with platform_devices, the .name
field needs to match<BR>that of the driver. Note that the probe function is not invoked<BR>immediately when spi_register_driver is called. It will be called<BR>later in the boot sequence.<BR><BR>Regards<BR>-- <BR>Please do not print this email unless absolutely necessary. Spread<BR>environmental awareness.<BR><BR></DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"><BR></DIV></div><br>
<hr size=1>Looking for last minute shopping deals? <a href="http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping">
Find them fast with Yahoo! Search.</a></body></html>