Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161097AbbENUWS (ORCPT ); Thu, 14 May 2015 16:22:18 -0400 Received: from mail-bn1bon0117.outbound.protection.outlook.com ([157.56.111.117]:54368 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S964879AbbENUWQ (ORCPT ); Thu, 14 May 2015 16:22:16 -0400 Authentication-Results: freescale.com; dkim=none (message not signed) header.d=none; Message-ID: <1431634919.3868.204.camel@freescale.com> Subject: Re: [PATCH 2/2] mmc: sdhci-pltfm: enable interrupt mode to detect card From: Scott Wood To: Lu Yangbo-B47093 CC: "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" Date: Thu, 14 May 2015 15:21:59 -0500 In-Reply-To: References: <1431505246-40102-1-git-send-email-yangbo.lu@freescale.com> <1431535027.3868.44.camel@freescale.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Originating-IP: [2601:2:5800:3f7:12bf:48ff:fe84:c9a0] X-ClientProxiedBy: BLUPR11CA0084.namprd11.prod.outlook.com (10.141.30.52) To BN3PR03MB1480.namprd03.prod.outlook.com (25.163.35.143) X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB1480;2:dWGAokWjnYZ5RQHAROBdnhKJYeBkUbard3RfNnT/XQF5DxBcltwaUcw3o3p2T4jg;2:erkMC/z8P6uD8kVg/Lt7xClEQeMTlGcImYM6l5sq+C6sZFlaWfGtwBN5lLHMYdzzkf4jI3piLpvsXXCHqtQ53zQV39NEqo75slmoiWUoEHThy33vWG9y0WmVUVMpHq2P4/O+8BBS/L5xvLExacGnvw==;6:FH9cIutZx01Tzdz75p1/qLJSU0Cvgd3wvEOz7jjEuMxZm1QEzIVF2BHUdIVpwKV3TZwPkV/LvFOyfMIfcu8BEIW/sBtjX3YIA/8A7HrjBmT/DxlW3taFOr7cLXhEzeGCZ+VdhtpBOlxuKMHVJ1eeSFWzHVDA4fW0Nb5rCzha0kaPufT7OkGki0LVDSjOg5BhXW1nwoIJbV3bFA40he7OXyWQqk9i3w6ZfBTcQak3IIaZSzr9xgGfXBgIz9aIYeCgcg9nAJRzCb0xWN1xetLYUduiDtEn+WpNXg9d6rd0WmV11OyXzJOh2QlJjOw0TTaM2K4Mzu1Eccg603pYZYsCilQiuTqQHnIlXk4IBp0w2YXokFKG7d5x+RDsBRXfwP0A5G5I+RUv8LpxD/6N93lvM4kwljg//NOvuEwtoKGiTwEVs+8ADNv1OFoh5jLMkFscsQP/mr9nqgNkk825irnEJ6YHBzCimbsDpZImE2JOvzuce0AtlQ8Ac26WX4uPQlVN X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR03MB1480; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BN3PR03MB1480;BCL:0;PCL:0;RULEID:;SRVR:BN3PR03MB1480; X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB1480;3:QjfT9EVQLjalVv24uHGiamEn1iUlNZs/j6IfnIqhuaHpRE1HK+iUo1XsvIN9OxTFJ9sfwtCnrVXrWVcNE1uqhtYYGFswx3d3zxDNAKKAHu6V6TmqWa4oQmvyJyYXeTdpHOlgAMao3yQAfxWq6uV1Wmo/3ChzDJGToizy2cFHCYHqirZFf7dN3QONTntFL4/F132TnCCWoRqBN3hmTpRZthDMa+ULv+zszsZeCxBj09ZQoD0MzFI/BWL9TyMwRsX2nJnAROHqBBBevc7kadIyz1+JOAjRGky+F6nAb3gYBn8= X-Forefront-PRVS: 0576145E86 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(24454002)(377424004)(13464003)(51704005)(377454003)(77096005)(103116003)(5001960100002)(110136002)(46102003)(50986999)(76176999)(42186005)(189998001)(47776003)(122386002)(92566002)(50226001)(36756003)(50466002)(62966003)(33646002)(77156002)(2950100001)(40100003)(19580395003)(23676002)(87976001)(86362001)(5820100001)(19580405001)(3826002)(4001450100001);DIR:OUT;SFP:1102;SCL:1;SRVR:BN3PR03MB1480;H:[IPv6:2601:2:5800:3f7:12bf:48ff:fe84:c9a0];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB1480;9:xaGc4eTewoTEt6joNq+U0edJwLfHrV/hQJwslYIIdTngF/AhAG72RNlQw/09JtcN6HSRqn8MbRLWn7jlHjhu8VpjB+uGKh78Cin4qr7Iaf9pUC/mSv0rJpmrIJIXemlEv0JV5Dexc+m/RM8oGHq8R5i+fSbtgzCcJ3pXNsyRMkcVHpeHwk7TeqHmfzE+A1lVleis+B05UgA9R/ZS9I7iC7RWErUBE8SrMZMyS5GNnX8iIbosf8B3AjdtwT3igYJ9QS16fZ083aSoWs9p1V0HrzUl6QAdGVQ1ie+K2ksldggYcdbgkgEvaMQdseSuPZCaxmnCLPYa5fiKVl4+Cf1K/DsXAH6hqzYmB5YYoalfsktWnZOQ+auioCjrrAWFhL9tDxKYUKRNXCM5JflcKxxd4OitjBW1mu6gockoco9+Ch4aOo32G50Z+M8PtI03Vl8QNyWAnw0FGgZDQPmzKL4/sj3JM5uZudKjhT3qK/gGu3PBRXaPNkfitwHBOBNpNZ/Jo8c2quIp9ssoUgbSG2SVl/FY7ZIXiVdi1Cs6cuEAtNQ0pvbACvFkiASr1QNGP5u1/b5cmSzwA6Wy0kkAVAc27CcNVF+7iowjzDEsxKqAPT7xa9TOq5ssQXdtjNzeM3fuQrLUaXGfKz6JpsQJjdEqSn2sFXSEqqAhPse6/PPa6Tt86kGHCfvpq9puXw1yC9QonVPH0atBp9hZOug4mqLYSILQtkPZYyg7LIoAnln6soAjNWufk5AMkNZ320KBdttndJvUl3mu+HubHPANq8P3u1rKNg4eUro3CgG5ZI+zeU6ptp0gd8d6WOEsBZRtvcmzZg/kDrzM7YzefJRrM3nR77oz1S1Qe01g4Ux2VK4JAJFOBBoO1rDlLpVH6KXg5fJi6UzGfRNFXboS8LU/NWSV3oCtISqz+ZX0FvansVp6sSI= X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB1480;3:BDKhwkUyos18lFFrgWSdVtlmx+m8Sy3DIpkxVv4a6Fz3CEALgFmZNFZxey8Fp32oUjKkaKg73ffgdP7tAQ8wV4ru4i3+al6gKmlG+vXBIYAL4xQTly1VtqjfYxcBoILS2vyBxUl+PoW4I6e7ErzOag==;10:qzlzNJoXOAQ5nteaLkV4cRrGG/P5ygKzQgj6EPfKCqhuSdjmTP+rueHuOWFGWr2h+ZH3btt1/D1Jk6kO46OzLG35O0ggXieOlio4NpGgyQw=;6:kmgpc2MHym67rw9Fv6dWA98yk4VAmcGDcF5Bq39aNy4afAENJEevCSIGzM5jgI+R X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 May 2015 20:22:12.4103 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB1480 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2469 Lines: 61 On Thu, 2015-05-14 at 01:29 -0500, Lu Yangbo-B47093 wrote: > > > > -----Original Message----- > > From: Wood Scott-B07421 > > Sent: Thursday, May 14, 2015 12:37 AM > > To: Lu Yangbo-B47093 > > Cc: linuxppc-dev@lists.ozlabs.org; linux-kernel@vger.kernel.org > > Subject: Re: [PATCH 2/2] mmc: sdhci-pltfm: enable interrupt mode to > > detect card > > > > On Wed, 2015-05-13 at 16:20 +0800, Yangbo Lu wrote: > > > Enable interrupt mode to detect card instead of polling mode for > > > P1020/P4080/P5020/P5040/T1040 by removing the quirk > > > SDHCI_QUIRK_BROKEN_CARD_DETECTION. This could improve data > > > transferring performance and avoid the call trace caused by polling > > > card status sometime. > > > > > > Signed-off-by: Yangbo Lu > > > --- > > > drivers/mmc/host/sdhci-pltfm.c | 7 +++++++ > > > 1 file changed, 7 insertions(+) > > > > > > diff --git a/drivers/mmc/host/sdhci-pltfm.c > > > b/drivers/mmc/host/sdhci-pltfm.c index c5b01d6..62f4049 100644 > > > --- a/drivers/mmc/host/sdhci-pltfm.c > > > +++ b/drivers/mmc/host/sdhci-pltfm.c > > > @@ -102,6 +102,13 @@ void sdhci_get_of_property(struct platform_device > > *pdev) > > > of_device_is_compatible(np, "fsl,mpc8536-esdhc")) > > > host->quirks |= SDHCI_QUIRK_BROKEN_TIMEOUT_VAL; > > > > > > + if (of_device_is_compatible(np, "fsl,p5040-esdhc") || > > > + of_device_is_compatible(np, "fsl,p5020-esdhc") || > > > + of_device_is_compatible(np, "fsl,p4080-esdhc") || > > > + of_device_is_compatible(np, "fsl,p1020-esdhc") || > > > + of_device_is_compatible(np, "fsl,t1040-esdhc")) > > > + host->quirks &= ~SDHCI_QUIRK_BROKEN_CARD_DETECTION; > > > > Please don't line up continuation lines with the if-body. All of the > > "of_device_is_compatibles" should start in the same column. > Ok, thanks. > > > > Given that you need to modify the device tree for this, why not just use > > SVR? > The drivers/mmc/host/sdhci-pltfm.c is not only used by freescale platform. So we couldn’t to use SVR here. > Thanks. I'm sure there'd be ways of rearranging it to make it work, but OK. Please send these patches to the MMC list and maintainer (and CC me). I can ACK the first one or apply it separately. -Scott -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/