Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1687ybl; Fri, 9 Aug 2019 01:24:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5dtQNoQOdzEbIkMmNFZgY4wwCv/FP1Mf5NRJ3iL7rKW+NTU9m2A1E5wvjLc18uG9uaf5+ X-Received: by 2002:a17:90a:2562:: with SMTP id j89mr8197938pje.123.1565339058634; Fri, 09 Aug 2019 01:24:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565339058; cv=none; d=google.com; s=arc-20160816; b=cpP7aJAgXJgnrQaZ0m7YLz2cbFGFoOvdCW87EDVHjZ/BafsvSi8CSawuZdpuLUqUhi Aupjvj8QusXz/5sGoYCNIXSqDDfTAbv+eIbTfG/qqtJuLsHNYk/KkwHPNxy6tvznz0Nt A8fs7KCQ+0sow/PzFfiq0Ub83cGVH3FjeIMYvZIkH/ey2XR2g05QBH+Sk0ssa7tbGBv/ o4lnbPcQ6ej/cszJEMnbJp8x2SUNiFoc0VoQwr86RYsSrlp69r+eNyY0wJZo/Nfp+6+v Tqf15JNC3GjcUXsoABAYrVG0LHGIOTuDfwumejRkMhzIOJ2ywbeBv3erXjTATetQNqQX QpCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:ironport-sdr; bh=Xx5qx/ZI6X+8U6HcJu9K9mq/n19kzrIA7E52+3mT1bQ=; b=MsSYrx0xfEUbueus6ERyCznX1XH5sbtViC4X1VLSJFAH4kuKf1RtxMxWFvaR0MZ3AF D4qKTKJPBVCMERD5puk2l9hE+MwRc84XJrIpUJdclmikonel4MsRg8T80g7HBjtZCJ+1 982msKwnoI6HiS4yu+EKNy57HJEd7IBrLHhGMrnEbkt7RROnR4lGBSpZYYe4xkCQt+5A TjuT+D1L0rbVXR89dcfLZW60WZ4SQ8z40CKJWI0TdwJwyCp7TL1vd+HPvVt6+KNCO4WS NuSyj7IF6cfJkaD3xFmE2dkgGfXhPWCxg2VtRflutB+IKGDWWEYE8JA6ZfshXJ+4P8KK +SOg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u96si748971pjb.34.2019.08.09.01.24.02; Fri, 09 Aug 2019 01:24:18 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405766AbfHIIJt (ORCPT + 99 others); Fri, 9 Aug 2019 04:09:49 -0400 Received: from esa1.microchip.iphmx.com ([68.232.147.91]:10925 "EHLO esa1.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727063AbfHIIJs (ORCPT ); Fri, 9 Aug 2019 04:09:48 -0400 Received-SPF: Pass (esa1.microchip.iphmx.com: domain of Ludovic.Desroches@microchip.com designates 198.175.253.82 as permitted sender) identity=mailfrom; client-ip=198.175.253.82; receiver=esa1.microchip.iphmx.com; envelope-from="Ludovic.Desroches@microchip.com"; x-sender="Ludovic.Desroches@microchip.com"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 mx a:ushub1.microchip.com a:smtpout.microchip.com a:mx1.microchip.iphmx.com a:mx2.microchip.iphmx.com include:servers.mcsv.net include:mktomail.com include:spf.protection.outlook.com ~all" Received-SPF: None (esa1.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa1.microchip.iphmx.com; envelope-from="Ludovic.Desroches@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa1.microchip.iphmx.com; dkim=none (message not signed) header.i=none; spf=Pass smtp.mailfrom=Ludovic.Desroches@microchip.com; spf=None smtp.helo=postmaster@email.microchip.com; dmarc=pass (p=none dis=none) d=microchip.com IronPort-SDR: Ez9pOIoZtFKff6baimLMQ7mQcJ9pgBWUaVIIB2RVIgaHjXa3kQxxtK7N9FMXfXQjTI7XnES4Ad 7Cv1xrEwpteMPfkUvfJlWPJ4672GAzNv5MeyWfjdaqo+MX1BUji0dJQcdwlHFq21NEalhVz+Rl 4I+U9k/K+gXUu6BmJh5mVaMBQeW8xq47tfR7OjRyaPODZhRsRTdjRMPg/FgE9XoTP043uQP66c fe+70ju+qxz08yIO00997hczI11wr/Q/P94+tQLpg3rxetFRQeuSyqYCdrkUE1qUaOmm8RK93u qto= X-IronPort-AV: E=Sophos;i="5.64,364,1559545200"; d="scan'208";a="45983219" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 09 Aug 2019 01:09:47 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Fri, 9 Aug 2019 01:09:47 -0700 Received: from localhost (10.10.85.251) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Fri, 9 Aug 2019 01:09:47 -0700 Date: Fri, 9 Aug 2019 10:08:43 +0200 From: Ludovic Desroches To: Ulf Hansson CC: , Nicolas Ferre , Alexandre Belloni , Adrian Hunter , Linux ARM , DTML , Linux Kernel Mailing List , "linux-mmc@vger.kernel.org" Subject: Re: [PATCH 1/2] mmc: sdhci-of-at91: add quirk for broken HS200 Message-ID: <20190809080842.zl4ytbjyt54bj6ta@M43218.corp.atmel.com> Mail-Followup-To: Ulf Hansson , Eugen.Hristev@microchip.com, Nicolas Ferre , Alexandre Belloni , Adrian Hunter , Linux ARM , DTML , Linux Kernel Mailing List , "linux-mmc@vger.kernel.org" References: <1565252928-28994-1-git-send-email-eugen.hristev@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 08, 2019 at 05:23:00PM +0200, Ulf Hansson wrote: > On Thu, 8 Aug 2019 at 10:35, wrote: > > > > From: Eugen Hristev > > > > HS200 is not implemented in the driver, but the controller claims it > > through caps. > > Remove it via quirk. > > Without this quirk, the mmc core will try to enable hs200, which will fail, > > and the eMMC initialization will fail. > > > > Signed-off-by: Eugen Hristev > > Should this be applied as a fix and possibly tagged for stable? > > In such case, do you have a specific commit that it fixes? I think so, I would say: Fixes: bb5f8ea4d514 ("mmc: sdhci-of-at91: introduce driver for the Atmel SDMMC") Cc: stable@vger.kernel.org #v4.4 and later It doesn't apply on 4.4 but resolution is trivial. Regards Ludovic > > Kind regards > Uffe > > > --- > > drivers/mmc/host/sdhci-of-at91.c | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/drivers/mmc/host/sdhci-of-at91.c b/drivers/mmc/host/sdhci-of-at91.c > > index 57fe3b2..3a8c6d8 100644 > > --- a/drivers/mmc/host/sdhci-of-at91.c > > +++ b/drivers/mmc/host/sdhci-of-at91.c > > @@ -370,6 +370,9 @@ static int sdhci_at91_probe(struct platform_device *pdev) > > 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; > > -- > > 2.7.4 > >