Skip to content

Commit ef3eab7

Browse files
jwrdegoedestorulf
authored andcommitted
mmc: sdhci-acpi: Disable write protect detection on Toshiba WT10-A
On the Toshiba WT10-A the microSD slot always reports the card being write-protected, just like on the Toshiba WT8-B. Add a DMI quirk to work around this. Reviewed-by: Andy Shevchenko <andy@kernel.org> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Adrian Hunter <adrian.hunter@intel.com> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20240410191639.526324-6-hdegoede@redhat.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent f3521d7 commit ef3eab7

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

drivers/mmc/host/sdhci-acpi.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,17 @@ static const struct dmi_system_id sdhci_acpi_quirks[] = {
779779
},
780780
.driver_data = (void *)DMI_QUIRK_SD_NO_WRITE_PROTECT,
781781
},
782+
{
783+
/*
784+
* The Toshiba WT10-A's microSD slot always reports the card being
785+
* write-protected.
786+
*/
787+
.matches = {
788+
DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"),
789+
DMI_MATCH(DMI_PRODUCT_NAME, "TOSHIBA WT10-A"),
790+
},
791+
.driver_data = (void *)DMI_QUIRK_SD_NO_WRITE_PROTECT,
792+
},
782793
{} /* Terminating entry */
783794
};
784795

0 commit comments

Comments
 (0)