From: Pantelis Antoniou <panto@antoniou-consulting.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Possible bug in sdhci.c
Date: Mon, 23 Feb 2015 19:57:36 +0200 [thread overview]
Message-ID: <59894801-EB21-4D2D-BB0F-173DB669610B@antoniou-consulting.com> (raw)
In-Reply-To: <1FC05FA2-CB70-4338-98D0-30E9BDA245F7@sdgsystems.com>
Hi Matt,
> On Feb 19, 2015, at 20:33 , Matt Reimer <mreimer@sdgsystems.com> wrote:
>
> In sdhci_init() a writel() is used on a byte-sized register, which would clobber the adjacent registers. Below is my suggested fix. If it looks correct, I can submit a proper patch.
>
> Matt
>
>
> diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
> index 82d7984..1f8917b 100644
> --- a/drivers/mmc/sdhci.c
> +++ b/drivers/mmc/sdhci.c
> @@ -412,7 +412,7 @@ static int sdhci_init(struct mmc *mmc)
> if (host->quirks & SDHCI_QUIRK_NO_CD) {
> unsigned int status;
>
> - sdhci_writel(host, SDHCI_CTRL_CD_TEST_INS | SDHCI_CTRL_CD_TEST,
> + sdhci_writeb(host, SDHCI_CTRL_CD_TEST_INS | SDHCI_CTRL_CD_TEST,
> SDHCI_HOST_CONTROL);
>
> status = sdhci_readl(host, SDHCI_PRESENT_STATE);
>
Correct again. Please send a proper patch.
Regards
? Pantelis
next prev parent reply other threads:[~2015-02-23 17:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-19 18:33 [U-Boot] Possible bug in sdhci.c Matt Reimer
2015-02-23 17:57 ` Pantelis Antoniou [this message]
2015-02-23 21:56 ` [U-Boot] [PATCH] mmc: sdhci: don't clobber adjacent registers Matt Reimer
2015-03-02 18:31 ` Matt Reimer
2015-03-02 18:31 ` Pantelis Antoniou
2015-03-18 7:53 ` Pantelis Antoniou
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=59894801-EB21-4D2D-BB0F-173DB669610B@antoniou-consulting.com \
--to=panto@antoniou-consulting.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.