Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752379AbcJ1EBT (ORCPT ); Fri, 28 Oct 2016 00:01:19 -0400 Received: from mail-co1nam03on0057.outbound.protection.outlook.com ([104.47.40.57]:32096 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751277AbcJ1EBH (ORCPT ); Fri, 28 Oct 2016 00:01:07 -0400 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; 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 , Santosh Shilimkar , Leo Li , Xiaobo Xie , Minghuan Lian , Yangbo Lu Subject: [v13, 0/8] Fix eSDHC host version register bug Date: Fri, 28 Oct 2016 11:32:26 +0800 Message-ID: <1477625554-46700-1-git-send-email-yangbo.lu@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131220999317078572;(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)(87936001)(77096005)(8676002)(11100500001)(50466002)(85426001)(189998001)(81156014)(81166006)(8936002)(7416002)(626004)(19580395003)(5660300001)(305945005)(50226002)(229853001)(7846002)(50986999)(92566002)(8666005)(356003)(106466001)(105606002)(6666003)(2906002)(5003940100001)(33646002)(4326007)(47776003)(36756003)(104016004)(586003)(68736007)(5001770100001)(86362001)(97736004)(48376002)(7059030);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR0301MB1618;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD022;1:J8aA7KPDIQZ/x0vAef1kbDAXXIaYzWbye6njDHcPUfcvN2oQyobKEn+tpMCxjrzHC/yqNnk/QF+m7PWUAoyKCexBMuWP6GlXfeClxCa/kbhsKDWzf7U66gQHbbv5V2q4jZX3H0xxvM7A5T2c3JGrhlwTEU+EQHVQMoEF5qv+wYkS2CRIrWBFBChHGpRUiq6Kmdrje8lw+Z9f+sZDIUz4mwZBJY2SnViX9354ApHKAX/OjB3a2pz36XeaFXgsJwZ4le1rgII4oMlpePvAW7g4CqAtdHvT66O/P3U6634MGZCTh0JqrphtiSFwUmXGd0W7zrP4HU76nHg0Mg8uPRQocUnuEY2qlnA1jOAL4MqPssdc4l2dX8KjJUakHZVX+N6ZyqmOUhX3t4zpwXeYwC4H8Xp859mSHmofFcv7wVaqFCalyjtcwqjMmyZBeEy8MmhIB71HUku/VlZUvMpSyVJAXOz6m9ZwjD4SLkRik8vUFEsYjQC+5bnfwNElopZyCOTg+YWQZVeSbSZYUBbZJ6CEir7bLafNwN0ipG0FYxJLAyRaVW8yzxt6EVNTPcZCQ0nHj1LX6mpGgY6mAG0uUcaxrmfuf4B3dWqSvC7iy1Y1VhkYHBKjHmwpNZvGitYqwSbTLosUFvyKeyVblRc9S/UoLT+qvXwnDrAXnHT4hhDSsrgkVcxOx1KptwrOAgCxgZ1LzmC8QU7EDND4jTPGhn44r7Lhc4NllKjQ2XyfMCUU6MAnVlbGK2LY8zZ8CgZm/y58 MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: bfe1a50e-f7f5-458f-c22c-08d3fee4ddd4 X-Microsoft-Exchange-Diagnostics: 1;BLUPR0301MB1618;2:/GUK5FY1ztlWZ5BYJhBUXiTP/MQuDozEwzIZmfbEzc+Tyw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jP9kn7jcf8caa41stfyxGundtLd8o/pIBJFZkn2sKBc6hl49KuxIz0SrCVQ+VR4Dpyg3lqk2d73pbEUNYvIwHNalyBGm7CCwmRCE6XiWadg9+Tc8eV23I8efUtS9CPITx0OOxFMAK6V5MBWB70u9hK7tB6rKDUFWDYOoGIcXez8H/+IYrEV238iQ9yrfrZ27uOFA==;4:oNZT4BjxPDjcN6YSHlEnJZqvyYqsLgccp8Nd52q8h8oLHCKpERCznyYDPO9EBY/bYofuVw3DfMTcEA9YMwO1mwWtMbW6sT+fagu1ZpR65avt/cJOroPpOYnoCqsX8KDYYpw6VEYybqWI8lalsfUGi2BJzliXK5n/FtxLEQ6WXTef8iIdEu7Z8ocb5T+OPsTi5gRbcrt6YHbV9zwfTX8iRZBsSZgUHYHdv4Iy+BbgcpJho1/hU3kw/ruMaYUkxiM4mjVq19lMYNIsOclyAif5qyT+Vj8kbOR7qLsg1ZX2IsLZ3VqGoHNZy6iEEkAxAd3v9xA25+Rnnxvc5nXux5L7WXeiCpjTpHplDG2FUXiEZYkLVpHhkAvh9az0yngNITXyWuSH44LdwPSSNzSiDaHi4gZUjQzFQEOExmY7HMaUuhy6Q7Y8baM6zyD2+zXCS1V4xb33Fu/75SeEBNJSHmw/S+PMtkDQNJuxC7nYX1HC3ACpvKvKwyrdsOF8t8Wq1uPeU4PCJ4EemZOp3J67/r9+Ow== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(8121501046)(13023025)(5005006)(13024025)(13018025)(13015025)(13017025)(10201501046)(3002001)(6055026);SRVR:BLUPR0301MB1618;BCL:0;PCL:0;RULEID:(400006);SRVR:BLUPR0301MB1618; X-Forefront-PRVS: 0109D382B0 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BLUPR0301MB1618;23:U5w0YXY5DnuyS3pgl+j1u9im9LtmulZZ5Va2aHm?= =?us-ascii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t4awq1Wo77HHdIUzvAf40K?= =?us-ascii?Q?0MjtnesntgoLZr0hze3LARbhnzekziZpO7zEvF55GZRrn369xOO3vkIiJZr0?= =?us-ascii?Q?KUyXuUA30qAI0wa60/Rapsv2hRfE7aOFpDo8uQdWxZNntmbSj6PWEcWD1Qbf?= =?us-ascii?Q?lff+5YiBwEyOtdZ90ltGhsDoWM/t5+JYKGoETrW9N9xiCtKQSIJyTR8sN4EV?= =?us-ascii?Q?/9ep7O5XmZL2kEmzPxHU16qV4OUnWXo3V?= X-Microsoft-Exchange-Diagnostics: 1;BLUPR0301MB1618;6:vwiKDP2R+Y8iRSyHPiNRtFFmHlfgq5O5gTDg5dvE0pUFCQj8YN06pzGEoe8fMMj0UTdhdQCVHKkPddtSIpWntcX5a/Hxsl/m/j+ZU+OKKyUwwl7t3J/5mRSl70NL/dAm05TrSBzugqv8RQ8j5brKKGY/lvyve5iSnS1Fwk+LGyDOEfpZNbt2oM6z/G1CebNWpJTIk9tp8L+CbMJYMSjE1gIWkJU+XkpbBcJg8QD3phRZuWwzQiI9ohiO7f1Wd+hroOwvHciZDlNW2EGThiq/TNnalisLjXOw/IQPdKHbhP2D3msnoBlnMB5kLz670LBG;5:K1GYmYbL5R+aOG8MaQ90Lq0Ve5/2sVvPjulD0+FFr6ecq7kecg2iqNOoDbY8P9mbcud5j8W38wz1lwXV8UEdq2EzC7lP1JHKjtoPVGRphCCp54O1SvsyPGjMRaDwwDFpaz7pXs2oSpMCvDeqaBuqNueukKboSmBJQveUQY+NGaXZZMFV5Lh1hbIRMoATj1Qm;24:l88wuSVm4AqFLTxL2lYGjflyidIBiu01+bvHihYJ5BFW/Q9y0UuT1LIDucwznT1G+fpetehLroQ5IHK9zQU0ivUo/w7FpzERxQBRG4F6la8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BLUPR0301MB1618;7:5gGweTgT13alqfgEbPWQzezLKjdBhCyPNKte4WQhdYtyreEeouQ0H2AA5pYXQiMcUQeGO5Ej3kTuG8BxtIYCxDWhn0uFw/dT0bIKBbtwyXu30IML0UYh8vGuwXq48FVHq0iotFa+issmSMIgIF0YHoEuHvmxCIpNs41mJS2BJhl4Zu8X56xKVNsTt8H857f1CBzAnDHoxSR/oO2DurcWjYiW/IXrmvqxEvdCDFlxeLK6sivG12do9iqCUTphkLNL3QkzkGwulZloCsfkYIYpiWjEOttPi9R8DOtczU8mCrF4E4d/HoSG+MOAftboUlzoJLoF2z/Z0uLU83XXZX1+Ja0c/g9PT7Gg9iVzcQKjWKk= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2016 03:45:21.6769 (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: BLUPR0301MB1618 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2873 Lines: 58 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, 10 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 six 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 two patches introduce the soc_device_match method in soc driver and apply it on esdhc driver to fix this bug. Arnd Bergmann (1): base: soc: introduce soc_device_match() interface Yangbo Lu (7): dt: bindings: update Freescale DCFG compatible ARM64: dts: ls2080a: add device configuration node dt: bindings: move guts devicetree doc out of powerpc directory powerpc/fsl: move mpc85xx.h to include/linux/fsl 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 Documentation/devicetree/bindings/arm/fsl.txt | 6 +- .../bindings/{powerpc => soc}/fsl/guts.txt | 3 + MAINTAINERS | 11 +- arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi | 6 + arch/powerpc/kernel/cpu_setup_fsl_booke.S | 2 +- arch/powerpc/sysdev/fsl_pci.c | 2 +- drivers/base/Kconfig | 1 + drivers/base/soc.c | 66 ++++++ drivers/clk/clk-qoriq.c | 3 +- drivers/i2c/busses/i2c-mpc.c | 2 +- drivers/iommu/fsl_pamu.c | 3 +- drivers/mmc/host/Kconfig | 1 + drivers/mmc/host/sdhci-of-esdhc.c | 20 ++ drivers/net/ethernet/freescale/gianfar.c | 2 +- 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 ++++++----- .../asm/mpc85xx.h => include/linux/fsl/svr.h | 4 +- include/linux/sys_soc.h | 3 + 21 files changed, 456 insertions(+), 62 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 rename arch/powerpc/include/asm/mpc85xx.h => include/linux/fsl/svr.h (97%) -- 2.1.0.27.g96db324