* sys_mpc83xx spi driver not probed
@ 2007-11-23 17:02 Joel Rouch
2007-11-26 16:39 ` Scott Wood
0 siblings, 1 reply; 4+ messages in thread
From: Joel Rouch @ 2007-11-23 17:02 UTC (permalink / raw)
To: linuxppc-dev
Hello
I have a custom 8349 ppc board. I have defined the spi master in the
configuration.
While booting my board, I driver is well added and linked to platform
bus, however I don't see that the probe entry point is reached.
I don't succeed to understand who is triggering the probe. Can someone
point me to the right link or explain me how to force it ?
Thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: sys_mpc83xx spi driver not probed
2007-11-23 17:02 sys_mpc83xx spi driver not probed Joel Rouch
@ 2007-11-26 16:39 ` Scott Wood
2007-11-26 17:21 ` Joel Rouch
2007-11-26 17:40 ` Anton Vorontsov
0 siblings, 2 replies; 4+ messages in thread
From: Scott Wood @ 2007-11-26 16:39 UTC (permalink / raw)
To: Joel Rouch; +Cc: linuxppc-dev
On Fri, Nov 23, 2007 at 07:02:23PM +0200, Joel Rouch wrote:
> I have a custom 8349 ppc board. I have defined the spi master in the
> configuration.
> While booting my board, I driver is well added and linked to platform
> bus, however I don't see that the probe entry point is reached.
> I don't succeed to understand who is triggering the probe. Can someone
> point me to the right link or explain me how to force it ?
Are you calling of_platform_bus_probe() from your board file?
-Scott
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: sys_mpc83xx spi driver not probed
2007-11-26 16:39 ` Scott Wood
@ 2007-11-26 17:21 ` Joel Rouch
2007-11-26 17:40 ` Anton Vorontsov
1 sibling, 0 replies; 4+ messages in thread
From: Joel Rouch @ 2007-11-26 17:21 UTC (permalink / raw)
To: Scott Wood; +Cc: linuxppc-dev
Unfortunately not as I still need to use ARCH=ppc.
I am just using a platform_driver_probe() from the module_init.
static int __init mpc83xx_spi_init(void)
{
return platform_driver_probe(&mpc83xx_spi_driver, mpc83xx_spi_probe);
}
Thanks
Scott Wood wrote:
> On Fri, Nov 23, 2007 at 07:02:23PM +0200, Joel Rouch wrote:
>
>> I have a custom 8349 ppc board. I have defined the spi master in the
>> configuration.
>> While booting my board, I driver is well added and linked to platform
>> bus, however I don't see that the probe entry point is reached.
>> I don't succeed to understand who is triggering the probe. Can someone
>> point me to the right link or explain me how to force it ?
>>
>
> Are you calling of_platform_bus_probe() from your board file?
>
> -Scott
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: sys_mpc83xx spi driver not probed
2007-11-26 16:39 ` Scott Wood
2007-11-26 17:21 ` Joel Rouch
@ 2007-11-26 17:40 ` Anton Vorontsov
1 sibling, 0 replies; 4+ messages in thread
From: Anton Vorontsov @ 2007-11-26 17:40 UTC (permalink / raw)
To: Scott Wood; +Cc: linuxppc-dev
On Mon, Nov 26, 2007 at 10:39:56AM -0600, Scott Wood wrote:
> On Fri, Nov 23, 2007 at 07:02:23PM +0200, Joel Rouch wrote:
> > I have a custom 8349 ppc board. I have defined the spi master in the
> > configuration.
> > While booting my board, I driver is well added and linked to platform
> > bus, however I don't see that the probe entry point is reached.
> > I don't succeed to understand who is triggering the probe. Can someone
> > point me to the right link or explain me how to force it ?
>
> Are you calling of_platform_bus_probe() from your board file?
spi_mpc83xx isn't of_platform_driver, yet. Thus we have to use fsl helper,
fsl_spi_init.
So far, good example of spi_mpc83xx usage is in
arch/powerpc/platforms/83xx/mpc832x_rdb.c
Good luck,
--
Anton Vorontsov
email: cbou@mail.ru
backup email: ya-cbou@yandex.ru
irc://irc.freenode.net/bd2
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-11-26 17:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-23 17:02 sys_mpc83xx spi driver not probed Joel Rouch
2007-11-26 16:39 ` Scott Wood
2007-11-26 17:21 ` Joel Rouch
2007-11-26 17:40 ` Anton Vorontsov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).