Skip to content

Commit 45a3fe3

Browse files
Raul E Rangelstorulf
authored andcommitted
mmc: sdhci-acpi: Add SDHCI_QUIRK2_BROKEN_64_BIT_DMA for AMDI0040
The AMD eMMC 5.0 controller does not support 64 bit DMA. Fixes: 34597a3 ("mmc: sdhci-acpi: Add support for ACPI HID of AMD Controller with HS400") Signed-off-by: Raul E Rangel <[email protected]> Link: https://marc.info/?l=linux-mmc&m=158879884514552&w=2 Reviewed-by: Andy Shevchenko <[email protected]> Acked-by: Adrian Hunter <[email protected]> Link: https://lore.kernel.org/r/20200508165344.1.Id5bb8b1ae7ea576f26f9d91c761df7ccffbf58c5@changeid Signed-off-by: Ulf Hansson <[email protected]>
1 parent c077dc5 commit 45a3fe3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

drivers/mmc/host/sdhci-acpi.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -605,10 +605,12 @@ static int sdhci_acpi_emmc_amd_probe_slot(struct platform_device *pdev,
605605
}
606606

607607
static const struct sdhci_acpi_slot sdhci_acpi_slot_amd_emmc = {
608-
.chip = &sdhci_acpi_chip_amd,
609-
.caps = MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE,
610-
.quirks = SDHCI_QUIRK_32BIT_DMA_ADDR | SDHCI_QUIRK_32BIT_DMA_SIZE |
611-
SDHCI_QUIRK_32BIT_ADMA_SIZE,
608+
.chip = &sdhci_acpi_chip_amd,
609+
.caps = MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE,
610+
.quirks = SDHCI_QUIRK_32BIT_DMA_ADDR |
611+
SDHCI_QUIRK_32BIT_DMA_SIZE |
612+
SDHCI_QUIRK_32BIT_ADMA_SIZE,
613+
.quirks2 = SDHCI_QUIRK2_BROKEN_64_BIT_DMA,
612614
.probe_slot = sdhci_acpi_emmc_amd_probe_slot,
613615
};
614616

0 commit comments

Comments
 (0)