Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp659599pxv; Thu, 15 Jul 2021 12:44:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHh7N7GaKlzcK9wZzCOmT/PnJclyHpHyyaMtKqdaK2Z4/pWJCOAJqx0ZXsJwRLL0UYE5X2 X-Received: by 2002:a05:6402:1d31:: with SMTP id dh17mr9293287edb.211.1626378276267; Thu, 15 Jul 2021 12:44:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626378276; cv=none; d=google.com; s=arc-20160816; b=e4GrwBspPZzS3AV/Eg+pY1TokGb+WST2De+ZgL39bg0hdXCZ3+J9mozS+JKHtfsPHv 7NKlA+rYpR3kwxGEkP2yuBOFeCSdnzQ8ZjbIPzT4bmEPAQZvKwQAIHbtBHyWJfTMzwjh aqyMINaH2eBjXdI94SWF+k3H/6x6VLiHqCPXmpN7kK2CUDCMqDIvMQt7rG0H+rVgjwjS /LdBKL9PjHWEvZw56BQ7doBKGPbS5IBZNyqDae3feAlSlV3SLdfbvuhYbT4eZyCTAJyU NP1Z2B5nzEAXB0TIXnkvvVFpHbEFhx/ytEOSrQgWFi/HGkaeu4UUx7s1LdJBAOA0V2bf vPFQ== 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=vLXnDo+8nTEtAOl/sMUeb9QBhjK2CKXdrFQvc9l1GLQ=; b=SSjnnOkVtHiSpJqXX+70VLr50izTEUG9HvhSwlHpLDmkXZHjIxgQLS7Bm8+fzMmQ6L /Q9D38/hW1u8CMFjtWvHWxzhqRRoHrociUT8FHkjlWRCXFndKOK8bq9Mh1wNCwr7xGRU aLCJ3683ueEdNTkCD6SIfBueSZPUPAh9FwiXLl5AdM6gioVbVG6cKsI/p8m1UMAno0fb dvMKcLSulVQeRQy0cMy1eFOnwF/fV/+/4dQQVA1HzKrDhp6tA81sVniEfjvAtt0XvroQ rZ4XdFiQs4dzf2aSIYllKnMqpakkxdI9cj8nAgJJjt5noDa8M44U3Vjoac1on9qQzY9L UocA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dsnR7Mo1; 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 b9si8725995ede.326.2021.07.15.12.44.13; Thu, 15 Jul 2021 12:44:36 -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=dsnR7Mo1; 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 S244718AbhGOTqA (ORCPT + 99 others); Thu, 15 Jul 2021 15:46:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:52808 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242871AbhGOTPs (ORCPT ); Thu, 15 Jul 2021 15:15:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5E46160FF4; Thu, 15 Jul 2021 19:12:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626376327; bh=/90fiOXrGHLe77dycWdZCTCuRQWKsBP2W2WUifJhfkw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dsnR7Mo17dDIqtoSgx7tAKrAXcPjikAUjLXZa/Jh0Kll0XAeO8NCOX/hKUXgBYV2q Wba30HjuCmQ+6WEJn8NGGzp5D05z2DgnnW3FI87wlkX0FLinxZsZSzwMRYaz4TeI8L yLVycHTavP8u48seah+Xb86qkyLloHPQLLC54ZuQ= 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.13 207/266] mmc: sdhci-acpi: Disable write protect detection on Toshiba Encore 2 WT8-B Date: Thu, 15 Jul 2021 20:39:22 +0200 Message-Id: <20210715182646.487320475@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182613.933608881@linuxfoundation.org> References: <20210715182613.933608881@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 @@ -822,6 +822,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 */ };