mmc: sdhci-acpi: Disable write protect detection on Toshiba Encore 2 WT8-B
PATCH 1/1 mmc: sdhci-acpi: Disable write protect detection on Toshiba Encore 2 WT8-B
On the Toshiba Encore 2 WT8-B the microSD slot always reports the card being write-protected even though microSD cards do not have a write-protect switch at all.
Add a new DMI_QUIRK_SD_NO_WRITE_PROTECT quirk entry to sdhci-acpi.c's DMI quirk table for this.
--- drivers/mmc/host/sdhci-acpi.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
drivers/mmc/host/sdhci-acpi.c +11 -0
@@ -820,6 +820,17 @@ static const struct dmi_system_id sdhci_acpi_quirks[] = { }, .driver_data = (void *)DMI_QUIRK_SD_NO_WRITE_PROTECT, }, + { + /* + * The Toshiba WT8-B's microSD slot always reports the card being + * write-protected. + */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"), + DMI_MATCH(DMI_PRODUCT_NAME, "TOSHIBA ENCORE 2 WT8-B"), + }, + .driver_data = (void *)DMI_QUIRK_SD_NO_WRITE_PROTECT, + }, {} /* Terminating entry */ };
Signature · 1 line
2.31.1
Quoted 8 lines · Hans de Goede
On the Toshiba Encore 2 WT8-B the microSD slot always reports the card being write-protected even though microSD cards do not have a write-protect switch at all.
Add a new
DMI_QUIRK_SD_NO_WRITE_PROTECTquirk entry to sdhci-acpi.c's DMI quirk table for this.Signed-off-by Hans de Goede <[email protected]>
Quoted 27 lines
--- drivers/mmc/host/sdhci-acpi.c | 11 +++++++++++ 1 file changed, 11 insertions(+)drivers/mmc/host/sdhci-acpi.c +11
-0@@ -820,6 +820,17 @@ static const struct dmi_system_id sdhci_acpi_quirks[] = { }, .driver_data = (void *)DMI_QUIRK_SD_NO_WRITE_PROTECT, }, + { + /* + * The Toshiba WT8-B's microSD slot always reports the card being + * write-protected. + */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"), + DMI_MATCH(DMI_PRODUCT_NAME, "TOSHIBA ENCORE 2 WT8-B"), + }, + .driver_data = (void *)DMI_QUIRK_SD_NO_WRITE_PROTECT, + }, {} /* Terminating entry */ };
Quoted 9 lines · Hans de Goede
On the Toshiba Encore 2 WT8-B the microSD slot always reports the card being write-protected even though microSD cards do not have a write-protect switch at all.
Add a new
DMI_QUIRK_SD_NO_WRITE_PROTECTquirk entry to sdhci-acpi.c's DMI quirk table for this.Signed-off-by Hans de Goede <[email protected]>
Applied for next, thanks!
Should we tag this for stable?
Kind regards
Uffe
Quoted 29 lines
--- drivers/mmc/host/sdhci-acpi.c | 11 +++++++++++ 1 file changed, 11 insertions(+)drivers/mmc/host/sdhci-acpi.c +11
-1@@ -820,6 +820,17 @@ static const struct dmi_system_id sdhci_acpi_quirks[] = { }, .driver_data = (void *)DMI_QUIRK_SD_NO_WRITE_PROTECT, }, + { + /* + * The Toshiba WT8-B's microSD slot always reports the card being + * write-protected. + */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"), + DMI_MATCH(DMI_PRODUCT_NAME, "TOSHIBA ENCORE 2 WT8-B"), + }, + .driver_data = (void *)DMI_QUIRK_SD_NO_WRITE_PROTECT, + }, {} /* Terminating entry */ }; --2.31.1
Hi,
Quoted 6 lines · Ulf Hansson
Quoted 5 lines · Hans de Goede
On the Toshiba Encore 2 WT8-B the microSD slot always reports the card being write-protected even though microSD cards do not have a write-protect switch at all.
Quoted 8 lines
Quoted 4 lines
Add a new
DMI_QUIRK_SD_NO_WRITE_PROTECTquirk entry to sdhci-acpi.c's DMI quirk table for this.Signed-off-by Hans de Goede <[email protected]>Applied for next, thanks!
Should we tag this for stable?
Yes please.
Thanks & Regards,
Hans
Quoted 30 lines
Quoted 29 lines
--- drivers/mmc/host/sdhci-acpi.c | 11 +++++++++++ 1 file changed, 11 insertions(+)drivers/mmc/host/sdhci-acpi.c +11
-1@@ -820,6 +820,17 @@ static const struct dmi_system_id sdhci_acpi_quirks[] = { }, .driver_data = (void *)DMI_QUIRK_SD_NO_WRITE_PROTECT, }, + { + /* + * The Toshiba WT8-B's microSD slot always reports the card being + * write-protected. + */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"), + DMI_MATCH(DMI_PRODUCT_NAME, "TOSHIBA ENCORE 2 WT8-B"), + }, + .driver_data = (void *)DMI_QUIRK_SD_NO_WRITE_PROTECT, + }, {} /* Terminating entry */ }; --2.31.1
Quoted 13 lines · Hans de Goede
Hi,
Quoted 9 lines · Ulf Hansson
Quoted 8 lines · Hans de Goede
On the Toshiba Encore 2 WT8-B the microSD slot always reports the card being write-protected even though microSD cards do not have a write-protect switch at all.
Add a new
DMI_QUIRK_SD_NO_WRITE_PROTECTquirk entry to sdhci-acpi.c's DMI quirk table for this.
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Signed-off-by Hans de Goede <[email protected]>Applied for next, thanks!
Should we tag this for stable?
Yes please.
Done, thanks!
Kind regards
Uffe
Quoted 39 lines
Thanks & Regards,
Hans
Quoted 30 lines
Quoted 29 lines
--- drivers/mmc/host/sdhci-acpi.c | 11 +++++++++++ 1 file changed, 11 insertions(+)drivers/mmc/host/sdhci-acpi.c +11
-1@@ -820,6 +820,17 @@ static const struct dmi_system_id sdhci_acpi_quirks[] = { }, .driver_data = (void *)DMI_QUIRK_SD_NO_WRITE_PROTECT, }, + { + /* + * The Toshiba WT8-B's microSD slot always reports the card being + * write-protected. + */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"), + DMI_MATCH(DMI_PRODUCT_NAME, "TOSHIBA ENCORE 2 WT8-B"), + }, + .driver_data = (void *)DMI_QUIRK_SD_NO_WRITE_PROTECT, + }, {} /* Terminating entry */ }; --2.31.1