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 <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Acked-by: Adrian Hunter <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent f3521d7 commit ef3eab7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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)