public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] PXAMMC: Drop different delays for PXA27X
Date: Sat, 24 Apr 2010 03:29:34 +0200	[thread overview]
Message-ID: <201004240329.34513.marek.vasut@gmail.com> (raw)
In-Reply-To: <h2m2acbd3e41004231813ge8c09cdemab81e7cda5aa7f2a@mail.gmail.com>

Dne So 24. dubna 2010 03:13:07 Andy Fleming napsal(a):
> On Sun, Apr 4, 2010 at 7:32 PM, Marek Vasut <marek.vasut@gmail.com> wrote:
> > In case the delays were set to 10000, the MMC card on PXA27X boards (and
> > PXA3xx boards) didn't initialize on first try. Increasing the delays and
> > leaving just those for PXA25x and 26x (that is 200000) fixes this
> > problem.
> 
> In general, I object to board-specific #ifdefs in drivers.

This is not a board specific ifdef.

> At the
> very least, change this so that the value
> is specified like so:
> 
> #ifndef PXA_TIMEOUT_DELAY
> #define PXA_TIMEOUT_DELAY 10000
> #endif
> 
> And then override the value in the PXA27X config file.

No need to override anything.
> 
> That way, when the next board comes along, and someone objects to
> waiting a fifth of a second between each try, but they need more than
> 10,000us, they can override it to a different value without doing
> cascading #ifdefs.

There won't be any ifdefs or board specific goo.
> 
> Andy

  reply	other threads:[~2010-04-24  1:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-05  0:32 [U-Boot] [PATCH] PXAMMC: Drop different delays for PXA27X Marek Vasut
2010-04-14 19:43 ` Marek Vasut
2010-04-24  1:13 ` Andy Fleming
2010-04-24  1:29   ` Marek Vasut [this message]
2010-04-24  1:39     ` Andy Fleming
2010-04-24 11:30       ` Marek Vasut

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=201004240329.34513.marek.vasut@gmail.com \
    --to=marek.vasut@gmail.com \
    --cc=u-boot@lists.denx.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