From: Pierre Ossman <drzeus@drzeus.cx>
To: "Wolfgang Mües" <wolfgang.mues@auerswald.de>
Cc: "Andrew Morton" <akpm@linux-foundation.org>,
"Matt Fleming" <matt@console-pimps.org>,
"David Brownell" <dbrownell@users.sourceforge.net>,
linux-kernel@vger.kernel.org,
"Mike Frysinger" <vapier.adi@gmail.com>
Subject: Re: [PATCH] Fixes and enhancements for the MMC SPI driver - revised
Date: Sat, 21 Feb 2009 15:16:21 +0100 [thread overview]
Message-ID: <20090221151621.34125c6a@mjolnir.ossman.eu> (raw)
In-Reply-To: <200902091253.57594.wolfgang.mues@auerswald.de>
[-- Attachment #1: Type: text/plain, Size: 1338 bytes --]
On Mon, 9 Feb 2009 12:53:57 +0100
Wolfgang Mües <wolfgang.mues@auerswald.de> wrote:
>
> Hmmm. Inside the core, this timeout value will be calculated as:
>
> timeout = 250ms;
> if (driver == SPI)
> timeout = 1s;
>
> I agree that it is confusing to have the timeout value set on two places.
> Do you prefer to have it set in the mmc core, different for SPI and non-SPI?
>
Yes please. With a comment though.
> > > - if (host->mmc->use_spi_crc) {
> > > + /*
> > > + * Omit the CRC check for CID and CSD reads. There are some SDHC
>
> > Hmmm... I think this also better handled in the core. Reorder things in
> > the init to not turn CRC checks on until after those registers have
> > been read.
>
> No! CRC checks are ONLY disabled for CID and CSD reads, NOT for the reading of
> data blocks. And I don't want to set use_spi_scc == 0 because I don't want to
> disable the safety of CRC for data blocks.
>
I said reorder, not remove. :)
I.e. move the call to mmc_spi_set_crc() to after the CID and CSD have
been read. Again with a comment explaining the issue.
Rgds
--
-- Pierre Ossman
WARNING: This correspondence is being monitored by the
Swedish government. Make sure your server uses encryption
for SMTP traffic and consider using PGP for end-to-end
encryption.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
prev parent reply other threads:[~2009-02-21 14:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20090113015904.606e3548.akpm@linux-foundation.org>
2009-01-26 13:18 ` Wolfgang Mües
2009-02-08 19:44 ` Pierre Ossman
2009-02-09 11:53 ` Wolfgang Mües
2009-02-21 14:16 ` Pierre Ossman [this message]
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=20090221151621.34125c6a@mjolnir.ossman.eu \
--to=drzeus@drzeus.cx \
--cc=akpm@linux-foundation.org \
--cc=dbrownell@users.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=matt@console-pimps.org \
--cc=vapier.adi@gmail.com \
--cc=wolfgang.mues@auerswald.de \
/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
all inboxes | Powered by JetHome®