From: Joakim Tjernlund <joakim.tjernlund@transmode.se>
To: "ulf.hansson@linaro.org" <ulf.hansson@linaro.org>
Cc: "linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>
Subject: Re: [PATCH] sdhci-of-esdhc: Support 8BIT bus width.
Date: Tue, 5 May 2015 09:04:33 +0000 [thread overview]
Message-ID: <1430816674.27859.71.camel@transmode.se> (raw)
In-Reply-To: <CAPDyKFpQuLDafARu6=5XqxPsShRzcC__ZFgjE1yUrP4SobFjGQ@mail.gmail.com>
On Tue, 2015-05-05 at 10:34 +0200, Ulf Hansson wrote:
> On 20 April 2015 at 23:11, Joakim Tjernlund
> <joakim.tjernlund@transmode.se> wrote:
> > Signed-off-by: Joakim Tjernlund <joakim.tjernlund@transmode.se>
>
> Thanks, applied.
>
> Kind regards
> Uffe
Argh, I just learned that this patch is buggy. Please "unapply"
Jocke
>
>
> > ---
> > drivers/mmc/host/sdhci-of-esdhc.c | 10 ++++++++++
> > 1 file changed, 10 insertions(+)
> >
> > diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b/drivers/mmc/host/sdhci-of-esdhc.c
> > index 22e9111..7130130 100644
> > --- a/drivers/mmc/host/sdhci-of-esdhc.c
> > +++ b/drivers/mmc/host/sdhci-of-esdhc.c
> > @@ -82,6 +82,10 @@ static u8 esdhc_readb(struct sdhci_host *host, int reg)
> > /* fixup the result */
> > ret &= ~SDHCI_CTRL_DMA_MASK;
> > ret |= dma_bits;
> > +
> > + /* 8BIT is bit 29 in Control register */
> > + ret |= ((ret << 3) & SDHCI_CTRL_8BITBUS);
> > + ret &= ~(SDHCI_CTRL_8BITBUS >> 3);
> > }
> >
> > return ret;
> > @@ -134,6 +138,10 @@ static void esdhc_writeb(struct sdhci_host *host, u8 val, int reg)
> > dma_bits);
> > val &= ~SDHCI_CTRL_DMA_MASK;
> > val |= in_be32(host->ioaddr + reg) & SDHCI_CTRL_DMA_MASK;
> > +
> > + /* 8BIT is bit 29 in Control register */
> > + val |= ((val & SDHCI_CTRL_8BITBUS) >> 3);
> > + val = (val & ~SDHCI_CTRL_8BITBUS);
> > }
> >
> > /* Prevent SDHCI core from writing reserved bits (e.g. HISPD). */
> > @@ -252,6 +260,8 @@ static void esdhc_of_platform_init(struct sdhci_host *host)
> >
> > if (vvn > VENDOR_V_22)
> > host->quirks &= ~SDHCI_QUIRK_NO_BUSY_IRQ;
> > +
> > + host->mmc->caps |= MMC_CAP_8_BIT_DATA;
> > }
> >
> > static void esdhc_pltfm_set_bus_width(struct sdhci_host *host, int width)
next prev parent reply other threads:[~2015-05-05 9:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-20 21:11 [PATCH] sdhci-of-esdhc: Support 8BIT bus width Joakim Tjernlund
2015-05-05 8:34 ` Ulf Hansson
2015-05-05 9:04 ` Joakim Tjernlund [this message]
2015-05-05 10:11 ` Ulf Hansson
2015-05-05 12:22 ` Joakim Tjernlund
2015-05-05 13:01 ` Ulf Hansson
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=1430816674.27859.71.camel@transmode.se \
--to=joakim.tjernlund@transmode.se \
--cc=linux-mmc@vger.kernel.org \
--cc=ulf.hansson@linaro.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