Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp711617pxv; Thu, 15 Jul 2021 14:09:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxflAZkoJWNROqrMmnZ14Oe0mTN55SbHBACvVRom3jrTVx15RbU6M6S/0a1pk9uXFEzLwyt X-Received: by 2002:a17:906:b6c5:: with SMTP id ec5mr7522822ejb.290.1626383373059; Thu, 15 Jul 2021 14:09:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626383373; cv=none; d=google.com; s=arc-20160816; b=ZwXjxdCLFUSNkGBNxXvP4SiYWCk5ENi6zqXZac7m2Ql3AD/Eu2ojjawHhMCrhOMVxe L5scX0xxKIYSMvuxR/Fh5hC4UalYNo8PpxIuOFm9qAj8A+mwm5vZep7oaJfEVGJnlip3 rqSIpVD8pvRkPi5/GBNR6hXTrfrH7cqFuDpoM1M1W92WoLxYF+aDctBaWKOMm1DZPVaZ SMJUVfXscNgfZI38XWFax6mFk/ajHPPhlMk8GQqVh99EbNMO9ra7K4cZUtBWO+R/BlOU 8h8Ou42FvwgviqPwwAYeHVV9UM3l9ZxPeARPfd3phhfx3zJeJaRJeDZ2GEPJC2uHnV/c FE6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=lPaRC0H1HfHZ8HeaqWRlEOcCKaL3uyfkHXbTNKnTuJE=; b=gAEUrKSroGkiuRxKEbGdW1d3FRouue/jo71iiZy6TFySOPE4AmkBhDik/zjpSyXGPM 3anDTbSgg/1B64j6c4XylX8UB4PmYJkWlUZCetYP928Aq7NS6zaPVYQ8jl61lRMJ1rTt MZaaFZ6i8x/D1q4MGr1nWEwDJ18J9wYWaOL66bNb9OqnSe1FKPlp+qzhUNk+HCebeSOz a05LB8IfcQHfmD+XfJSI9h9K56WYrkOK7OV9dG4kJzC96z0C5NgNbtbmDdotX3oRs0tf fE3xNXfy0M0DE7X3fzpwgFQyfoW8xrRdceLlAJRxGuzSEEw3aR834eFofsWKq2tDf92W tMXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NcST4rcn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 8si10462867ejx.637.2021.07.15.14.09.09; Thu, 15 Jul 2021 14:09:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NcST4rcn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245740AbhGOTUC (ORCPT + 99 others); Thu, 15 Jul 2021 15:20:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:38158 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241945AbhGOTFK (ORCPT ); Thu, 15 Jul 2021 15:05:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 31C326140E; Thu, 15 Jul 2021 19:01:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375663; bh=ycKDcYRU63u++MEQW5GMUFIHAdewgNEfveiRYcO5XWE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NcST4rcnUASwVuGkfZOkOV/K7kxtVjZirmwymaK5/FwXT2ahfFk7kcG7MjOBPQMox h2ZTC+vJFjZUdFsmrVP7mT5+ExiA0Bl3UJmzlOIsQxDS/AWrCW4A/Wezk3cYbSiGsl puzO6qU/YyDQ9SfJpJZUBDFHHIQgh5VUL21KQpTA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Adrian Hunter , Ulf Hansson Subject: [PATCH 5.12 183/242] mmc: sdhci-acpi: Disable write protect detection on Toshiba Encore 2 WT8-B Date: Thu, 15 Jul 2021 20:39:05 +0200 Message-Id: <20210715182625.545157496@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182551.731989182@linuxfoundation.org> References: <20210715182551.731989182@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans de Goede commit 94ee6782e045645abd9180ab9369b01293d862bd upstream. 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. Signed-off-by: Hans de Goede Acked-by: Adrian Hunter Link: https://lore.kernel.org/r/20210503092157.5689-1-hdegoede@redhat.com Signed-off-by: Ulf Hansson Cc: stable@vger.kernel.org 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 @@ -820,6 +820,17 @@ static const struct dmi_system_id sdhci_ }, .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 */ };