From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 91D6C384; Thu, 13 Jun 2024 12:48:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718282934; cv=none; b=d9evfWXvqlWcDE5WR1h4C3D5GMyC52g+Lp/ZzJil3MfTc1EmwkB04NUlHh0amdX9hw86oncWSXoB9MIadWAQb3ZGsOlNfTuB9BwPssZvcGiOtryAbyqC8IbNCo3PjwS0aR0dhDc6sse8bdPv4qFALKkIh1EN3Nn8ZWXrEJujD98= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718282934; c=relaxed/simple; bh=XrFmFzFSzoMcb22mGpgbA60OeJnrgTpijarzmwixYTU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fUrBX64AyS5BrkOmE4waNhSbawB5YdmGzvlLIXKABwjBRZygJoJd18Q9KjnrYi3Ph7JzLAEazwUGIFQv4F1IfwzA7dO4w0pbKqk1gG+6qO0vGBcBOOTG8FGcknSVbTCvORRiC46L9pH0whsRcrsOnthBL7v3kz3qfzxszHToilg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EQnkMbiq; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="EQnkMbiq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17FD2C2BBFC; Thu, 13 Jun 2024 12:48:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718282934; bh=XrFmFzFSzoMcb22mGpgbA60OeJnrgTpijarzmwixYTU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EQnkMbiqDNPi/zMMYmlSj4/KsJXP/4HD+lWuFmuVuDLDFSEMc/wdRcTYbs1Jzl/AL xT58Nk04XUgdd0z39Nmx4gC9MDfYqPhQDfUXYnq6HiSGV7B6Ijbfrrqcq3peqYuyXg tkEbjrv1fhrB/VdYf7ulq9PJX24RSbkQcxoZLoX0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Andy Shevchenko , Hans de Goede , Adrian Hunter , Ulf Hansson Subject: [PATCH 6.1 42/85] mmc: sdhci-acpi: Disable write protect detection on Toshiba WT10-A Date: Thu, 13 Jun 2024 13:35:40 +0200 Message-ID: <20240613113215.769099365@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240613113214.134806994@linuxfoundation.org> References: <20240613113214.134806994@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Hans de Goede commit ef3eab75e17191e5665f52e64e85bc29d5705a7b upstream. 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 Signed-off-by: Hans de Goede Acked-by: Adrian Hunter Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20240410191639.526324-6-hdegoede@redhat.com Signed-off-by: Ulf Hansson Signed-off-by: Greg Kroah-Hartman --- drivers/mmc/host/sdhci-acpi.c | 11 +++++++++++ 1 file changed, 11 insertions(+) --- a/drivers/mmc/host/sdhci-acpi.c +++ b/drivers/mmc/host/sdhci-acpi.c @@ -779,6 +779,17 @@ static const struct dmi_system_id sdhci_ }, .driver_data = (void *)DMI_QUIRK_SD_NO_WRITE_PROTECT, }, + { + /* + * The Toshiba WT10-A's microSD slot always reports the card being + * write-protected. + */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"), + DMI_MATCH(DMI_PRODUCT_NAME, "TOSHIBA WT10-A"), + }, + .driver_data = (void *)DMI_QUIRK_SD_NO_WRITE_PROTECT, + }, {} /* Terminating entry */ };