Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752461AbcKID1W (ORCPT ); Tue, 8 Nov 2016 22:27:22 -0500 Received: from mail-cys01nam02on0040.outbound.protection.outlook.com ([104.47.37.40]:29696 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751091AbcKID1Q (ORCPT ); Tue, 8 Nov 2016 22:27:16 -0500 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com;nxp.com; dkim=none (message not signed) header.d=none; X-IncomingTopHeaderMarker: OriginalChecksum:;UpperCasedChecksum:;SizeAsReceived:1413;Count:8 From: Yangbo Lu To: , , Scott Wood , Arnd Bergmann CC: , , , , , , , , Greg Kroah-Hartman , Mark Rutland , Rob Herring , Russell King , Jochen Friedrich , Joerg Roedel , Claudiu Manoil , Bhupesh Sharma , Qiang Zhao , Kumar Gala , Leo Li , Xiaobo Xie , Minghuan Lian , Yangbo Lu Subject: [v16, 0/7] Fix eSDHC host version register bug Date: Wed, 9 Nov 2016 11:14:05 +0800 Message-ID: <1478661252-42439-1-git-send-email-yangbo.lu@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-IncomingHeaderCount: 8 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131231356332021426;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(7916002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(8666005)(81156014)(8676002)(356003)(626004)(92566002)(4326007)(2906002)(77096005)(7416002)(305945005)(5660300001)(189998001)(85426001)(97736004)(7846002)(87936001)(50466002)(33646002)(48376002)(586003)(86362001)(105606002)(5003940100001)(50986999)(229853001)(106466001)(81166006)(8936002)(5001770100001)(36756003)(68736007)(104016004)(47776003)(50226002)(7059030);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR03MB2888;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD026;1:/tAX0RDx4w3HSn+FYP4m7KU4u6wdUyI3vW0208LEeLiR/AkdCCshyUxIwliRIlthBaOMKIBUaMF0Wk7csAesMSzV5wMd6YxNjtdETkA5N1a+cxl0vkZWx4Ww5ytxCcC1DLs9YyixaXqPLSMuxwVuIF4v1npBZPEO1xqJgIAKGf2FJD5xuhRutlv/b57WruIW/GW/5loSlRL3EnG31Aa6+AfokLzVkubnudgBcAoXDyrJKcryMud6++TnxCkXSpYxXFgjHpg1Ax7aWJkTQUdUW3sAU0UAz50xAO8DkMXmpW4zQ7moMT4WnO/8eMdmvwqkq1jnRk/QkiCgkitn3NVQ0xTOgc6I2dan8Me4sWm2P1oFnqW3TtvrINqkwfCG/W9Dku/jj0f8s2MfVAUSwcgRdFZeR6ntglNRsqxL0Ke/Z9HL07dokErkoObtZlopyV7Ac+pEGffOeR4Mqf6+XDg8Pgd+uZJ2RnEvn+pSl2hYVvn8vsIeJOjEj0X+gmqBPtdJelPZAJ8iXBcyGVEUs2xtOxWzUHNrsHEVzwKjjvSmamRNT8OFeyt/gC/h021I2Nt3hY23IF1QysaNIZB2rr8MgOdq/F/eUWiWozx2wS6bIZK07jNUI9oWeU9UDfxjbTy/9EX8BczlvLCEWZOc+gIj54pQEwUGEMPN/lZ1C8v/oHYdts4ivCc1I/anHM01jGEe4rvlRdDeuNf2x1IUEfgdo2fNX+fsonM7h4oPA4VIUih16Z86xe96bAXFAh2/QS/eCkHd3quYGTKyeLtf+XCgpA== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 33a9cc61-4ddf-4f19-16b2-08d408504c07 X-Microsoft-Exchange-Diagnostics: 1;CY4PR03MB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IBZL0Bwvkx/sbeEkXH3XHSdMVm2KutZEk5qnbonsUOnitsAOtvUS8VUV3l4DKgC1zL4R X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(13024025)(13023025)(13017025)(8121501046)(5005006)(13015025)(13018025)(10201501046)(3002001)(6055026);SRVR:CY4PR03MB2888;BCL:0;PCL:0;RULEID:(400006);SRVR:CY4PR03MB2888; X-Forefront-PRVS: 0121F24F22 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY4PR03MB2888;23:/GGr5yD/FCeCRVZS46EZVxs6CB5Oo/rGRUxxezj5E?= =?us-ascii?Q?PQyy4yjiDRQNf7ezhfRpzi+d9W8yiT75cNAUAJ3pWILShRDE+mNLQeBgMa0/?= =?us-ascii?Q?HZ/ttXUdp0WrSo6Yz1p2XJjIkK+vFCOvjB8NCkd6djvbN3thZV2nzHb5ZGsi?= =?us-ascii?Q?i4SxMzbY3Kk18QHmwCT7NpoX0GLjzySm+fpjG/0f1RpdI7HyhjdklFFxDkA5?= =?us-ascii?Q?Ta42SRbX5lmpsW57FuVSJqxGD0xpIXtzydDarMqsQ7YlcZaEUTBNuZ2YgTuN?= =?us-ascii?Q?CYtGTMSUJ6DR71iIirbgmolODfzY1niscEc7JzDC125U8GyVeMmT3JHacYPN?= =?us-ascii?Q?KLouXRQSeKuKRJoQ1MnRjBveNwJeuao5FV/v4NvJT+dn1+0JAbcGbBITWJbg?= =?us-ascii?Q?A9XUkygdLtPHtR83vhhvalmRzlqBPOIAALYr8c05qoXrBcUUz/L90sm5iy6n?= =?us-ascii?Q?fs5KlStUkEI2d7mSjS7r7AZvE05bRxGl4DQtFnXKUtDaOYUvlApVplPKc1A4?= =?us-ascii?Q?DFBY/rUUL8WrMXP0AaLM5EHmdxMB66XJwAlztdDrHRDsgTnYWKMa5bSSr+u2?= =?us-ascii?Q?89ObVpEpJq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0YEvc1YweX1cUh2q775o4Ub+m3qKu982pIm6hP6zK19/Cvb9mIIiEN8b/jNLlJs;24:rN5FjzY337s8+85F/9bQezmqzj5f70oztX+c1ABwZfzNBg8BOrFFWo+02YAexN5Vx+tT4CLny8smy2t0ScDDNE+8uklV+q1TisD2zYsbzwU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY4PR03MB2888;7:JtCQGGZpnRYExp7VufK3CVRHynpeI4oSpfDf5faqt/wXPZ0uOtGgpyf4mp09kfaWkJGPq+MqzB7gDC9Uaz3SXs+/w9y/pq5CS0KLYJtuUkSltlBmwvqLjUhpA5cGINnmjlW7NTg46V/2hh1V6UE2ALQfnono28d7cVuJIhKTBUfeQ4OwTcHOGehDuB4q24sDeUYIhzGZ1dCZS379qY1h4RWazhcfsst3ShGpwrDBdPXALOq43H7ABjxUvKhWjJ7xdHgObjD0svK8c4U2k3RzKRzWtGKFdYvsZB0ys3uJFerug9Z6/Wd0bxj6n/3poMNko5FpKtadp+xPpZmfO+yeB8zMK93vCtUmFuWUCKpUooQ= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Nov 2016 03:27:12.8901 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR03MB2888 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2698 Lines: 62 This patchset is used to fix a host version register bug in the T4240-R1.0-R2.0 eSDHC controller. To match the SoC version and revision, 15 previous version patchsets had tried many methods but all of them were rejected by reviewers. Such as - dts compatible method - syscon method - ifdef PPC method - GUTS driver getting SVR method Anrd suggested a soc_device_match method in v10, and this is the only available method left now. This v11 patchset introduces the soc_device_match interface in soc driver. The first four patches of Yangbo are to add the GUTS driver. This is used to register a soc device which contain soc version and revision information. The other three patches introduce the soc_device_match method in soc driver and apply it on esdhc driver to fix this bug. --- Changes for v15: - Dropped patch 'dt: bindings: update Freescale DCFG compatible' since the work had been done by below patch on ShawnGuo's linux tree. 'dt-bindings: fsl: add LS1043A/LS1046A/LS2080A compatible for SCFG and DCFG' - Fixed error code issue in guts driver Changes for v16: - Dropped patch 'powerpc/fsl: move mpc85xx.h to include/linux/fsl' - Added a bug-fix patch from Geert --- Arnd Bergmann (1): base: soc: introduce soc_device_match() interface Geert Uytterhoeven (1): base: soc: Check for NULL SoC device attributes Yangbo Lu (5): ARM64: dts: ls2080a: add device configuration node dt: bindings: move guts devicetree doc out of powerpc directory soc: fsl: add GUTS driver for QorIQ platforms MAINTAINERS: add entry for Freescale SoC drivers mmc: sdhci-of-esdhc: fix host version for T4240-R1.0-R2.0 .../bindings/{powerpc => soc}/fsl/guts.txt | 3 + MAINTAINERS | 11 +- arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi | 6 + drivers/base/Kconfig | 1 + drivers/base/soc.c | 70 ++++++ drivers/mmc/host/Kconfig | 1 + drivers/mmc/host/sdhci-of-esdhc.c | 20 ++ drivers/soc/Kconfig | 3 +- drivers/soc/fsl/Kconfig | 18 ++ drivers/soc/fsl/Makefile | 1 + drivers/soc/fsl/guts.c | 236 +++++++++++++++++++++ include/linux/fsl/guts.h | 125 ++++++----- include/linux/sys_soc.h | 3 + 13 files changed, 447 insertions(+), 51 deletions(-) rename Documentation/devicetree/bindings/{powerpc => soc}/fsl/guts.txt (91%) create mode 100644 drivers/soc/fsl/Kconfig create mode 100644 drivers/soc/fsl/guts.c -- 2.1.0.27.g96db324