Skip to contentSkip to conversation

sys_mpc83xx spi driver not probed

DISCUSSION Joel Rouch 3 participants 4 messages Nov 23, 2007 – Nov 26, 2007

lore
Share & tools
lore

Joel Rouch

author
#0 lore raw

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

#1 lore raw
Quoted 6 lines · Joel Rouch

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

author
#2 lore raw

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

Quoted 11 lines · Scott Wood
Quoted 4 lines · Joel Rouch

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

#3 lore raw
In reply to Scott Wood
Quoted 9 lines · Scott Wood
Quoted 6 lines · Joel Rouch

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,

Signature · 4 lines
Anton Vorontsov
email: [email protected]
backup email: [email protected]
irc://irc.freenode.net/bd2