linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Anton Vorontsov <avorontsov@ru.mvista.com>
To: "Stepanov, Sergej" <Sergej.Stepanov@ids.de>
Cc: "linuxppc-dev@ozlabs.org" <linuxppc-dev@ozlabs.org>
Subject: Re: mmc_spi with GPIO_MODE_3
Date: Fri, 31 Oct 2008 16:45:43 +0300	[thread overview]
Message-ID: <20081031134542.GA4875@oksana.dev.rtsoft.ru> (raw)
In-Reply-To: <4206182445660643B9AEB8D4E55BBD0A17724C7E@HERMES2>

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

  reply	other threads:[~2008-10-31 13:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-31 12:49 mmc_spi with GPIO_MODE_3 Stepanov, Sergej
2008-10-31 13:45 ` Anton Vorontsov [this message]
2008-10-31 15:16   ` AW: " Stepanov, Sergej

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081031134542.GA4875@oksana.dev.rtsoft.ru \
    --to=avorontsov@ru.mvista.com \
    --cc=Sergej.Stepanov@ids.de \
    --cc=linuxppc-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).