Received: by 10.223.185.116 with SMTP id b49csp2795817wrg; Mon, 5 Mar 2018 08:48:45 -0800 (PST) X-Google-Smtp-Source: AG47ELvI9t+rQ+jEbEC9t8HbqcQoN4D0MkpspA8vkIoFygzeG1hMvRioDC6LNqsDftbLtgT2soA2 X-Received: by 10.98.75.18 with SMTP id y18mr15995377pfa.124.1520268525571; Mon, 05 Mar 2018 08:48:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520268525; cv=none; d=google.com; s=arc-20160816; b=ILKxALXhXmOfB+jSYq4RklZCiNx3wM3lSrTB0ReHh7betJsuZYBHHPbq3CPlAtrsEg A5Ag+txDThwD9r9ucgin8xDc1v3X7IoYFwz3IA6IcWebipjiSMRHRTSbXUtLG4tkRMkJ VpTYWUK5jp+zgNOnrt99ufCVZzkNU2pz74pEti/bxZ13L+Rls2Do9vttHNm7WZjtsL0P dQSbj1lLLb3cUwmceJAGlUaW5A4ikAFptrsNXkj+qHhKkOX//cOq2knKHhQmfu6xe6I0 L3Itwi4w6tp6Sx1lXzu650DHaNaj2E6l59qhQSFOoKc7BgxmfwYZuMRXc6KHsYlt0+sM n8aQ== 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=dBe569v71f8VDkj+TXQ+FeEiRcnsc4ZBvoQoUYfeqjA=; b=tfQ79uCYSJR2uvPG1PdG+QO62tW/+2YUEm1yMxrASwOfY6lVoshkl5hmo8nrVhF0w8 EVEDrwjOpBp6HCeZyQPpXj3qXsXHZKFyW556T1pZlyEhvPJ0ByxJhOJTwMA82xDTy2M5 PuGBJeFZYviiEsR30nmiHCmUwyl4QwkDur1mGRH9fBbWNrMSwm1HDLKQPoyqY2KrHkOj 88t514wuo4fEIWzNtjZR1z+cAZk1qydBx9Z+9n9ED5FQ5gQoZyG4HlfdDvbj1+4UdjHn lBWYXrkYegmIqKoTd7qRXaEVNz32wEO5k0YUAInVNsUgT1dWcNDuTLgDvRhIkSkWVqzM 2chg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@renesasgroup.onmicrosoft.com header.s=selector1-renesas-com header.b=Bd+WpplJ; 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 v24si10331543pff.274.2018.03.05.08.48.31; Mon, 05 Mar 2018 08:48:45 -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=Bd+WpplJ; 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 S1752110AbeCEQre (ORCPT + 99 others); Mon, 5 Mar 2018 11:47:34 -0500 Received: from relmlor2.renesas.com ([210.160.252.172]:46145 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751275AbeCEQra (ORCPT ); Mon, 5 Mar 2018 11:47:30 -0500 Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie1.idc.renesas.com with ESMTP; 06 Mar 2018 01:47:28 +0900 Received: from relmlii1.idc.renesas.com (relmlii1.idc.renesas.com [10.200.68.65]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id 932993D86D; Tue, 6 Mar 2018 01:47:28 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.47,427,1515423600"; d="scan'208";a="272905942" Received: from mail-sg2apc01lp0245.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.245]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-GCM-SHA384; 06 Mar 2018 01:47:27 +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=dBe569v71f8VDkj+TXQ+FeEiRcnsc4ZBvoQoUYfeqjA=; b=Bd+WpplJojtnbdmsm6qZoFEJhp//lwVzYoaceTVWTio7yocqX+GQEsh41Xpps+h4PNu8MVJHKGEZHmgZtY7wGDW85MCrWtzM/XPuwiblmQ1MLy6yz2Kc/ba0/9wYdYmOYQy2ovuPiFThW0eHPKVmm0U6ZcSESS9PCX/e8fs0THU= Received: from HK2PR0601MB1393.apcprd06.prod.outlook.com (10.165.182.135) by HK2PR0601MB1443.apcprd06.prod.outlook.com (10.165.182.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Mon, 5 Mar 2018 16:47:25 +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.016; Mon, 5 Mar 2018 16:47:25 +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+voS9LqO4TqAAgAAAiOCAAAN1gIAABH5ggAC3FQCACNF7AA== Date: Mon, 5 Mar 2018 16:47:25 +0000 Message-ID: References: <1519739731-27920-1-git-send-email-phil.edworthy@renesas.com> <52191012-300a-e13d-fa54-8717eb97c2e1@rock-chips.com> In-Reply-To: <52191012-300a-e13d-fa54-8717eb97c2e1@rock-chips.com> 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;HK2PR0601MB1443;7:3cJmQxpM6yjjVLyas/VfAQj3BAaJeM96kZwzBNKWLwkaXKPGr3HUw0EhzqZhITHFtOeRS7t1V4WszAlLDciGN+4cs0FNuflQo4onF+7WSTZwKTuBz+IBv1d+omIti7HRvCHdRJAJKCnCxASgQo5F3amIAIfg/mCjdmW+SN9EMoHmNMlAJlU8IvSTEkCGlp7O59BADq3wVlRk1BoNSdLds1KDp1fzTVvR78p7QFUSwpRcbdya0Kg4edXh+vyJYDFf;20:IxszdUYIxNJrRYhN+a9BNzrz8cc81uzNxgW8ZP1GP9FRpgnm4orYtTtq57KGVpIjFeXk02LAYuCbVFTvi+it0yAqjW0b0Wg73w+8cfRELwKaV0k2X8fQRt+P5cVnZLNcCcDbX3+FTBIzp5sg/qxQEprOxBpbrNI5+BYEGzpBw84= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 687d8bae-ec69-4830-004e-08d582b8c623 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(3008032)(2017052603307)(7153060)(7193020);SRVR:HK2PR0601MB1443; x-ms-traffictypediagnostic: HK2PR0601MB1443: 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)(93006095)(93001095)(3002001)(3231220)(944501244)(52105095)(10201501046)(6055026)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011);SRVR:HK2PR0601MB1443;BCL:0;PCL:0;RULEID:;SRVR:HK2PR0601MB1443; x-forefront-prvs: 06022AA85F x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(346002)(366004)(39380400002)(39860400002)(376002)(396003)(199004)(189003)(186003)(8666007)(97736004)(102836004)(93886005)(6436002)(9686003)(81156014)(81166006)(8676002)(6306002)(26005)(55016002)(2906002)(4326008)(74316002)(66066001)(305945005)(25786009)(5660300001)(7736002)(2950100002)(3280700002)(6916009)(105586002)(229853002)(59450400001)(106356001)(33656002)(53546011)(6506007)(5250100002)(8936002)(54906003)(478600001)(68736007)(99286004)(8656006)(6246003)(6116002)(3846002)(86362001)(53936002)(2900100001)(316002)(14454004)(76176011)(7696005)(966005)(3660700001);DIR:OUT;SFP:1102;SCL:1;SRVR:HK2PR0601MB1443;H:HK2PR0601MB1393.apcprd06.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: renesas.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: zjQbnezFPPe5vxb5UZsCjFj2nNZXTgROFNNXesvwjwdFAyjUMs8YIKRNZfqjTi3oItjA74nZdmJhilguQMrEnvnbHk2AStkpUfUECiEM9/hWfQsPeQ0cnZ5bWHjmhwuSJljcZMmBFKUG2159WWmaQ190UHThXrPF4hzK1J6p7gqKf5VFqIgM0CgoruMdhYRXOma+lNzv94SJIrDplodFKaN2dN5C8rcWEPT711NA82s5vLiGGIk9GlP0ZCgyD1GT4icXmFZUG2mvgjf7TpN6LBQiZyI+Xmc5pI9UCIfimiqm/owmxTgAyaRkv1Ks6+hUp2esay6z0CRgjQ5YWOqasw== 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: 687d8bae-ec69-4830-004e-08d582b8c623 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2018 16:47:25.1348 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2PR0601MB1443 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Shawn, On 28 February 2018 01:53, Shawn Lin wrote: > On 2018/2/27 23:05, Phil Edworthy wrote: > > On 27 February 2018 14:42, Shawn Lin wrote: > >> On 2018/2/27 22:31, Phil Edworthy wrote: > >>> 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 us= e > 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" > >>>>> > >>>> > >>>> I'm afraid you have to explain which version of arasan's IP suffer > >>>> from this 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? > >> > >> What I meant is could you elaborate more about what kind of cards, > >> e.g, are them the legacy SDSC cards or SDHC cards, or maybe they are > >> only running with defaut speed? or whatever, but not just with a > >> vague "older" cards. :) > > Unfortunately, I have one SDHC card that works, one that doesn't. Both > > cards are running with a 50MHz SD clock. All I know is this: >=20 > Thanks for sharing these, though it looks wired as I never remember I saw > this problem when extensively tested SD cards on one of arasan controller= s > in 2014. Not sure what you mean by 'wired'? Note that this is on a relatively slow device, a dual core Cortex A7 @500MH= z. Maybe that has some effect. It's also interesting that someone posted the same fix for Xilinx a while back, I linked to it in the commit msg. Thanks Phil > > SD cards that report unexpected interrupts: > > 2GB Sandisk Extreme III (e624 SD02G 1.89 GiB) > > 8GB Sandisk (SDHC class 4) (aaaa SU08G 7.40 GiB) > > 8GB Sandisk Extreme III (SDHC class 6) (bb4e SD08G 7.61 GiB) > > > > SD cards that work ok: > > 16GB Samsung (microSDHC U1 class 10) (0001 00000 14.6 GiB) > > 16GB Sandisk Ultra (microSDHC U1 class 10) (aaaa SL16G 14.8 GiB) > > 32GB Sandisk Ultra (microSDHC U1 class 10) (aaaa SL32G 29.7 GiB) > > > > Thanks > > Phil > > > >>>>> This has been reported on Xilinx devices that also use the Arasan I= P. > >>>>> 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) > >>>>> > >>>> > >>>> > >>>> -- > >>>> Best Regards > >>>> Shawn Lin > >>> > >>> > >>> > >>> > >> > >> > >> -- > >> Best Regards > >> Shawn Lin > > > > > > > >