Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964811AbcJ1F6T (ORCPT ); Fri, 28 Oct 2016 01:58:19 -0400 Received: from mail-sn1nam02on0050.outbound.protection.outlook.com ([104.47.36.50]:35264 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756122AbcJ1F6K (ORCPT ); Fri, 28 Oct 2016 01:58:10 -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: [v14, 0/8] Fix eSDHC host version register bug Date: Fri, 28 Oct 2016 13:45:13 +0800 Message-ID: <1477633521-7391-1-git-send-email-yangbo.lu@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131221078870513561;(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)(1109001)(1110001)(339900001)(199003)(189002)(11100500001)(4326007)(36756003)(104016004)(77096005)(586003)(189998001)(7846002)(47776003)(85426001)(81166006)(2906002)(81156014)(87936001)(8676002)(356003)(8666005)(305945005)(50226002)(105606002)(19580395003)(68736007)(92566002)(50986999)(7416002)(8936002)(5003940100001)(106466001)(229853001)(33646002)(48376002)(50466002)(5660300001)(86362001)(6666003)(97736004)(626004)(5001770100001)(7059030);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR0301MB1628;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD034;1:1gTQ0J1xSGU+1jIBWVM6wyT4UuiuitI7ssez4tYEwHOebvFzWX/fam0TKD5xTx+jSsJbEAwyLBYsL9Gr7FSRRo02NhiF4KMdar1ymjyWLVck2np7QsLcQfl6wbe4zgCpR86YCwQ20Qtm7+sN4OFkDc5QSp7ruJi/Vk6/qK3jtADj64SG/kmK0znubm4YEDFkmE0Q67fG0sR2ntmmMj4O/j93iiYxHuJz7IY0P4Ldmz0DJOvyArP/uH5xQI8xZejWzwC4m+E+b5dDapa1QbxzXvz96LiMC1z1g0GvRhE+SBLY8DgJLR0X25fdBh6I/Suc0w/Z8J5cBLXlIX2tOg9MRmB5VQqa9MWm8DDH6M+OaSd1SlyS7zZyomtNkUGjFfGrSBjC/KORiySF1OgVAI3Jo3Xtz8ROdLB0Z5GaiE6u09ciE3WLmEVQM3l3WdxyqWbtL1/36bpXMXyzDvnhTdOU4f6arfy0CFgvZn8+MCLZWeprw0s7IAdJXZphGBza3tOEdhm1U9s05eSgPfaSg+Z+oDpGb8JfqH7IcwSXr4NXdBMbfOTQIGyNlvg4MI0ZvjnrbYtj9NTIcxXIEU2u4G/PE1xxhSDOy9XJ7OqBiHiT5wmzsrJ/jPT8Oc7Wjl5o2eHezD1QxiDpHgLDz+/rKXAUdVC92ik9mT/NNLY5/+eJsRD9NxbtqcymgzlSDuFjQbnfK/tQZhsQ8y5fFnEwayf/CY899lvDVI9I3eJSaDZi5TuY+MxzxMex3cJ8i/Ohbnkm MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 019b39dd-953c-4f9d-7638-08d3fef76393 X-Microsoft-Exchange-Diagnostics: 1;CY1PR0301MB1628;2:TXjnsSI+io8zPFN8vWR2wJIuoSo5YVH600wb97ZP9Md5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lPKkxF2excH7omTBQ7IYwvsibo7PG0NEO72YFCLXU+b05hFFJcpQ== 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)(5005006)(8121501046)(13015025)(13017025)(13023025)(13018025)(10201501046)(3002001)(6055026);SRVR:CY1PR0301MB1628;BCL:0;PCL:0;RULEID:(400006);SRVR:CY1PR0301MB1628; X-Forefront-PRVS: 0109D382B0 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR0301MB1628;23:4w/PHmL7Zq2t/6KmtEvZmAiCE1UGGaV0VjeKjuC?= =?us-ascii?Q?NNAzhLHlr4qF/qfCH5gZ3mqUV/ZiJA5IeaWeB3hhSVYIChSuiG46/3HdunZ7?= =?us-ascii?Q?/hM713jolwDqztcoN1dMR1/FJrVedTZtmfycC5QZZPSHyjh3V+PUDQjAy4RC?= =?us-ascii?Q?ZcJlDzVQXlEZ18PnCkMFMWNj4IORQOIyqSaBnpkXwAgeD3pnkPUJXCyr3IiB?= =?us-ascii?Q?lO0dTpyrArRSO47kuJHk7gTJKoY6ns2a9jVmruVOhr5m2tiiHm99x6u3Pp6K?= =?us-ascii?Q?T7MKIvnbXczUL8w2QsNRBdFywrgUgR4TM/rbZMhPSkpfXZSe1bh5UaJGI4b3?= =?us-ascii?Q?Qcs5ajZ1hU840b7KryOnIRS4p8pX0IswWdYxuH1Jm9GBtAnqPb6bHx8Bi/A0?= =?us-ascii?Q?AT3XC8ckTcVBBhLoo3SoHKJ0v6BXY7tImWmg2qWVvBbDkL3Tig06Hv2ZM+t6?= =?us-ascii?Q?CF5b2jnj0iECMM2BKe3EVXzMaEJGv9IOkVTCUZlnDRGqFLtWjZ5tberpznQb?= =?us-ascii?Q?t+BM/J1Ef9u6lxuzXTNB950uetZtuVu8REh1/2FFp3kzr73u6BhnDkuFktOH?= =?us-ascii?Q?/xwax3C/Iz28/Sd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T5OKrJkWWPsRHFnxvIvjKm8Ya1WZdkQR3r6PVyxDNCV9aApP/Q3fuMXPlFauuYvxBLs6o1GFTwivDD42/tViwaUKxiRGsvMqY2VFcpuE96rA3qdeIiRYKv33i/FGHmznM55y9W2VEVQpkEEhL/q3kdSeqkFOUhTrZZa0+;24:MFn5JuNqrPrtL98W0F6uQ5HBf+2mpdL41bGyNJZZeAKss/B5DOeQ1V2g6X1tO6s2LcNVBb6GakgP8OQu7NkUZgD04ZZ7H+3l0t4m8+u7We4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY1PR0301MB1628;7:SWaYOcSQCJhBovLNrrKI+n2lZHs63kqxdkrYVi/jTJ30nDyRxrrazEqxO8BgDKp/psqX9Z6HyfgS2/8VSNshMRX/sqm2KNKMJqY+9dD7Ar3NbcOimletLVQ/8Mtct0X/nB3OUUz0zNbLywxGFqAZ6HcZP87/vZwkPCljlyEbh/xFhB+Hccc5yK2THHFudXtr368Chv3L1Rt++Qtc5HeY1DJjOHUuxD0gws0nKQI39x3hL9vSD5ijTL35JhEV8LTKIKz4zA1uPnOccYRLT2clDhuTn7hbdBwHt70BOJsQdO/bNIoVM1FgyCsWj1ewUHGMCesUU2k4WBZpOMhd1gtLX+G3xGP79+w+/3CMI8334o8= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2016 05:58:06.7705 (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: CY1PR0301MB1628 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 | 238 +++++++++++++++++++++ include/linux/fsl/guts.h | 125 ++++++----- .../asm/mpc85xx.h => include/linux/fsl/svr.h | 4 +- include/linux/sys_soc.h | 3 + 21 files changed, 458 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