]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
Fixes for 4.19
authorSasha Levin <sashal@kernel.org>
Fri, 15 May 2020 16:27:05 +0000 (12:27 -0400)
committerSasha Levin <sashal@kernel.org>
Fri, 15 May 2020 16:27:05 +0000 (12:27 -0400)
Signed-off-by: Sasha Levin <sashal@kernel.org>
queue-4.19/mmc-sdhci-acpi-add-sdhci_quirk2_broken_64_bit_dma-fo.patch [new file with mode: 0644]
queue-4.19/series

diff --git a/queue-4.19/mmc-sdhci-acpi-add-sdhci_quirk2_broken_64_bit_dma-fo.patch b/queue-4.19/mmc-sdhci-acpi-add-sdhci_quirk2_broken_64_bit_dma-fo.patch
new file mode 100644 (file)
index 0000000..ee817fb
--- /dev/null
@@ -0,0 +1,47 @@
+From 9b719f5eb87c3cc50d4c23c05258012e665fec55 Mon Sep 17 00:00:00 2001
+From: Sasha Levin <sashal@kernel.org>
+Date: Fri, 8 May 2020 16:54:21 -0600
+Subject: mmc: sdhci-acpi: Add SDHCI_QUIRK2_BROKEN_64_BIT_DMA for AMDI0040
+
+From: Raul E Rangel <rrangel@chromium.org>
+
+[ Upstream commit 45a3fe3bf93b7cfeddc28ef7386555e05dc57f06 ]
+
+The AMD eMMC 5.0 controller does not support 64 bit DMA.
+
+Fixes: 34597a3f60b1 ("mmc: sdhci-acpi: Add support for ACPI HID of AMD Controller with HS400")
+Signed-off-by: Raul E Rangel <rrangel@chromium.org>
+Link: https://marc.info/?l=linux-mmc&m=158879884514552&w=2
+Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
+Acked-by: Adrian Hunter <adrian.hunter@intel.com>
+Link: https://lore.kernel.org/r/20200508165344.1.Id5bb8b1ae7ea576f26f9d91c761df7ccffbf58c5@changeid
+Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
+Signed-off-by: Sasha Levin <sashal@kernel.org>
+---
+ drivers/mmc/host/sdhci-acpi.c | 10 ++++++----
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+diff --git a/drivers/mmc/host/sdhci-acpi.c b/drivers/mmc/host/sdhci-acpi.c
+index 57c1ec322e421..145143b6a0e6d 100644
+--- a/drivers/mmc/host/sdhci-acpi.c
++++ b/drivers/mmc/host/sdhci-acpi.c
+@@ -552,10 +552,12 @@ static int sdhci_acpi_emmc_amd_probe_slot(struct platform_device *pdev,
+ }
+ static const struct sdhci_acpi_slot sdhci_acpi_slot_amd_emmc = {
+-      .chip   = &sdhci_acpi_chip_amd,
+-      .caps   = MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE,
+-      .quirks = SDHCI_QUIRK_32BIT_DMA_ADDR | SDHCI_QUIRK_32BIT_DMA_SIZE |
+-                      SDHCI_QUIRK_32BIT_ADMA_SIZE,
++      .chip           = &sdhci_acpi_chip_amd,
++      .caps           = MMC_CAP_8_BIT_DATA | MMC_CAP_NONREMOVABLE,
++      .quirks         = SDHCI_QUIRK_32BIT_DMA_ADDR |
++                        SDHCI_QUIRK_32BIT_DMA_SIZE |
++                        SDHCI_QUIRK_32BIT_ADMA_SIZE,
++      .quirks2        = SDHCI_QUIRK2_BROKEN_64_BIT_DMA,
+       .probe_slot     = sdhci_acpi_emmc_amd_probe_slot,
+ };
+-- 
+2.20.1
+
index 0217b12efd29b074f514546806779e08a354c3e7..e0f7bdf7ad6c2658d197da881b692c539b2e7fca 100644 (file)
@@ -5,3 +5,4 @@ net-moxa-fix-a-potential-double-free_irq.patch
 drop_monitor-work-around-gcc-10-stringop-overflow-wa.patch
 virtio-blk-handle-block_device_operations-callbacks-.patch
 scsi-sg-add-sg_remove_request-in-sg_write.patch
+mmc-sdhci-acpi-add-sdhci_quirk2_broken_64_bit_dma-fo.patch