Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6237215ybe; Tue, 17 Sep 2019 23:33:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQwRXvAGSii9ULguMGaxN6SML/4TScTVXKJZmqsA+zno6G5A8DFcUfS47UHsTLXlWKs9K0 X-Received: by 2002:a17:906:b259:: with SMTP id ce25mr4965605ejb.229.1568788400292; Tue, 17 Sep 2019 23:33:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568788400; cv=none; d=google.com; s=arc-20160816; b=ucwY1WX/hHomoicO7PbOwgH1UPCAhfbTBRBvbQJ/NO2ofAG9KHqtNJCDgZ+5RuAqS8 84yiJSaa9LGnPgVfcVEnMO26EH5Rcx41cNOae88HO3+c0Aw1Tf9JTr54byMgG89AEXNr hLwJPeFiLyND8/e5jAVyJHNtOsIg3Lu3BmKU/xLLQFc3AB8cRohKE50PgR/HsGfaRYpo KgQxyg+ulr9oiBWH89swSIZXezXfYdbL4yKSGGgkx9uWiWNYTbEBXLxi4qBK8w3FBvjD Iqi7jqWiAmof+fIABLWs9bOQS8crIKHB+qx24ee41SfWnyZ/IPpyFBbtFgP4kUl+upuX KD2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Ut20MosyceP7KX26y6qkF6NQg0Jq0s8YoG2lDYfopNQ=; b=fVh+JB222otW9hmMjGCPSiVEQDSETfOzWaUW/emrq5JHTj/SfXL04Glv/9YnUtkkIS KNqbvt+MVaNTJzrN2z+/QyVNvPaoVFg7aqecJVv4A+NaaX7qc+OPLeSnGZeCgFgasgD4 lip2H1PNlncrpbb0AlSsC8qU60KdN3BMQpEGA+HMhRFAugV/fff7aE0qNoKwZ9McMP3y pYpTqaUoW8xiEXM7tCX4lJU3DGZWcsnJty1h2BWb78T0IVEGalfNqrRbKjgfdLmG36NP n4BH+SJVcifySk4rqyP0kWcmHol7ibsoKo+nD6mwyBlRO52S0VJCV+S191ZawU0UhGLx oy/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DG9TvzeN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y54si3032136edb.217.2019.09.17.23.32.57; Tue, 17 Sep 2019 23:33:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DG9TvzeN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730102AbfIRGZO (ORCPT + 99 others); Wed, 18 Sep 2019 02:25:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:46088 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730076AbfIRGZM (ORCPT ); Wed, 18 Sep 2019 02:25:12 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 414E121928; Wed, 18 Sep 2019 06:25:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568787911; bh=Ijnvi18yIb3tKJGAmf6kgahLWvjc+PpNXmwU2/JVY60=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DG9TvzeNhwoifb6/sUSCkBNGgatH8AmZOnNDaV1tgFB5HjgoyBEER7e5WfqUH0aSC khsKOiuP8kgryytTF9oej5ey59TauegfTO/a2VM/YUR6915/ltov7+4pABpiQsMKXT zIGG67zg06Gu1VNQDC86IBP+/pZWPnH9cFgiTB+k= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Daniel Drake , Ulf Hansson Subject: [PATCH 5.2 29/85] Revert "mmc: sdhci: Remove unneeded quirk2 flag of O2 SD host controller" Date: Wed, 18 Sep 2019 08:18:47 +0200 Message-Id: <20190918061235.078125892@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190918061234.107708857@linuxfoundation.org> References: <20190918061234.107708857@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Daniel Drake commit 49baa01c8b99ef92958e18fb58ebeb5dfdcde8af upstream. This reverts commit 414126f9e5abf1973c661d24229543a9458fa8ce. This commit broke eMMC storage access on a new consumer MiniPC based on AMD SoC, which has eMMC connected to: 02:00.0 SD Host controller: O2 Micro, Inc. Device 8620 (rev 01) (prog-if 01) Subsystem: O2 Micro, Inc. Device 0002 During probe, several errors are seen including: mmc1: Got data interrupt 0x02000000 even though no data operation was in progress. mmc1: Timeout waiting for hardware interrupt. mmc1: error -110 whilst initialising MMC card Reverting this commit allows the eMMC storage to be detected & usable again. Signed-off-by: Daniel Drake Fixes: 414126f9e5ab ("mmc: sdhci: Remove unneeded quirk2 flag of O2 SD host controller") Cc: stable@vger.kernel.org # v5.1+ Signed-off-by: Ulf Hansson Signed-off-by: Greg Kroah-Hartman --- drivers/mmc/host/sdhci-pci-o2micro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/mmc/host/sdhci-pci-o2micro.c +++ b/drivers/mmc/host/sdhci-pci-o2micro.c @@ -432,7 +432,6 @@ int sdhci_pci_o2_probe_slot(struct sdhci mmc_hostname(host->mmc)); host->flags &= ~SDHCI_SIGNALING_330; host->flags |= SDHCI_SIGNALING_180; - host->quirks2 |= SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD; host->mmc->caps2 |= MMC_CAP2_NO_SD; host->mmc->caps2 |= MMC_CAP2_NO_SDIO; pci_write_config_dword(chip->pdev, @@ -682,6 +681,7 @@ static const struct sdhci_ops sdhci_pci_ const struct sdhci_pci_fixes sdhci_o2 = { .probe = sdhci_pci_o2_probe, .quirks = SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC, + .quirks2 = SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD, .probe_slot = sdhci_pci_o2_probe_slot, #ifdef CONFIG_PM_SLEEP .resume = sdhci_pci_o2_resume,