All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ajay Bhargav <ajay.bhargav@einfochips.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] mmc: mv_sdhci: Fix host version read for Armada100
Date: Wed, 2 Nov 2011 11:08:07 +0530 (IST)	[thread overview]
Message-ID: <1876746588.290118.1320212287548.JavaMail.root@ahm.einfochips.com> (raw)
In-Reply-To: <CALZhoSQjcryT2TPeXuUtu62BQXZ0VQWrkDhtbcY9gWHNSkZWAw@mail.gmail.com>


----- "Lei Wen" <adrian.wenl@gmail.com> wrote:

> Hi Ajay,
> 
> On Tue, Nov 1, 2011 at 5:39 PM, Ajay Bhargav
> <ajay.bhargav@einfochips.com> wrote:
> > sdhci_readw does not work for host version read in Armada100 series
> > SoCs. This patch fix this issue by making a sdhci_readl call to get
> host
> > version.
> >
> > Signed-off-by: Ajay Bhargav <ajay.bhargav@einfochips.com>
> > ---
> > ?drivers/mmc/mv_sdhci.c | ? ?6 ++++++
> > ?1 files changed, 6 insertions(+), 0 deletions(-)
> >
> > diff --git a/drivers/mmc/mv_sdhci.c b/drivers/mmc/mv_sdhci.c
> > index f92caeb..c7fd287 100644
> > --- a/drivers/mmc/mv_sdhci.c
> > +++ b/drivers/mmc/mv_sdhci.c
> > @@ -30,6 +30,7 @@ static inline void mv_sdhci_writeb(struct
> sdhci_host *host, u8 val, int reg)
> > ?#endif /* CONFIG_MMC_SDHCI_IO_ACCESSORS */
> >
> > ?static char *MVSDH_NAME = "mv_sdh";
> > +
> > ?int mv_sdh_init(u32 regbase, u32 max_clk, u32 min_clk, u32 quirks)
> > ?{
> > ? ? ? ?struct sdhci_host *host = NULL;
> > @@ -48,7 +49,12 @@ int mv_sdh_init(u32 regbase, u32 max_clk, u32
> min_clk, u32 quirks)
> > ? ? ? ? ? ? ? ?mv_ops.write_b = mv_sdhci_writeb;
> > ? ? ? ?host->ops = &mv_ops;
> > ?#endif
> > +#ifdef CONFIG_ARMADA100
> 
> You should following my previous fixing sample to add the workaround:
> http://patchwork.ozlabs.org/patch/117575/
> 
Patches acked? I didn't know it. Or I should wait for your patches to get mainlined first.

> Just keep in mind that, it is generic driver and don't put private
> fixing there. :)
> 
> Thanks,
> Lei
> 
Any good way to put that fix? Or else I can simply follow Marek's solution to add a quirk for this instead of defining it for a CPU. What you say?

Regards,
Ajay Bhargav

  reply	other threads:[~2011-11-02  5:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-01  9:39 [U-Boot] [PATCH] mmc: mv_sdhci: Fix host version read for Armada100 Ajay Bhargav
2011-11-01 11:49 ` Marek Vasut
2011-11-01 14:13 ` Lei Wen
2011-11-02  5:38   ` Ajay Bhargav [this message]
     [not found] <868712092.287809.1320150229717.JavaMail.root@ahm.einfochips.com>
2011-11-01 12:30 ` Ajay Bhargav
2011-11-01 14:57   ` Marek Vasut
     [not found] <1050282894.290152.1320212635906.JavaMail.root@ahm.einfochips.com>
2011-11-02  5:46 ` Ajay Bhargav
2011-11-02 10:25   ` Marek Vasut
2011-11-02 12:09     ` Prafulla Wadaskar
2011-11-02 14:28       ` Marek Vasut
2011-11-03  7:41         ` Prafulla Wadaskar

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=1876746588.290118.1320212287548.JavaMail.root@ahm.einfochips.com \
    --to=ajay.bhargav@einfochips.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.