Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932066AbcCIKSP (ORCPT ); Wed, 9 Mar 2016 05:18:15 -0500 Received: from mail-bl2on0065.outbound.protection.outlook.com ([65.55.169.65]:51904 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751300AbcCIKSH (ORCPT ); Wed, 9 Mar 2016 05:18:07 -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=none action=none header.from=nxp.com; From: Yangbo Lu To: , , , , , , , , CC: Rob Herring , , Russell King , Jochen Friedrich , Joerg Roedel , Claudiu Manoil , , Bhupesh Sharma , "Zhao Qiang" , Kumar Gala , "Santosh Shilimkar" , , , Yangbo Lu Subject: [v6, 0/5] Fix eSDHC host version register bug Date: Wed, 9 Mar 2016 18:08:46 +0800 Message-ID: <1457518131-11339-1-git-send-email-yangbo.lu@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131019922842381364;(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)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(33646002)(81166005)(2906002)(92566002)(104016004)(1096002)(189998001)(106466001)(48376002)(586003)(47776003)(4326007)(50466002)(6806005)(77096005)(86362001)(5008740100001)(2201001)(19580395003)(50986999)(5001770100001)(5003940100001)(105606002)(1220700001)(85426001)(50226001)(11100500001)(36756003)(87936001)(229853001)(7059030)(2101003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR0301MB1328;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;MLV:sfv;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD010;1:6owAylFDm4foP3xJkByJ/jjkQNi/VZwS7l1W3HDzoJkCFNcncHYQRtZ6A43TZJcUNMtR7aJplrOkQXG0YITN6fSLpfpQK3sGKVB1H4b0llsAvxTHDg34WjWgDT9civZPS2zsaw5THT/tET4afImJKPgOSkGaYzZY1UmWDEtAAPoVasOJQTtjW1KXf0oo48V4Ymfnu48lgMJQ1wvT6uCgItBd4NmWEYgdhCoJheU3lEdKlEZiNajYuh2a8bdT84+oeF57Som5ugx1XIscXYXe5V+46NbydVckOpmFhDr8rra35GX/66ukBNCo3od4QCKToG/yZrIJ49YWAKntrRRkg/zxNAsAT74Y67t21a+zF8AjpxxB7wdkOahkfHX0mSldQV8r9qlsIXafsblbkhXE7ewiPdLuGgM4BN81ACo5PO1KKeiNm6XXEICXm1yuhmVqudHrhhj4lQOXvBzrqZ6V2hWmLmpqJuQtBngSRpgN67x3UjEsJ8hth1wlWFT8y831StFmRuN9N1wcy4jHz5HYkBhrj5LoUfPimHlD8MZOMQbzMXFMTS0HbaHHcnjwk+Rxf6OStqyjyXRImPO5InHpke7V3XL/+Eq2E7HtPIEaQRk3RhqzllYM80fqCiJ8UTUe4fWB7UGyptwWBmqXrfPt/g== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 7269e1d2-4faf-45c6-e13c-08d3480419e8 X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB1328;2:xRKUTdItY6NxeUassWOfA2qQQIjAzX8pmcB0Jbu+5nDXYacHg+MemTxnPQVR5AUC+C2uLaRH8GxhbKVQikPRti9SUvkMQuJn36FgXoS/dIPV4t8gDGMr2pyQj+QbSxZjDGtPtPJ610QI7QlGSFIn+jy8+x9EADwb/NqeE+xARNglBqQRgbdh64HeMutKO9wP;3:v2iziqxvb8KZMf8wBDKhVzd6Qn0tVyz4X7t3gRisOaXwMAgg8be+b7gOd515MWnJysQxoWc5gSbg7OVG9zpSpbk0SRuhuFDscDA5ibVN/ZyLtAIM2wsFrbFTVJxyxfeZnpZkbjbjkwmhYnqgYlDiGKqwJxBt6aaCRfDLiCIQXAueIEWds7dxlYW7ouZDrA/ADxpKVG3/ergfsI6n50W3QfocQB0lc8W39psCid9t4kk=;25:MHGVsev/O1RXASbvMiBOq5DsH9Gn3H26yR9kIM72nyNvhgck1SDxCaG/WvioPZjzWM5Zxo6dPkbPNk6EGE0IeaeGBnb5gogQgMRb19z/JdAn1v/3qpi2KxjIwnumpZsGFA8bTzsda1Cx6+3zeC1S0xQNgvQGkcJVZbKGS3gGTRglOdkAYTi5rOtAV2GQUqdwfiJWE7qOPKbvC0XDDRIw+zvCMTpVLbUOrFO/Xd0qdJqt1EKQJMnsEjs4Iufxqd+PzVgx0cSeX3jd8hEud6uPpD677Lnu5nIDSXIcnp9VJ3gl+q1SmjT6ffcBtkBuaaPA8/iQxd9PS+yKm6/Rp6/HTWl6dHnAXQhocXNGDTcCb+wFLlX5Itcj7EuYfkD0FNaNABrgeMYeBx6I3pRh+2ADBA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB1328; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(13015025)(13017025)(13023025)(13024025)(5005006)(13018025)(8121501046)(3002001)(10201501046);SRVR:DM2PR0301MB1328;BCL:0;PCL:0;RULEID:(400006);SRVR:DM2PR0301MB1328; X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB1328;4:cF0p2r9Kfw9WwGB3011E57Zbre8toNZs2Q7gQB28E+lgWwk0DdGZTttzf46618flA74xUUHLA1oMKmBRe2lAjrEOKf3pivnJ6i8mcNDMH7kDQU1rD3R/66gkv2xkB4KG5AfAFdnJMMbkev3eBZYqjxPG+4uKyt5dmxLFynWQb/jV7XyYfP/cqKuVz3rnRFIF/Qs7fpuIERPcvT1lqpQA0BwKGDs7gmF/JZ8yGwN9G4RLWVhsGF7G44Uy9dXwHa1eGGPDL4RBQuWvHhAQLdp7RIKTjij9acSPSI9rGnFomy2JepK1jNwO6Qyt060cnI6IfCAoN8jq4nBYgA2Tz6Qk41r3eYZJ5vR3tl0XtqyvSpzxARqrzbERha5X4Jz8K8Pz0mfSTV+1414/nhVZV0tIgu6txvwEM0O+1jKPa3+mDabRQKaw6nhu67gMYd+nyABqoH3dUfI+ea4ofmAYgASoZA== X-Forefront-PRVS: 0876988AF0 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM2PR0301MB1328;23:rrHM4igQZ0f43qITEJ92vYms4reKMDEX7e8Z9lZ?= =?us-ascii?Q?imPZ5O/Oz/cH5BKCCUGN9Bca2mTS4fEmnmjOUYcUx6B6gNUo7VN7u0hsadhA?= =?us-ascii?Q?sWKKptaSu46ennk41XdCXhCHeS0ioJLhf/Q+i6sHiVsdnW1yYdoIb4BehcMt?= =?us-ascii?Q?kvqtkg4FtxfktoFc9GgrdaPQ/T7haYO+XOOoLmGnpXMKAUooKoBxRqT6NO2c?= =?us-ascii?Q?id6hOnuPESaqefyXfCY9Z6smHUasRAstib8MH8oSEkQqMMjMFU9HlxY5VCmO?= =?us-ascii?Q?cf7X2O71gc19361XW7zHKO0/OuXX8myga2i1y9u9ur8i9B4t4VpLHOyRGx4p?= =?us-ascii?Q?BrcjyZaXh6kHtwla86gJEGAgtoaok3cfWlcGyM9Emp+5NCvONt6bftrGjXCc?= =?us-ascii?Q?EqTh9o3nibvRt1+geTJIuDxmSN8hBHshrallL+YCuzS7Ux1fTY8Zf4qeGRqJ?= =?us-ascii?Q?ypyRU+uiKUVDT/ZZKITJ8JYdzxoB1b+EhsBjXzbHWQ/a4GbgA8GH/ckpba1y?= =?us-ascii?Q?+CXbXgKfOgbn/pvyRCKbTJ91q5FEIz79rIo19NNTLEkiQjMEyRZCbPym+rCi?= =?us-ascii?Q?dFVJwe3CCXsZf8Poxy96AWQqA/lnowaDMtkweX4xhi0rNdmPp4LX3tacXJpA?= =?us-ascii?Q?7qHmLCbXY+Ei/rnfTUJbxaLm7zWuvUhiBBb3tNc+7KDsF891NiH6ZQSQ0C4+?= =?us-ascii?Q?4oNdX+4lvMfvogtXBilEG92PEoDxX7t895Vs2+ez5LvtO4TSL/vcYQqsMehG?= =?us-ascii?Q?5Uey+aoi/29dD9X0/NbgssgVgjenjQ+VdQ7R9ugb/ZZDjOo7CZAq5QDYEI1b?= =?us-ascii?Q?LGRsZWkBeC3qLF0umwWwFedRQgDReC+JcbKRyZuLu16Bc5FvNxKJxICzq6jX?= =?us-ascii?Q?k98dFKLZeUlDYitht18YbegWr/taGLt++YSQ8MAHzepkjdTFbw+3xT2L+ylJ?= =?us-ascii?Q?+VWeS9YWWk8nUU2RvxiaGNfvgKmeZpHk9G9jwh6XFt1cJUcC6R5v76QUFDzA?= =?us-ascii?Q?gNhdWKfa5tT5hkJVfbrNgFI3g?= X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB1328;5:p/OimzyZetsJ5y6Zsj2AME0NUQ/zYIv/A5M371N/U7SjVXV2k029Q92QFQpcFnVSyTaIkUkKZvaXfPkNN9lTt+qFZ0Oq17SUXKGhMXve6qLbCgieOyxxRUFyvtPWjk4fTzgG7OoN68bHnkjb3gZtVmBKhasD76/Eg4qWRWBJIqo=;24:NxDA7CLU/em2s7IYNNVk/QVeHWdPEYepZctA1OxYSiibza76mnDSsOUjPGa0x7KkytfSITWPWFQ8mkhe/9CuyqhVWbokInFoI6p/tPEsVL4= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2016 10:18:03.8637 (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: DM2PR0301MB1328 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1878 Lines: 37 This patchset is used to fix a host version register bug in the T4240-R1.0-R2.0 eSDHC controller. To get the SoC version and revision, it's needed to add the GUTS driver to access the global utilities registers. So, the first three patches are to add the GUTS driver. The following two patches are to enable GUTS driver support to get SVR in eSDHC driver and fix host version for T4240. Yangbo Lu (5): ARM64: dts: ls2080a: add device configuration node soc: fsl: add GUTS driver for QorIQ platforms dt: move guts devicetree doc out of powerpc directory powerpc/fsl: move mpc85xx.h to include/linux/fsl mmc: sdhci-of-esdhc: fix host version for T4240-R1.0-R2.0 .../bindings/{powerpc => soc}/fsl/guts.txt | 3 + arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi | 6 ++ 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 | 23 ++++ drivers/net/ethernet/freescale/gianfar.c | 2 +- drivers/soc/Kconfig | 2 +- drivers/soc/fsl/Kconfig | 8 ++ drivers/soc/fsl/Makefile | 1 + drivers/soc/fsl/guts.c | 119 +++++++++++++++++++++ include/linux/fsl/guts.h | 100 ++++++++--------- .../asm/mpc85xx.h => include/linux/fsl/svr.h | 4 +- 14 files changed, 220 insertions(+), 57 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