* mmc_spi with GPIO_MODE_3
@ 2008-10-31 12:49 Stepanov, Sergej
2008-10-31 13:45 ` Anton Vorontsov
0 siblings, 1 reply; 3+ messages in thread
From: Stepanov, Sergej @ 2008-10-31 12:49 UTC (permalink / raw)
To: Anton Vorontsov; +Cc: linuxppc-dev@ozlabs.org
Hello Anton,
could you say me please, would the mmc_spi-driver function with GPIO_MODE_3=
?
I have seen in mmc_spi_probe() this spi->mode =3D SPI_MODE_0.
What should come back if i have CI and CP other then in SPI_MODE_0?
Thank you for any advice.
Sergej.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: mmc_spi with GPIO_MODE_3
2008-10-31 12:49 mmc_spi with GPIO_MODE_3 Stepanov, Sergej
@ 2008-10-31 13:45 ` Anton Vorontsov
2008-10-31 15:16 ` AW: " Stepanov, Sergej
0 siblings, 1 reply; 3+ messages in thread
From: Anton Vorontsov @ 2008-10-31 13:45 UTC (permalink / raw)
To: Stepanov, Sergej; +Cc: linuxppc-dev@ozlabs.org
On Fri, Oct 31, 2008 at 01:49:31PM +0100, Stepanov, Sergej wrote:
> Hello Anton,
>
> could you say me please, would the mmc_spi-driver function with GPIO_MODE_3?
You mean SPI_MODE_3? Well, it should work, or even better it shouldn't
matter if it is 3 or 0. See Pierre's answer:
http://www.mail-archive.com/spi-devel-general@lists.sourceforge.net/msg00160.html
But in reality MODE_0 works better.
http://www.mail-archive.com/spi-devel-general@lists.sourceforge.net/msg00155.html
http://www.mail-archive.com/spi-devel-general@lists.sourceforge.net/msg00231.html
IIRC nobody knows why exactly this happens, or better, nobody bothered
to investigate, since MODE_0 works OK. ;-)
> I have seen in mmc_spi_probe() this spi->mode = SPI_MODE_0.
> What should come back if i have CI and CP other then in SPI_MODE_0?
Something like this I suppose:
http://www.mail-archive.com/spi-devel-general@lists.sourceforge.net/msg00153.html
--
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
^ permalink raw reply [flat|nested] 3+ messages in thread
* AW: mmc_spi with GPIO_MODE_3
2008-10-31 13:45 ` Anton Vorontsov
@ 2008-10-31 15:16 ` Stepanov, Sergej
0 siblings, 0 replies; 3+ messages in thread
From: Stepanov, Sergej @ 2008-10-31 15:16 UTC (permalink / raw)
To: avorontsov@ru.mvista.com; +Cc: linuxppc-dev@ozlabs.org
Thanks for answer
somewhere i have seen:
"For a while it seemed like MMC cards worked OK but not SD cards!"
Hm...
I have a SD card: Transcend, 512Mb... may it be the problem?..
Sergej.
________________________________________
Von: Anton Vorontsov [avorontsov@ru.mvista.com]
Gesendet: Freitag, 31. Oktober 2008 14:45
An: Stepanov, Sergej
Cc: linuxppc-dev@ozlabs.org
Betreff: Re: mmc_spi with GPIO_MODE_3
On Fri, Oct 31, 2008 at 01:49:31PM +0100, Stepanov, Sergej wrote:
> Hello Anton,
>
> could you say me please, would the mmc_spi-driver function with GPIO_MODE=
_3?
You mean SPI_MODE_3? Well, it should work, or even better it shouldn't
matter if it is 3 or 0. See Pierre's answer:
http://www.mail-archive.com/spi-devel-general@lists.sourceforge.net/msg0016=
0.html
But in reality MODE_0 works better.
http://www.mail-archive.com/spi-devel-general@lists.sourceforge.net/msg0015=
5.html
http://www.mail-archive.com/spi-devel-general@lists.sourceforge.net/msg0023=
1.html
IIRC nobody knows why exactly this happens, or better, nobody bothered
to investigate, since MODE_0 works OK. ;-)
> I have seen in mmc_spi_probe() this spi->mode =3D SPI_MODE_0.
> What should come back if i have CI and CP other then in SPI_MODE_0?
Something like this I suppose:
http://www.mail-archive.com/spi-devel-general@lists.sourceforge.net/msg0015=
3.html
--
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-31 15:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-31 12:49 mmc_spi with GPIO_MODE_3 Stepanov, Sergej
2008-10-31 13:45 ` Anton Vorontsov
2008-10-31 15:16 ` AW: " Stepanov, Sergej
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).