Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754562AbbEMQhW (ORCPT ); Wed, 13 May 2015 12:37:22 -0400 Received: from mail-bn1on0135.outbound.protection.outlook.com ([157.56.110.135]:62820 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933214AbbEMQhS (ORCPT ); Wed, 13 May 2015 12:37:18 -0400 Authentication-Results: freescale.com; dkim=none (message not signed) header.d=none; Message-ID: <1431535027.3868.44.camel@freescale.com> Subject: Re: [PATCH 2/2] mmc: sdhci-pltfm: enable interrupt mode to detect card From: Scott Wood To: Yangbo Lu CC: , Date: Wed, 13 May 2015 11:37:07 -0500 In-Reply-To: <1431505246-40102-1-git-send-email-yangbo.lu@freescale.com> References: <1431505246-40102-1-git-send-email-yangbo.lu@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: 7bit X-Originating-IP: [2601:2:5800:3f7:12bf:48ff:fe84:c9a0] X-ClientProxiedBy: SN2PR10CA0007.namprd10.prod.outlook.com (25.160.12.145) To BN3PR03MB1478.namprd03.prod.outlook.com (25.163.35.141) X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB1478;2:hYluT8C5WnGAuBGbqGiqv8Y0ndAsQpvgcREs9VAH+VMCbK6mE+AtZ/93osVTrnv2;2:vhzOeWxWYqYubKeeDVZ6AJUTdVnDoZJJ2LmeUQq6WBa6aA3vLLgwYW792eWG4loxVX6BWyN6SMPB/Oso3zVVYXcN+2eXcgUWTJbkxLzaOEiiT/TzW59kRDJnvE+wOiMJ61BpmcYLhA6ahwAxdBpZlQ==;6:6Q5YpZOJLPHgg8q2jufsIa0pQp9JzHgoqNkDgHWasmyqmbgt+UqymWkjYNosrNm+qukHLvDWoFaTu+LSyZTSn9erNSMH0vJjzYuE1cTM+nzUeJKICdGYx17/Zes48fDVI9tAgS2/JtLeMwOD3i18s87ui/F8rKFuF78EGInr98GNLk/qtTz/1gBqFrKQfbQkJC9bOCKrm0ifbO4WKAqA9U5WwbeoXRfaqHQ0a0vim1sMJy5Q90jdMY7IsfQ2lWzLDWMyVR0rOX+5gOLfZoVgyHmaNSlYs8Bm4b3I+8THn/GICKJ1vO1h0tdv919+MoLLpvgOUwH7n7+OsVFpoeEnHtmgLUlTGOosaP/PqVougLVh9/0I/DW82b4hiGmho49ndfGGd8fmfsw7RYmCiuxT8ASjXHl+FbrHHGAsij8ZbBagZrGfku6tnSy6roFkWvHjlNuxAcBd59YCdyYO6CmOkaFhzi/pSrN8tnbcjqEs1/j74qdKHsxX7WmGlhd8iIsV X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR03MB1478; 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:BN3PR03MB1478;BCL:0;PCL:0;RULEID:;SRVR:BN3PR03MB1478; X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB1478;3:kn9MNj6LierTmrgJt5qlMs0kFsaQw/LfDh4CyK3IW9QP4p9HU2LdLJ1G3kAHtRK7Mr20p49Ln7dMe+O3UXgabdNFUTi6f/AwX+IU/dgHBPdT+v40fSCEaN36jaT2eiXJJrp7qfGRe6PIvD1G+Fwq0HRVexku/+G3bXIEQ47sEv1ziF/jQxaCDVFDvJk0Li3SfYii38T5X7plrmABlQj9TANprD7+gVVb8fPi3l02VvkITYfyeHixYcEyUSGxeFWjU8AKtx57DPeUQmVLxSXLdWD6abbmyYQpbPTcJuZiw8k= X-Forefront-PRVS: 0575F81B58 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(24454002)(51704005)(377424004)(110136002)(76176999)(47776003)(189998001)(33646002)(36756003)(50226001)(50466002)(46102003)(87976001)(92566002)(86362001)(62966003)(2950100001)(77156002)(5001960100002)(50986999)(122386002)(5820100001)(19580405001)(40100003)(19580395003)(103116003)(23676002)(77096005)(42186005)(3826002)(4001450100001);DIR:OUT;SFP:1102;SCL:1;SRVR:BN3PR03MB1478;H:[IPv6:2601:2:5800:3f7:12bf:48ff:fe84:c9a0];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB1478;9:zvk3nzFAgbt0ChxV21ikRCjhJIDIiFU5VfTNDvvxxIgj6awecOJq9CPpsZJ+i/N9ZTHK0LOndqDohBSmrV/8wfoIFtoKgu4QbAqHTfYDtNQgo2qQmvWCjHSDY6HZnrBvBqvKqrakB5SarsVDKbsKB9QDGlTbsLz6ZhqczENRpvEkQDcjuwi762RsEngWK2ItH6b17LGKnRi3yhyeqNALi/nj+C2ThWAd46te3MCxvsLvqGa53t3amvbS8+cisAXpE7mgQ1OjLiffWO9a2jBOSPxdGAc88bOrgRSlqW8be7sxpiRxP4o6fsuplui1CwHWzZUkCKuZUNNcjPyUWSibs/bdp0V1hhck34JsHgSK7N9Z9St0+8AFCxNwiC09nz8FtRMDgg+omKiTr0c1lhnEP5BCUBjMcPPMKReQVSbziA+ZsEE6UHKuXTzI8GsC+j7d4N5jAMUr0X3/atFzeDr2r0VqkamJTmLyaWFNkr346w6k0O4o5/3vP5gahrl7Gykp2knyviHpDttvaGLLgcao2e77a7rB16ps4S5XjOnCBuI0aSeAIuPkg3RjV6n6OZVRGyBo+qDm1Lmi68Vw2bAvc6FZa/f//7frgXQdoIzR1B2OZvsBNCvn3QcsvkdAr4KT+1unRczOLxq0INXLu69yy6YTdFFbi0UuZELrDxK9hHQ331KaenaIbfx/RFvNy8E90C8JcKoJbv/SsfFMULO8qei+DQdlN22mEjPUYvCtehqJ+qq7r8m8FX6sWw8t9fnSt1DxyO+bA/chzoiOdKwxxkUdyaixQciObR5WZgIZni7PLdYjKsUbkKfHIVW6KguF+CdKv9FINeBH6Dn1xNZ8CHpj1g0uAJTajPxlI6cuJ0uKZ4Y7lRwXE6yQ0/HlZcPK X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB1478;3:6d38D0wbg90vl7OYdE6JBmk/v4R99Z+7y46y3aKKElTyYPgM1yEvfUt5ZwDis3hHh4nLy+gBJBVAsUYzUlIEvrWi3fZRts21L0CF8fHf2ZS6id4AHIXz58deNwc5HWiL04Z60qcKdrkywO51opNQow==;10:b/mwItkJR/ay46IqgL1PFIN27cA6DS/f1VPxvBm2rsuJ/i2GTywOXhiZojCGY3jHzeAK2zWaxwQ5yF3HZl6s9B2APwAfHO5pwjd++i+ckxI=;6:bcKxkIq0bfa8vrZ0lKIjaL1vT7ZAYmKMoZggx7+YXUu4ZujoYwbpLA9/Cybf76Kg X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2015 16:37:14.1249 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB1478 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1664 Lines: 41 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. Given that you need to modify the device tree for this, why not just use SVR? -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/