Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965108AbcJ1HDO (ORCPT ); Fri, 28 Oct 2016 03:03:14 -0400 Received: from mail-by2nam03on0087.outbound.protection.outlook.com ([104.47.42.87]:51616 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S942705AbcJ1HDI (ORCPT ); Fri, 28 Oct 2016 03:03:08 -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: [v15, 0/7] Fix eSDHC host version register bug Date: Fri, 28 Oct 2016 14:50:11 +0800 Message-ID: <1477637418-38938-1-git-send-email-yangbo.lu@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131221117864688704;(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)(189002)(199003)(6666003)(105606002)(47776003)(305945005)(4326007)(68736007)(586003)(92566002)(356003)(8666005)(81166006)(85426001)(8676002)(229853001)(106466001)(50226002)(77096005)(81156014)(87936001)(8936002)(97736004)(11100500001)(5003940100001)(189998001)(19580395003)(2906002)(48376002)(86362001)(50466002)(104016004)(5660300001)(7416002)(33646002)(50986999)(36756003)(626004)(5001770100001)(7846002)(7059030);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR0301MB1632;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD049;1:WhPrOHUkMDIEZz/XH9wUXRTK3r7koJafTIttiHeadGzcJH+dSqbss8gKi3IDcAOr4CwizS9GGWOU+JeSyZU2oyxx1tpK53zSGt9RdnUHam+isd8Mqwl0s1w84CuGNuMbAwwFzo5EE5NtZqXB5OxKfpbcwcczbCrlAKQhAc/KCo0TEohVx/spYmG28GEZrYcphMAP1Ww+NB9dBT10uTYaPcibZmiIM10mvQk+RErdnyGT7p0WapCXO4A5h7NAYmpPz4vovAQDS8mzawlBxGddEyrttbdNdNJf6TWYLY3YLrLBcWFwOtQcBCXqBG9FuzkgNgRl/pKgcKICP/Edhp9JaOs8az2C5Vdk1DGdqtu2xPTEtSPquXC+8YHVidsphzcEDnpYOqBGIK71nbpTtXKS0TuNf3NoTi6GPj1UgmX86KwMSzW566GD+YZqUGfaSuaQ0MixcO8pVhcDiqdgjAQ5Ph2wdpLIO17MgyzEv3W9jVDUscxoMYrhckvjs2Ul3rpV11KzSUFeu6Cz0acVkAH+nNGqLecmgDW4t2zK0hkk0YlumE/lrZNiTwjBa96dthgCQcHTyV/Oq3eGPncO4SQpFnsCXiHuAb8FVaqRxqzzzFl4EvtBftofN3UwMmTKUtjpMlgCWxmh//QpXGObpkbU+xnJQJKRGExW+v/a+pye386afdS1ie5IC9Cv7r0UP3fo+Wo3iGIWeKFFH/hij57/zSeKsXmdqDrOxPEgVfabRzxXFdM5lVRiVNeQYLy0Jbqd MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 7596211a-33a7-4972-f984-08d3ff0077cc X-Microsoft-Exchange-Diagnostics: 1;SN1PR0301MB1632;2:K0iSTYl41B7JvYIwFO33J0wrPjy+GnT2jV8OOGtGgN/d4ZS44ZRJMYJ3O8CP9fTGVktzRT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phdro7yex3PXZIzSJkjHbjs//0PCrDNqOOoTl/D4PaAQEKHGFkR3E1XzGorL6+VtLDlTkG7ZIJN2DBes72TCIZ6eKhWkykzpCkUwqnidJ98iZsvCMovIZtTwiLSIdaE5JURsADemy96oYMIFmdRdtNHGs9smnGuv+g==;4:XPbdKWrj66izVfSmqKt7jjDRbv1/DUNCvHNBsTP22D/g0F7MLt8BeqSHcmQWSpfGqNz4+eTRVMRmstolniPRZ7RN/vN+W9Z51JizD3JRxUJGNCt8yP1kFL+5j8Do3tu0Z8Ypp3Fx666aDJP0i22Fnfj8YU432GCfzyNa/iMXa1RfOyOl1sQEJnrVRYf+iT+wZIdICKHYpowU+I5IH+Omp2wA12Yp+cXDFu1bSgG/m9ekNo+kSWlcJN7km07YeNC19FQqx3ZZoJhL+ZWmT6zEjPg5qWFUCXKrgIFdhp4Ui/ftKLWsoN1AmixpdLFd3Nxk4wmtL1JWMbBTwwTSdm9/F/ve6jD9vVMGaa6E6p03xombbT8LaxuXAxglXyWpZNiwAuRerlTBXaDlH1U+dmBHKrNpy2ewb+cccvVoGsb6bAUUTYVxL9x2aEw2Gl22KzP85a3+S6tiE2bjo4v0TB+hN2jYx2v9dk6KDtJIIWX4bd2VtAVxw5TERkv6jneQ4ZtUp0udTFqpKBiBArpAdyVKeg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(13018025)(13023025)(5005006)(13024025)(13015025)(8121501046)(13017025)(10201501046)(3002001)(6055026);SRVR:SN1PR0301MB1632;BCL:0;PCL:0;RULEID:(400006);SRVR:SN1PR0301MB1632; X-Forefront-PRVS: 0109D382B0 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN1PR0301MB1632;23:VIyoa6v3KApFF/E/1C0XDvfdyP2nMYoz2og/Sk9?= =?us-ascii?Q?lIYW68YV7pvWKNGsS0lGXpl4k1RMJ2hMHh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I8rNX89SFveHJ6p8PcSieL+VPQ70gFFG1tH5g1VB63SM2P7umqqN?= =?us-ascii?Q?JxFXOhR5Kr5MJKMETdLIB6YIZVkihTiXE6+4y2nmwbK26RWjKRD5qK2xFLiS?= =?us-ascii?Q?PktoXOEuukex0J++EPErPacDpewjCLBfpymRoMVaUaOVePSSvCWaRynUBsaa?= =?us-ascii?Q?HCtrblBlrQ6o/wLggssdnsE6YPFsVNGvz?= X-Microsoft-Exchange-Diagnostics: 1;SN1PR0301MB1632;6:jQ5RoH+ppIfzIHaIve5Tv192qPgx8oiu5hTc2rTy2KQB0knpc+pUk0gfnJUMzq6v/6hOJxl1iXAg5A+OnVPjl1nU6X06Q/5+jUpkeSeWhXMYMXqC4XJVyDI8ybmHQ6j6lmLAPVIlqWkCsun8hhinfV7eMi8M3FlRi1hWTP1eDkkKPbho1QM1ge71gYAfMvNe8MVfqKzp55u9aNgvlRXYHh2Q/Tn67KESNXZhOWJCbyKVIxBptfKzmPkq2Q3+E3fahhWb22+mjTFJzqGxFNNwIdY5NJszy+GjU4ehHtbRONUdQur7qIY/ocKieHKpS7o3;5:J7UP92G6IyYckrtPBmFmSxW/sj+7G9kcD7Gnh9JddEXzB0VYHkoXB9H3PAJv9RD6Sjt7mB6i4N2oXQQ74UrnCvBYNqrWJFcub2bUubHDydWXlPhwuWPmhmGK0nA+nVhpLNlVEjVpDRZGGqoutKzfMTOugmCzmedjo3OHO3/HM7wPs+4Nxvk3xkI65EhQa30r;24:uQHdhLj3ws1Px8NV8vJqCndScS04veQw/HqUEyQLGCv2TNXx7KvjF6xNXyF6dv9gwOmTPelzNZQDLGuOcljLRlnbS7uRSF/6wQxUEBC5Y1U= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;SN1PR0301MB1632;7:9r5ZLKf4eIHGwrLLLvPv5XQWDpCyD1KhVFJy3irWYEB9E5RL+H6/HXatIbMbKNz2vXT5eKMMgHjNxYpR2HdPXfxhaklsQCQ5pmtOkBimhehg6IuhKWfqBZ1BJw/pafVp2INRw1XI9Cmf+EXoA7Tf8ej6wgAcSP4gjnH5UX/wsSesKFhPy+K7ffZpZ4I8MYYqOjwEA/q0RKfgKyb3nvtrdE+w5XmfMtnPYYBZaSz/A3Ib6+APx+jNyRfes04RH9929LZ+geNwggL3NlQ7b8DQUGMQK8yrW2NK3b8Ztdu/8RlKNujKTev9I7VNZedCs7acW/Q9OR6UyV4Xal0XCSoNNu2V0HYS3Hv20eDSqo5AV0o= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2016 07:03:06.1724 (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: SN1PR0301MB1632 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3054 Lines: 65 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 five 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. --- 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 --- Arnd Bergmann (1): base: soc: introduce soc_device_match() interface Yangbo Lu (6): 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 .../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 | 237 +++++++++++++++++++++ include/linux/fsl/guts.h | 125 ++++++----- .../asm/mpc85xx.h => include/linux/fsl/svr.h | 4 +- include/linux/sys_soc.h | 3 + 20 files changed, 452 insertions(+), 61 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