public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
From: Dirk Behme <dirk.behme@de.bosch.com>
To: Shawn Guo <shawn.guo@linaro.org>,
	"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
	Chris Ball <cjb@laptop.org>
Subject: Re: [PATCH] mmc: sdhci-esdhc-imx: Write only 4 bit in case of TIMEOUT_CONTROL
Date: Fri, 1 Nov 2013 07:31:34 +0100	[thread overview]
Message-ID: <52734AC6.6020101@de.bosch.com> (raw)
In-Reply-To: <20130716073826.GH28375@S2101-09.ap.freescale.net>

On 16.07.2013 09:38, Shawn Guo wrote:
> Hi Dirk,
>
> On Tue, Jul 16, 2013 at 08:36:11AM +0200, Dirk Behme wrote:
>> In case of SDHCI_TIMEOUT_CONTROL write only 4 bits and not the
>> whole byte to avoid touching other unrelated bits in the i.MX6
>> SYS_CTRL register. E.g. IPP_RST_N shouldn't be touched accidently.
>>
>> Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
>
> Acked-by: Shawn Guo <shawn.guo@linaro.org>

What's the status of this? I can't find it e.g. in linux-next?

Does anybody like to help to apply this?

Many thanks and best regards

Dirk

>> ---
>>   drivers/mmc/host/sdhci-esdhc-imx.c | 12 ++++++++++++
>>   1 file changed, 12 insertions(+)
>>
>> diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c
>> index 1dd5ba8..1af3a2a 100644
>> --- a/drivers/mmc/host/sdhci-esdhc-imx.c
>> +++ b/drivers/mmc/host/sdhci-esdhc-imx.c
>> @@ -362,6 +362,18 @@ static void esdhc_writeb_le(struct sdhci_host *host, u8 val, int reg)
>>
>>   		esdhc_clrset_le(host, mask, new_val, reg);
>>   		return;
>> +	case SDHCI_TIMEOUT_CONTROL:
>> +		/*
>> +		 * On i.MX6 the timeout value DTOCV is 4 bit large. Touch only
>> +		 * these 4 bits (lower nibble of the byte), but not the upper
>> +		 * nibble of the byte. The upper nibble of the byte contains
>> +		 * IPP_RST_N which should keep the reset value, i.e. 1, and
>> +		 * shouldn't be touched here.
>> +		 */
>> +		if (is_imx6q_usdhc(imx_data)) {
>> +			esdhc_clrset_le(host, 0x0f, val, reg);
>> +			return;
>> +		}
>>   	}
>>   	esdhc_clrset_le(host, 0xff, val, reg);
>>
>> --
>> 1.8.2

  reply	other threads:[~2013-11-01  6:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-16  6:36 [PATCH] mmc: sdhci-esdhc-imx: Write only 4 bit in case of TIMEOUT_CONTROL Dirk Behme
2013-07-16  7:38 ` Shawn Guo
2013-11-01  6:31   ` Dirk Behme [this message]
2013-11-26 21:22     ` Chris Ball
2013-11-27  6:47       ` Dirk Behme
2013-11-28  2:21         ` Shawn Guo

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=52734AC6.6020101@de.bosch.com \
    --to=dirk.behme@de.bosch.com \
    --cc=cjb@laptop.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=shawn.guo@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