Received: by 10.223.185.116 with SMTP id b49csp5016899wrg; Tue, 27 Feb 2018 06:33:25 -0800 (PST) X-Google-Smtp-Source: AH8x227lueRvWqymgg/5Dt3jSOr1xD//AI/UfCQSD+f648m1YTe6GywfA+Q+PXUb22OmwRTf4gDF X-Received: by 10.101.77.7 with SMTP id i7mr11509685pgt.330.1519742005269; Tue, 27 Feb 2018 06:33:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519742005; cv=none; d=google.com; s=arc-20160816; b=zOeSMRqj8efPzIoVNejjkt8EylePtrnkQLJSRXemqcBXza0dQ6gIqb3vYeKLMQH60+ 46myJv1ShHkYg3G2PfXpYarMAHDjGTA8phkuLbpqTChh7rVqxKZl2S0KkoriGGttnRtS 3hhVVGwszgYEA15WRVJaBrZXAcn0/19yRNIuGHOlkbiTiZ4pF/XeWw5thTj+ahZxk3MV NBOIKHfq+r2LClynirnmJEZBbi8liSI5gk5chI3GN7PzL7h0Gi4EOBxd12Z/ZkI6hMFl w055rff0bEk/VYgfOmq3Pcku3WVIhwlaICEuJOSyAZ02YY9S+oBUM0XTHZKsQvekHb0V L7EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=H6+aZqVhJmN8OMen8x8YD2fYpW+8SzO040+E2gb27I4=; b=MOg3J7Cut3EAKY/tETj4XfIBKDTjL4x1DSdLip+5X1NppEhoq+bBJ9Mopv+QnhbuBa 92bPyPpdXCuDFhSVgDyA3H2vVpvG+K/fG75/uCFGyIhQt48tHQIHYPAqCCAbXJxrkJQc eHXccVJPvJFbYGNVFCz0haE2HF499MYYJOPz0Nc1shiuHDvz408wPgkry/l9SG+No3wA /ICltItGqBbWIgk62mw7Uiy/A/GEUtBPC/g76u36QMGyJpzEVbecKNb3aZ8pfOwroOVr FIkopa3HSrPBJ6lrwbADISqxUYb5WolTK1n2k7Pb/QZeKHYr27DBAA/1hga0WM9sGpi7 UjJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@renesasgroup.onmicrosoft.com header.s=selector1-renesas-com header.b=Wn9tI1DC; 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 124si7070415pgj.673.2018.02.27.06.33.10; Tue, 27 Feb 2018 06:33:25 -0800 (PST) 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=@renesasgroup.onmicrosoft.com header.s=selector1-renesas-com header.b=Wn9tI1DC; 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 S1753899AbeB0Obs (ORCPT + 99 others); Tue, 27 Feb 2018 09:31:48 -0500 Received: from relmlor3.renesas.com ([210.160.252.173]:50130 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753357AbeB0Obm (ORCPT ); Tue, 27 Feb 2018 09:31:42 -0500 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie2.idc.renesas.com with ESMTP; 27 Feb 2018 23:31:40 +0900 Received: from relmlii2.idc.renesas.com (relmlii2.idc.renesas.com [10.200.68.66]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id 65DD677F3F; Tue, 27 Feb 2018 23:31:40 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.47,401,1515423600"; d="scan'208";a="273636983" Received: from mail-sg2apc01lp0248.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.248]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 27 Feb 2018 23:31:39 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=H6+aZqVhJmN8OMen8x8YD2fYpW+8SzO040+E2gb27I4=; b=Wn9tI1DCfjAIEV1k/Mpe/a34f0oKdkaV/QQ8KhXcWIWD1Igsu61tBg+sA6RonwlXdvQ8ITSb/MK+Y+1KdtTKHNkCURHpOeHiqmg4WK9ZvhZxFAOv9Ji+aYAKjN7V0Bfe7gcvxU//oLaCDpDPPgTWwj+1gXZqej0XoDwMNdeD9Mw= Received: from HK2PR0601MB1393.apcprd06.prod.outlook.com (10.165.182.135) by HK2SPR00MB03.apcprd06.prod.outlook.com (10.170.152.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.527.15; Tue, 27 Feb 2018 14:31:36 +0000 Received: from HK2PR0601MB1393.apcprd06.prod.outlook.com ([fe80::38e9:97ec:4bc3:abce]) by HK2PR0601MB1393.apcprd06.prod.outlook.com ([fe80::38e9:97ec:4bc3:abce%3]) with mapi id 15.20.0548.013; Tue, 27 Feb 2018 14:31:36 +0000 From: Phil Edworthy To: Shawn Lin CC: Adrian Hunter , Michal Simek , Ulf Hansson , "linux-mmc@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-renesas-soc@vger.kernel.org" Subject: RE: [PATCH] mmc: sdhci-of-arasan: Add quirk to avoid erroneous msg Thread-Topic: [PATCH] mmc: sdhci-of-arasan: Add quirk to avoid erroneous msg Thread-Index: AQHTr9Kltqdm2PoG7E68/YC+voS9LqO4TqAAgAAAiOA= Date: Tue, 27 Feb 2018 14:31:36 +0000 Message-ID: References: <1519739731-27920-1-git-send-email-phil.edworthy@renesas.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=phil.edworthy@renesas.com; x-originating-ip: [193.141.220.21] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;HK2SPR00MB03;7:hMGOCZ8HQy0liWB+W82EEs6kXFkfKxHkRx51G0ppZg9isMxqjF4WhRBFgMTr4btEr8vRNnM+7ezTwxecVCkxWHVIUGeUM0Duh2hhPZCryuocyH0JmwEZ4bya+AR0D5VFWGINzgQczRR2hRdjIFOkjJQ1iKS9rR8Lrx0Ah5aDmlGpYQqncs96bJyib91OxK/aez1MzXZ2dOpxYBbxHgh6tUIOqHr9DiGOQmnDPJ2Fv3A9r3cCjCDXkwAirw9pVzMK;20:xZVDJ2lNT3+oviQk7I2UaQW0j68d2TqC/XM0sKWvcR2GN3CsyQkLQU10PMyyARbwMnSMNP4x8MsNLlLS2hPWzBE4EYnN3rKAv83hvKmn6JNXChs87B0/jiRcRb9cnGySMcV9R7pP96FXo49JzqcyJUEgH8DADVDQaz55JttwrK4= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 3b6cdd8d-9fc2-4463-c86a-08d57deeced7 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603307)(7153060)(7193020);SRVR:HK2SPR00MB03; x-ms-traffictypediagnostic: HK2SPR00MB03: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040501)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231220)(944501161)(52105095)(93006095)(93001095)(6055026)(6041288)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011);SRVR:HK2SPR00MB03;BCL:0;PCL:0;RULEID:;SRVR:HK2SPR00MB03; x-forefront-prvs: 05961EBAFC x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(39840400004)(346002)(396003)(39380400002)(376002)(189003)(199004)(4326008)(6436002)(8666007)(14454004)(305945005)(53936002)(9686003)(2900100001)(33656002)(6246003)(7736002)(966005)(478600001)(25786009)(66066001)(81166006)(105586002)(6306002)(2906002)(76176011)(3660700001)(229853002)(186003)(6916009)(2950100002)(26005)(59450400001)(55016002)(6506007)(102836004)(53546011)(86362001)(74316002)(8676002)(97736004)(68736007)(54906003)(3280700002)(5660300001)(316002)(99286004)(8936002)(81156014)(6116002)(3846002)(106356001)(5250100002)(8656006)(7696005);DIR:OUT;SFP:1102;SCL:1;SRVR:HK2SPR00MB03;H:HK2PR0601MB1393.apcprd06.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: renesas.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: /uW5pXiUw5nKkbfUFteI+lfjAIo3YmP4LyNtlqcEw2V7rgXxaW1rEBv8PBZLgQ+c1Au02UqK6WL2GIIrEd7xNFUKEbc2bVfowYxR5YoMosnc2iG6ZCjWx1eCJKHxWh8ZibDJaILjSl1va2XNcNd+LMyjckSg8XUlWpqedHMiPqw= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3b6cdd8d-9fc2-4463-c86a-08d57deeced7 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Feb 2018 14:31:36.7208 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2SPR00MB03 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Shawn, On 27 February 2018 14:28, Shawn Lin wrote: > =1B$B:_=1B(B 2018/2/27 21:55, Phil Edworthy =1B$B > Since the controller does not support the end-of-busy IRQ, don't use it= . > > Otherwise, on older SD cards you will get lots of these messages: > > "mmc0: Got data interrupt 0x00000002 even though no data operation was > in progress" > > >=20 > I'm afraid you have to explain which version of arasan's IP suffer from t= his > and what does the "older SD cards" mean? Ok, I'll try to find out the IP version... For "older SD cards", I can provide a list of a few cards that exhibit this= problem and others that don't, is that enough info? Thanks Phil > > This has been reported on Xilinx devices that also use the Arasan IP. > > See https://patchwork.kernel.org/patch/8062871/ > > > > This has been tested on the Renesas RZ/ND-DB board with the RZ/N1 SoC. > > > > Signed-off-by: Phil Edworthy > > --- > > drivers/mmc/host/sdhci-of-arasan.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/mmc/host/sdhci-of-arasan.c > > b/drivers/mmc/host/sdhci-of-arasan.c > > index c33a5f7..ab66e32 100644 > > --- a/drivers/mmc/host/sdhci-of-arasan.c > > +++ b/drivers/mmc/host/sdhci-of-arasan.c > > @@ -290,7 +290,8 @@ static const struct sdhci_pltfm_data > sdhci_arasan_pdata =3D { > > .ops =3D &sdhci_arasan_ops, > > .quirks =3D SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN, > > .quirks2 =3D SDHCI_QUIRK2_PRESET_VALUE_BROKEN | > > - SDHCI_QUIRK2_CLOCK_DIV_ZERO_BROKEN, > > + SDHCI_QUIRK2_CLOCK_DIV_ZERO_BROKEN | > > + SDHCI_QUIRK2_STOP_WITH_TC, > > }; > > > > static u32 sdhci_arasan_cqhci_irq(struct sdhci_host *host, u32 > > intmask) > > >=20 >=20 > -- > Best Regards > Shawn Lin