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 2D94A1448DA; Thu, 13 Jun 2024 11:49:17 +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=1718279358; cv=none; b=uF+hUqMhq+Dhpwc6mEp1m119j/TEpM+Imelp6LfYlq6/NpW+fkINx6FhS0+DXDAf58zEzJsMuRkoq132QVrZFxaRagiK9PPwBH4SIsdqMjuP9LNRps0Bri4atxt4BTHJaRepcmpVLvuXZ4CFSlhnV8ADsxSJdw3VIyyjp0CWoFY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718279358; c=relaxed/simple; bh=i0ZvwBSIj+PNAcIdOruvfJjlSLGRfIPn9GW8TFms0cs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=g5IxWhLCiUAwgMA47v+bj5SmbVE/rrzs98IBVIX2TyFp0NSvk/hxMOZNkqE2g70aofYx7GdYeImxM48sDdbkdri7O0iCCe8R99BZqw1HEFjOH0SRtoafZhP69Ocx848rFL5PlgssWDdnHkESGa46ireJ+CivdNynalCpH3/VMkU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YbLlh1ej; 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="YbLlh1ej" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57862C32786; Thu, 13 Jun 2024 11:49:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718279357; bh=i0ZvwBSIj+PNAcIdOruvfJjlSLGRfIPn9GW8TFms0cs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YbLlh1ejnLbdvYsl+pktJ/i1zGLnyplSpnFgjlRZMZuFmh53Gwrs6ijrWrOlpB14T jRgvY8q5bcysj5ZDgmuLc8BFQS5wCX00hxLi673dE3r8EpTVdrcx/U65nRCePYHOTU Z7A/vxnMaLPvAZyznPbKnGGwnR+EdT+KxuyIT6Ag= 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.9 048/157] mmc: sdhci-acpi: Disable write protect detection on Toshiba WT10-A Date: Thu, 13 Jun 2024 13:32:53 +0200 Message-ID: <20240613113229.284001861@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240613113227.389465891@linuxfoundation.org> References: <20240613113227.389465891@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.9-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 */ };