linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Anton Vorontsov <avorontsov@ru.mvista.com>
To: Gao Guanhua <B22826@freescale.com>
Cc: linuxppc-dev@ozlabs.org, sdhci-devel@lists.ossman.eu
Subject: Re: [PATCH 3/6] P2020DS: Fixup sdhc to use PIO mode
Date: Wed, 23 Sep 2009 15:55:18 +0400	[thread overview]
Message-ID: <20090923115518.GB6425@oksana.dev.rtsoft.ru> (raw)
In-Reply-To: <1253696892-15262-3-git-send-email-B22826@freescale.com>

On Wed, Sep 23, 2009 at 05:08:09PM +0800, Gao Guanhua wrote:
> The SDHC can not work on DMA mode because of the hardware bug,
> so we set a broken dma flag and use PIO mode. This patch applies
> to Rev1.0.

Signed-off-by line is missing (in all patches).

> ---
>  arch/powerpc/boot/dts/p2020ds.dts |    1 +
>  drivers/mmc/host/sdhci-of.c       |    3 +++
>  2 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/powerpc/boot/dts/p2020ds.dts b/arch/powerpc/boot/dts/p2020ds.dts
> index be449ba..574ad4f 100644
> --- a/arch/powerpc/boot/dts/p2020ds.dts
> +++ b/arch/powerpc/boot/dts/p2020ds.dts
> @@ -459,6 +459,7 @@
>  			reg = <0x2e000 0x1000>;
>  			interrupts = <72 0x2>;
>  			interrupt-parent = <&mpic>;
> +			fsl,sdhci-dma-broken;

You might want to update
Documentation/powerpc/dts-bindings/fsl/esdhc.txt

>  			clock-frequency = <0>;
>  		};
>  
> diff --git a/drivers/mmc/host/sdhci-of.c b/drivers/mmc/host/sdhci-of.c
> index 01ab916..5879483 100644
> --- a/drivers/mmc/host/sdhci-of.c
> +++ b/drivers/mmc/host/sdhci-of.c
> @@ -270,6 +270,9 @@ static int __devinit sdhci_of_probe(struct of_device *ofdev,
>  	if (sdhci_of_wp_inverted(np))
>  		host->quirks |= SDHCI_QUIRK_INVERTED_WRITE_PROTECT;
>  
> +	if (of_get_property(np, "fsl,sdhci-dma-broken", NULL))
> +		host->quirks |= SDHCI_QUIRK_BROKEN_DMA;
> +
>  	clk = of_get_property(np, "clock-frequency", &size);
>  	if (clk && size == sizeof(*clk) && *clk)
>  		of_host->clock = *clk;
> -- 
> 1.6.4

Thanks,

-- 
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2

  parent reply	other threads:[~2009-09-23 11:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-23  9:08 [PATCH 1/6] sdhci: Enable cache snooping Gao Guanhua
2009-09-23  9:08 ` [PATCH 2/6] P2020DS: Add sdhc support Gao Guanhua
2009-09-23  9:08   ` [PATCH 3/6] P2020DS: Fixup sdhc to use PIO mode Gao Guanhua
2009-09-23  9:08     ` [PATCH 4/6] sdhci: Fixup AHB2MAG IRQ bypass hardware workaround Gao Guanhua
2009-09-23  9:08       ` [PATCH 5/6] sdhci-of: Set the timeout to the max value Gao Guanhua
2009-09-23  9:08         ` [PATCH 6/6] P2020DS: Remove sdhci-dma-broken and sdhci-ahb2mag-irq-bypass properties Gao Guanhua
2009-09-23 11:59           ` Anton Vorontsov
2009-09-24  8:22             ` Gao Guanhua-B22826
2009-09-23 11:55     ` Anton Vorontsov [this message]
2009-09-24  8:28       ` [PATCH 3/6] P2020DS: Fixup sdhc to use PIO mode Gao Guanhua-B22826
2009-11-05 13:52         ` Kumar Gala
2009-11-06  2:08           ` Gao Guanhua-B22826
2009-11-13  8:30           ` Gao Guanhua-B22826
2009-09-23 11:52 ` [PATCH 1/6] sdhci: Enable cache snooping Anton Vorontsov

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=20090923115518.GB6425@oksana.dev.rtsoft.ru \
    --to=avorontsov@ru.mvista.com \
    --cc=B22826@freescale.com \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=sdhci-devel@lists.ossman.eu \
    /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;
as well as URLs for NNTP newsgroup(s).