<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">&nbsp;</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">Should&nbsp;I have to rebuild kernel&nbsp;when a new spi slave device is added?&nbsp;</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif">Is any non-static way (no need to&nbsp;rebuild kernel)&nbsp;to&nbsp;register spi slave device in driver level?&nbsp; That case&nbsp;I don't have to rebuild kernel, but using&nbsp;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 &lt;balrogg@gmail.com&gt;<BR>To: Jerry Shao &lt;jerrylshao@yahoo.com&gt;<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 &lt;<A href="mailto:jerrylshao@yahoo.com" ymailto="mailto:jerrylshao@yahoo.com">jerrylshao@yahoo.com</A>&gt; wrote:<BR>&gt; I am working on FIC phone (gta01) to add a new spi device. The problem is<BR>&gt; that&nbsp; the probe function is not invoked when spi_register_driver is called.<BR>&gt; Can anyone provide information how to make probe function to be called?<BR>&gt;<BR>&gt; Looks to me that we have to add the device info (such as name, irq...) in<BR>&gt; 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.&nbsp; Note that the probe function is not invoked<BR>immediately when spi_register_driver is called.&nbsp; 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>