Skip to content

Commit a4e3703

Browse files
committed
Merge tag 'mmc-v6.16-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc
Pull MMC fixes from Ulf Hansson: "MMC host: - bcm2835: Fix dma_unmap_sg() nents value - sdhci_am654: Add workaround for maximum HW timeout - sdhci-pci: Disable broken CQE Intel GLK-based Positivo models MEMSTICK: - Zero initialize id_reg in h_memstick_read_dev_id()" * tag 'mmc-v6.16-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc: memstick: core: Zero initialize id_reg in h_memstick_read_dev_id() mmc: bcm2835: Fix dma_unmap_sg() nents value mmc: sdhci_am654: Workaround for Errata i2312 mmc: sdhci-pci: Quirk for broken command queuing on Intel GLK-based Positivo models
2 parents d551d7b + 21b34a3 commit a4e3703

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

drivers/memstick/core/memstick.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ EXPORT_SYMBOL(memstick_init_req);
324324
static int h_memstick_read_dev_id(struct memstick_dev *card,
325325
struct memstick_request **mrq)
326326
{
327-
struct ms_id_register id_reg;
327+
struct ms_id_register id_reg = {};
328328

329329
if (!(*mrq)) {
330330
memstick_init_req(&card->current_mrq, MS_TPC_READ_REG, &id_reg,

drivers/mmc/host/bcm2835.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,8 @@ void bcm2835_prepare_dma(struct bcm2835_host *host, struct mmc_data *data)
503503
DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
504504

505505
if (!desc) {
506-
dma_unmap_sg(dma_chan->device->dev, data->sg, sg_len, dir_data);
506+
dma_unmap_sg(dma_chan->device->dev, data->sg, data->sg_len,
507+
dir_data);
507508
return;
508509
}
509510

drivers/mmc/host/sdhci-pci-core.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,8 @@ static bool glk_broken_cqhci(struct sdhci_pci_slot *slot)
913913
{
914914
return slot->chip->pdev->device == PCI_DEVICE_ID_INTEL_GLK_EMMC &&
915915
(dmi_match(DMI_BIOS_VENDOR, "LENOVO") ||
916-
dmi_match(DMI_SYS_VENDOR, "IRBIS"));
916+
dmi_match(DMI_SYS_VENDOR, "IRBIS") ||
917+
dmi_match(DMI_SYS_VENDOR, "Positivo Tecnologia SA"));
917918
}
918919

919920
static bool jsl_broken_hs400es(struct sdhci_pci_slot *slot)

drivers/mmc/host/sdhci_am654.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,8 @@ static const struct sdhci_ops sdhci_am654_ops = {
613613
static const struct sdhci_pltfm_data sdhci_am654_pdata = {
614614
.ops = &sdhci_am654_ops,
615615
.quirks = SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12,
616-
.quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN,
616+
.quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN |
617+
SDHCI_QUIRK2_DISABLE_HW_TIMEOUT,
617618
};
618619

619620
static const struct sdhci_am654_driver_data sdhci_am654_sr1_drvdata = {
@@ -643,7 +644,8 @@ static const struct sdhci_ops sdhci_j721e_8bit_ops = {
643644
static const struct sdhci_pltfm_data sdhci_j721e_8bit_pdata = {
644645
.ops = &sdhci_j721e_8bit_ops,
645646
.quirks = SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12,
646-
.quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN,
647+
.quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN |
648+
SDHCI_QUIRK2_DISABLE_HW_TIMEOUT,
647649
};
648650

649651
static const struct sdhci_am654_driver_data sdhci_j721e_8bit_drvdata = {
@@ -667,7 +669,8 @@ static const struct sdhci_ops sdhci_j721e_4bit_ops = {
667669
static const struct sdhci_pltfm_data sdhci_j721e_4bit_pdata = {
668670
.ops = &sdhci_j721e_4bit_ops,
669671
.quirks = SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12,
670-
.quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN,
672+
.quirks2 = SDHCI_QUIRK2_PRESET_VALUE_BROKEN |
673+
SDHCI_QUIRK2_DISABLE_HW_TIMEOUT,
671674
};
672675

673676
static const struct sdhci_am654_driver_data sdhci_j721e_4bit_drvdata = {

0 commit comments

Comments
 (0)