2015-04-07 03:32:35

by 敬锐

[permalink] [raw]
Subject: [PATCH] sdhci: rtsx: fix 64 BIT DMA quirks

From: Micky Ching <[email protected]>

rts5250 chip failed handle 64 bit ADMA for address below 4G.
Add 64 BIT quirks to disable this feature.

Signed-off-by: Micky Ching <[email protected]>
---
drivers/mmc/host/sdhci-pci.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c
index 0342775..ae8e450 100644
--- a/drivers/mmc/host/sdhci-pci.c
+++ b/drivers/mmc/host/sdhci-pci.c
@@ -650,6 +650,7 @@ static int rtsx_probe_slot(struct sdhci_pci_slot *slot)

static const struct sdhci_pci_fixes sdhci_rtsx = {
.quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN |
+ SDHCI_QUIRK2_BROKEN_64_BIT_DMA |
SDHCI_QUIRK2_BROKEN_DDR50,
.probe_slot = rtsx_probe_slot,
};
--
1.9.1


2015-04-08 10:07:47

by Ulf Hansson

[permalink] [raw]
Subject: Re: [PATCH] sdhci: rtsx: fix 64 BIT DMA quirks

On 7 April 2015 at 05:32, <[email protected]> wrote:
> From: Micky Ching <[email protected]>
>
> rts5250 chip failed handle 64 bit ADMA for address below 4G.
> Add 64 BIT quirks to disable this feature.
>
> Signed-off-by: Micky Ching <[email protected]>

Thanks! Applied, with a minor updated commit message header.

Kind regards
Uffe

> ---
> drivers/mmc/host/sdhci-pci.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c
> index 0342775..ae8e450 100644
> --- a/drivers/mmc/host/sdhci-pci.c
> +++ b/drivers/mmc/host/sdhci-pci.c
> @@ -650,6 +650,7 @@ static int rtsx_probe_slot(struct sdhci_pci_slot *slot)
>
> static const struct sdhci_pci_fixes sdhci_rtsx = {
> .quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN |
> + SDHCI_QUIRK2_BROKEN_64_BIT_DMA |
> SDHCI_QUIRK2_BROKEN_DDR50,
> .probe_slot = rtsx_probe_slot,
> };
> --
> 1.9.1
>