* Bitbanged SPI over GPIO probe fail
@ 2010-08-09 15:35 Orjan Friberg
[not found] ` <4C60205B.9090202-Gxjboj7dVqxWk0Htik3J/w@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Orjan Friberg @ 2010-08-09 15:35 UTC (permalink / raw)
To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Hi list,
I'm trying to use the bitbanged spi_gpio.c driver on a Beagleboard,
using the inlined approach (defining gpio pin numbers and cs).
When modprobing the driver platform_driver_probe returns -ENODEV but
spi_gpio_probe is not being called, which seems odd to me. Any suggestions?
This is on a 2.6.32 TI PSP kernel.
There is in fact no device attached on the pins, but as the driver's
probe function isn't called I don't think it should matter. Also, I
have checked that I can manually control the pins through /sys/class/gpio.
Thanks,
Orjan
--
Orjan Friberg
FlatFrog Laboratories AB
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Bitbanged SPI over GPIO probe fail
[not found] ` <4C60205B.9090202-Gxjboj7dVqxWk0Htik3J/w@public.gmane.org>
@ 2010-08-11 16:44 ` Orjan Friberg
0 siblings, 0 replies; 2+ messages in thread
From: Orjan Friberg @ 2010-08-11 16:44 UTC (permalink / raw)
To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On 2010-08-09 17:35, Orjan Friberg wrote:
> When modprobing the driver platform_driver_probe returns -ENODEV but
> spi_gpio_probe is not being called, which seems odd to me. Any suggestions?
This part I still don't understand, but I can at least insmod the driver
by changing platform_driver_probe to platform_driver_register; it shows
up in /sys/bus/platform/drivers now too.
(I get that I need to call platform_driver_register and create a sysfs
entry etc before I have a device to play with.)
--
Orjan Friberg
FlatFrog Laboratories AB
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-11 16:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-09 15:35 Bitbanged SPI over GPIO probe fail Orjan Friberg
[not found] ` <4C60205B.9090202-Gxjboj7dVqxWk0Htik3J/w@public.gmane.org>
2010-08-11 16:44 ` Orjan Friberg
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).