From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 522D3C3A5A8 for ; Wed, 4 Sep 2019 18:02:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2A54121883 for ; Wed, 4 Sep 2019 18:02:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567620130; bh=W7okh1u7Oy6Sx8YpUmujwLy4mkFhhOq0pDmWqnfj42E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=gjBUvd12LaVNXlAOjpgVPvHyic75MJW/rdhIGwE5fE0zXJLxja7P6sCSXb2KrP51X azMtYUp279K2MeJKvIXAiwih7Oz6SedXPqCFBqgTmHbWnS9RzRcVSsGxiSIUcaozup ves1dZIr22h2nvXZaeJ5qjvhHDz4FHDZ6AZTfga8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388331AbfIDSCI (ORCPT ); Wed, 4 Sep 2019 14:02:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:41898 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388696AbfIDSCH (ORCPT ); Wed, 4 Sep 2019 14:02:07 -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 5FEE822CF7; Wed, 4 Sep 2019 18:02:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567620126; bh=W7okh1u7Oy6Sx8YpUmujwLy4mkFhhOq0pDmWqnfj42E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AIX/tKj243U8UKxjWjbNAu4jKMSdcTVrcLzMyoL5BTBkAFN4QtqlpsgUYPZa6Ja7b JOd0lSkP+2Z6BNAPRAR1BwIlJV5F35TuLK3sm1+JhN0mhrMoalmCfv+RycPu9B5IaX XKzQ/tqhLWhCzAYp3B3ZI4P2Oc++PdtQ0B6Ni4Rs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eugen Hristev , Ludovic Desroches , Adrian Hunter , Ulf Hansson Subject: [PATCH 4.9 74/83] mmc: sdhci-of-at91: add quirk for broken HS200 Date: Wed, 4 Sep 2019 19:54:06 +0200 Message-Id: <20190904175310.124805937@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190904175303.488266791@linuxfoundation.org> References: <20190904175303.488266791@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Eugen Hristev commit 7871aa60ae0086fe4626abdf5ed13eeddf306c61 upstream. HS200 is not implemented in the driver, but the controller claims it through caps. Remove it via a quirk, to make sure the mmc core do not try to enable HS200, as it causes the eMMC initialization to fail. Signed-off-by: Eugen Hristev Acked-by: Ludovic Desroches Acked-by: Adrian Hunter Fixes: bb5f8ea4d514 ("mmc: sdhci-of-at91: introduce driver for the Atmel SDMMC") Cc: stable@vger.kernel.org # v4.4+ Signed-off-by: Ulf Hansson Signed-off-by: Greg Kroah-Hartman --- drivers/mmc/host/sdhci-of-at91.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/mmc/host/sdhci-of-at91.c +++ b/drivers/mmc/host/sdhci-of-at91.c @@ -317,6 +317,9 @@ static int sdhci_at91_probe(struct platf pm_runtime_set_autosuspend_delay(&pdev->dev, 50); pm_runtime_use_autosuspend(&pdev->dev); + /* HS200 is broken at this moment */ + host->quirks2 = SDHCI_QUIRK2_BROKEN_HS200; + ret = sdhci_add_host(host); if (ret) goto pm_runtime_disable;