Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp633200pxv; Thu, 15 Jul 2021 12:02:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbAdBxUWGsjT3G/HsJr3wM8kCwb0/8Bfxfp/xYuuHq8epSK3/xcGnOvPUD/4Uf4SjqAW73 X-Received: by 2002:a02:6f02:: with SMTP id x2mr5302375jab.54.1626375773844; Thu, 15 Jul 2021 12:02:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626375773; cv=none; d=google.com; s=arc-20160816; b=vcjxnvx+kAxb5RTxNZWVu2aVyQ8Tvq8OIMnuPXNxfFf58n4QoDZHPkY5GR1UbZJaLq PQZYhRFoxaVOZXsVVdlFlbtljqylPXrb2V3ItGjc8DakMGw2gP4D0iuKLznY35O0dS9e 4bKTw3nKM+a87XV7yJGGDlpo22fCSKnJbGBI/p8tijgscRY0LxftMft5RhAvK5OHpTyT GQPCCHKELGWXEZ380CS8M/2B2RrnTeWhq+6MulYgyaYUU8vRVOMoTaDYtHXdQhC/mTn+ YY/1cIW8nMK65xYw2cghWbyw/bp4qeM+anlI5Qsfkw6PP85Jl36Dmz8WiZlqOXdUSHYv vrYg== 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=g9ygs5RH2HD43L6pop03GX8V83y0oqUfMQhgLaBbv1k=; b=Tu/0lOrWKgTaX5KEhaqoXSWsmFgENhvTn1QFrB9acNY/7NssR2MHEx5QvmzC7u2sqz sP/PPCqPmos2Iovoqvg10G3pXHagQQ/bOIWm/4FJVaKt5R3BoRvrpGg4FPvfHrdwKL4Z EsRTJxXUZX7/KxTYHss2D0jm5wNqalbrOkO7BCRD375bYl/IQVH7u2tldzCxub2xybzW 7AMZYC+0RH9QTmQB/B37QpDhO9AylXTyrSH9L2gOViDExfIsHfQ36pSiFHi7FwIHI6J5 QsJfaezLtmkFRcg/oFUGXi+FIFlxZiESicV0o6R+kBKIcmV3yZyAJm4RIGU0k3dZvBDk ot9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=d0WZ3CGH; 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 v1si1441348iot.7.2021.07.15.12.02.38; Thu, 15 Jul 2021 12:02:53 -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=d0WZ3CGH; 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 S243016AbhGOTC3 (ORCPT + 99 others); Thu, 15 Jul 2021 15:02:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:59112 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242122AbhGOSyu (ORCPT ); Thu, 15 Jul 2021 14:54:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6A816613C4; Thu, 15 Jul 2021 18:51:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375115; bh=KNLMa2efQLDCQQKQiBYNUuBG9GAvPx8yOEby2vqHbIw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d0WZ3CGHEdigXi21B/XHID4t4mPAPeXx+QpbaONvWoDRd76nSEw7hrHmcEpYkdKYI 7EO3OCYOE3kuYo4buRAAl8VuDO72BIkmR0XIKunuDoqHGzndM8WZgPjNyxSboZ84QU 37rqm9q3pEK5Wu5+/w07LhHKeFdDMBWpe91T9R3s= 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.10 166/215] mmc: sdhci-acpi: Disable write protect detection on Toshiba Encore 2 WT8-B Date: Thu, 15 Jul 2021 20:38:58 +0200 Message-Id: <20210715182628.911176625@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182558.381078833@linuxfoundation.org> References: <20210715182558.381078833@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 @@ -788,6 +788,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 */ };