Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752818AbbHGL3T (ORCPT ); Fri, 7 Aug 2015 07:29:19 -0400 Received: from mail-bl2on0137.outbound.protection.outlook.com ([65.55.169.137]:9023 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752017AbbHGL3Q (ORCPT ); Fri, 7 Aug 2015 07:29:16 -0400 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; vger.kernel.org; dkim=none (message not signed) header.d=none; Date: Fri, 7 Aug 2015 19:19:38 +0800 From: Dong Aisheng To: Chen Haibo-B51421 CC: "robh+dt@kernel.org" , "pawel.moll@arm.com" , "mark.rutland@arm.com" , "ijc+devicetree@hellion.org.uk" , "galak@codeaurora.org" , "shawnguo@kernel.org" , "kernel@pengutronix.de" , "linux@arm.linux.org.uk" , "ulf.hansson@linaro.org" , "johan.derycke@barco.com" , "mkl@pengutronix.de" , Estevam Fabio-R49496 , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-mmc@vger.kernel.org" Subject: Re: [PATCH v4 1/6] mmc: sdhci-esdhc-imx: add imx7d support and support HS400 Message-ID: <20150807111937.GD6935@shlinux1.ap.freescale.net> References: <1438771122-8601-1-git-send-email-haibo.chen@freescale.com> <1438771122-8601-2-git-send-email-haibo.chen@freescale.com> <20150807073854.GA6935@shlinux1.ap.freescale.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11OLC002;1:9dMQNPuV8u0AFY8iZn5s/eMgnPH8oG+mGIij+Ar7sA5nbnPr0392E2YrhoUq26ylHpstFh0iymDgaRGeEiEMnHlde05M+rdszr12rV0VduiEW8CMZ4YB1kx5/reSNQe+TUnV2Sg4Z1WVKjfIvgTLWgxxu3y/QCS543yK76450LvPxP5vocG8X981URY+WOBgbHniQFGKXz/0ARpEBiGTDIFYBFGpIbtkEqTwAog/Ovvq9V9FCJ09X0rIB0cSbEcHUoEYVV59rP6D9cn9ZS2CQdULDbLcPF4GkEpJbBv2DXojSWkY1OMuomPUBkiwQx3o6iBrbPRDntHlXje+oAx9mg== X-Forefront-Antispam-Report: CIP:192.88.158.2;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(2980300002)(339900001)(199003)(377454003)(13464003)(189002)(24454002)(6806004)(5001830100001)(5001860100001)(2950100001)(68736005)(104016003)(77096005)(69596002)(62966003)(77156002)(33656002)(4001540100001)(110136002)(5001960100002)(97736004)(81156007)(92566002)(189998001)(54356999)(4001350100001)(4001450100002)(87936001)(50986999)(5003600100002)(50466002)(93886004)(106466001)(97756001)(76176999)(46406003)(19580395003)(19580405001)(230783001)(46102003)(83506001)(86362001)(85426001)(64706001)(47776003)(23726002)(105606002);DIR:OUT;SFP:1102;SCL:1;SRVR:BN3PR0301MB1300;H:az84smr01.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN3PR0301MB1300;2:TbHSmDqJ1pMNy9Y4t3TuPRUYka8dH9IwK15J4YzzEDBwBrnX+gvAyxa9xuIkr25ZY0QtrK2iSHrE5XlbErfvPo0kaZQ05d0RiEMjdHK6XjKFYk4RXo/uXe5wKxLbmREA8TTv1J2pulRw7dzRJ3CG0d6tybfwB6yurGS1FgkOMBc=;3:JOeZSL6hxWm/hWFuKDDG6QI8i0iH8kbEpz678WTeijwb/HTSXNEw32jhviMQJt8XkTR7eexiCrhyEzzgq7eWLLjhwnAJFmdWM9yT29iJ9o+a5xj2fXEXlXWNGvjQpE5wobiOSN8kqm6yKY5jRgtoN0r+RRGROlmgpAb3m9grPrKSh2p5vJO4edTSlvxIIbQggJ7cHLjNCr7hF76B9aTM0uzpsdQOvLWP98A/rrhMFiY=;25:lYc6AJK9DkOQoXgpni2vneZXIinkhqMIWhix6h7ht3d6rgh0KXzPTdnRRole37bzarZ1Gh0s0+YBa7OROkgcvOh9Vxoql7T9ilXDVXUWWDoC4pGN0SkK5vh13jsfFsxmI3FsbMaxO/aSsF4PR2OvgJo/Eu7nrIDQC8IhWfugen5ccpPAW31sPeatjRsPFI/y7xC/V2yMqnuydJVD6ceaSxTDlwND6KLeCHj6vp9kGrgWEVv8SAFcRnXOdoswA4t8 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0301MB1300; X-Microsoft-Exchange-Diagnostics: 1;BN3PR0301MB1300;20:PocJ8jd51ap9WOh1gwBr6jIMaUbBbc6/oO17kCsXlqckCnMHpt2clfQCQOEcymW55nSGwOsI3KwzxiAnAp5J+NyE507gjoMzPiVvPhtxPj7412UCKkWu25oyyl9CrkqQTCLBI3aEWV/0tTUDVYTe7r/AOF9OuuI+Mc/AQbGxPBmJKqhOz//zBen1QKz5XZBtvLliAw6wuZksbHlw4C90tMPZFIeSBYminrhglpxKwNGxseksWnYVom5JbSJ4F2vnkF+YEKN1rKtC6VhBRSavKo7DJOsuW19UWYGWuzdD4AgYKPybf7t9Mw3U6rEFhHLfSBaTYcmEIGntIf5K87fEIAkfILIH+NeXa3M9v2rb0kY=;4:iaYFtWpvPO7drDVLanGn6nDdJA9WkMr3Ya8+dJ/hzycF7bTTcs2Ljcj/ulcPWSCcAyhyoc1sQ5eW3nFgyX1Do6xYjRY1IAPkdoaKFbH7+nl090hGswwGicqm/i6KM3/Oa36x+qlfYbX0GN1VxdyY8yKc5AcW6BnrBUiUONlenJQDi0TLiHEn5viqKs0TMzwqjUhwT2INv6MASlJfpRFsY0xbE5QKx7SOSPmCAnKKHyjFzAFToDbW8FEUzz1sdTt7DA8FazN+IRpw+YFS3l5r8M70PnbWpA98yFG+1iuaH2o= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BN3PR0301MB1300;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0301MB1300; X-Forefront-PRVS: 066153096A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN3PR0301MB1300;23:ZzncLALIZn7EckqE4IgCZsmDUKuAhUprAJYeSCL?= =?us-ascii?Q?coconca+ft+P9e4balTVaScMaTJfrINPtsj4dHjJESxzJD2TznQ5gjPfN6CQ?= =?us-ascii?Q?dY6BfXO1lgMBG9/ka/eOCYMGXeYqqXTBoXhY8bigMVz71te5JDEphTP7m/Am?= =?us-ascii?Q?R4z0eW8YEaj4+Z5KNaBaCf4Cd8G3qWelTOgZx1ma01kjvgN9g6W6zR1x67JN?= =?us-ascii?Q?a7KN5XFoDfGek7AF3End5Mp64qrBHon9M4WP4lUNYXuFN9JFGP4W69K0Ca0/?= =?us-ascii?Q?Z6Y1rNXOyoBkJeUxD02mH9Chj21x7elE0+U+h3Rm0UIz6SpxDyIif8uB/q0G?= =?us-ascii?Q?rVO+P51lb06kNiQiuDYX1P9cTnUdeKwjuD9BtTdAO2BkgfMGGLnGFM4sJZ3l?= =?us-ascii?Q?B6IN4gbgS1MjB5XT/eK9ap9imBcuogflBLgetDBXymdne03FKZTeOzBfI2be?= =?us-ascii?Q?VUAXt7Ow8aEihCKl6MN8CVRxUr9zUVFntoreHzDWoKGvvmZJO6/KFERbVilE?= =?us-ascii?Q?r3wjQEMHrftyUbD6IpiqCtcOIiGrZIspf6qn0oPTK4Fym6JmkbzMuQ/8bvi3?= =?us-ascii?Q?863IVLI2s2mNdTJCGV8Ngkgb8z3Ob5QYAEg9F3lvtZxmxjcf/u8uyhqu+EdI?= =?us-ascii?Q?4keUWpntxQvonZKIBlboZWT6PKP05lInCf+NWwBKhTNjGNAqd8YwsxtX2q7g?= =?us-ascii?Q?lJjocdMUVdrWxzuuCJt6Ai4w9FrXjYuVHGmKrlT4VcvIOvIspM19RQfj+AQu?= =?us-ascii?Q?mcppu2yHIRsjRarcsoIFNMKYlxA4rV83E6M9YThxmctFksiNkbuIL3EZWD/Z?= =?us-ascii?Q?0mr/qAyjCHrmfjpkrzkY0Wl9LEK2U0V3lVmADeIzzIAdlfFHb+BphMJsyo4K?= =?us-ascii?Q?jWgZ05mBUO3YLbUZrm+3EdD/bYj1+wzNLTx9d6zcl9rnInRSAtnrurxpTI1x?= =?us-ascii?Q?WDIw9Bct/fgYjC8yD9Nne7d6WoHA14XpyQGAXzxPr3XeHj5zwLQLp+cLDxeB?= =?us-ascii?Q?Glpyg3X/1QrI0X6hhzaLA3d/7tb0o5fjuki2a+cXIzccBR2T1ub1bqN4FMhG?= =?us-ascii?Q?FHBmKY3u6xKoqbc0MEgC9UplfL6Xr9hMkqriJsxth/n6dN26L9VwB9lxkqkh?= =?us-ascii?Q?pYSvpw5bWUqw1b8//zjFFgCQk1phl+72WzUjZvOC96BNKCjftzN0ZI/hFxkC?= =?us-ascii?Q?LtPVO3ACUDDTVtrR5/7wXJf1hzdZ1VMRxWkH9exjiMSM/o3SnRf+4SBRBI5j?= =?us-ascii?Q?GYSQbloaofbQH9Ro9jRCU/4YLlVNRPJHWrm8aepIBJZbaDsbs0hxMzt6l1Lm?= =?us-ascii?Q?QWA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;BN3PR0301MB1300;5:YBRwgeNPoSJd6diPGk62ASERBcESUdEz1B+PZUoGskQqQn2CHfLQ6rZrP0TSiaeo7kMjiTc3IRty9uwqZncyplUP58kKWp1nZiUETX7R8RamtC0YJnGE40UkVUEw0muSNT5Gm0HhQW8H39aejHHgvw==;24:7BDy/jLQek89JkEbo+Nvd6AB1/2dlvNIreiCN/JF6uyV4XfF2zlfjnUrjX1zlXucV/XbK46wcOL7YsiXKPlC3LNIZCfcasa+DHlmZR3hvbA=;20:jMEolBWPdDpK++H7+Xcj24g5DFZGPr6K9G4ydGowkERnEq5/4/nlQh8NGHD30+oM1nhToGuqDzvReWH/ixhvCQ== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2015 11:29:13.1270 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d;Ip=[192.88.158.2];Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0301MB1300 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 9519 Lines: 253 On Fri, Aug 07, 2015 at 05:53:01PM +0800, Chen Haibo-B51421 wrote: > > > > -----Original Message----- > > From: Dong Aisheng [mailto:aisheng.dong@freescale.com] > > Sent: Friday, August 07, 2015 3:39 PM > > To: Chen Haibo-B51421 > > Cc: robh+dt@kernel.org; pawel.moll@arm.com; mark.rutland@arm.com; > > ijc+devicetree@hellion.org.uk; galak@codeaurora.org; shawnguo@kernel.org; > > kernel@pengutronix.de; linux@arm.linux.org.uk; ulf.hansson@linaro.org; > > johan.derycke@barco.com; mkl@pengutronix.de; Estevam Fabio-R49496; Dong > > Aisheng-B29396; devicetree@vger.kernel.org; linux-kernel@vger.kernel.org; > > linux-arm-kernel@lists.infradead.org; linux-mmc@vger.kernel.org > > Subject: Re: [PATCH v4 1/6] mmc: sdhci-esdhc-imx: add imx7d support and > > support HS400 > > > > On Wed, Aug 05, 2015 at 06:38:37PM +0800, Haibo Chen wrote: > > > The imx7d usdhc is derived from imx6sx, the difference is that imx7d > > > support HS400. > > > > > > So introduce a new compatible string for imx7d and add HS400 support > > > for imx7d usdhc. > > > > > > Signed-off-by: Haibo Chen > > > --- > > > drivers/mmc/host/sdhci-esdhc-imx.c | 81 > > > ++++++++++++++++++++++++++++++++++++++ > > > 1 file changed, 81 insertions(+) > > > > > > diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c > > > b/drivers/mmc/host/sdhci-esdhc-imx.c > > > index c6b9f64..48f009c 100644 > > > --- a/drivers/mmc/host/sdhci-esdhc-imx.c > > > +++ b/drivers/mmc/host/sdhci-esdhc-imx.c > > > @@ -44,6 +44,7 @@ > > > #define ESDHC_MIX_CTRL_EXE_TUNE (1 << 22) > > > #define ESDHC_MIX_CTRL_SMPCLK_SEL (1 << 23) > > > #define ESDHC_MIX_CTRL_FBCLK_SEL (1 << 25) > > > +#define ESDHC_MIX_CTRL_HS400_EN (1 << 26) > > > /* Bits 3 and 6 are not SDHCI standard definitions */ > > > #define ESDHC_MIX_CTRL_SDHCI_MASK 0xb7 > > > /* Tuning bits */ > > > @@ -60,6 +61,16 @@ > > > #define ESDHC_TUNE_CTRL_MIN 0 > > > #define ESDHC_TUNE_CTRL_MAX ((1 << 7) - 1) > > > > > > +/* strobe dll register */ > > > +#define ESDHC_STROBE_DLL_CTRL 0x70 > > > +#define ESDHC_STROBE_DLL_CTRL_ENABLE (1 << 0) > > > +#define ESDHC_STROBE_DLL_CTRL_RESET (1 << 1) > > > +#define ESDHC_STROBE_DLL_CTRL_SLV_DLY_TARGET_SHIFT 3 > > > + > > > +#define ESDHC_STROBE_DLL_STATUS 0x74 > > > +#define ESDHC_STROBE_DLL_STS_REF_LOCK (1 << 1) > > > +#define ESDHC_STROBE_DLL_STS_SLV_LOCK 0x1 > > > + > > > #define ESDHC_TUNING_CTRL 0xcc > > > #define ESDHC_STD_TUNING_EN (1 << 24) > > > /* NOTE: the minimum valid tuning start tap for mx6sl is 1 */ @@ > > > -120,6 +131,11 @@ > > > #define ESDHC_FLAG_ERR004536 BIT(7) > > > /* The IP supports HS200 mode */ > > > #define ESDHC_FLAG_HS200 BIT(8) > > > +/* The IP supports HS400 mode */ > > > +#define ESDHC_FLAG_HS400 BIT(9) > > > + > > > +/* A higher clock ferquency than this rate requires strobell dll > > control */ > > > +#define ESDHC_STROBE_DLL_CLK_FREQ 100000000 > > > > > > struct esdhc_soc_data { > > > u32 flags; > > > @@ -156,6 +172,12 @@ static struct esdhc_soc_data usdhc_imx6sx_data = { > > > | ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_HS200, }; > > > > > > +static struct esdhc_soc_data usdhc_imx7d_data = { > > > + .flags = ESDHC_FLAG_USDHC | ESDHC_FLAG_STD_TUNING > > > + | ESDHC_FLAG_HAVE_CAP1 | ESDHC_FLAG_HS200 > > > + | ESDHC_FLAG_HS400, > > > +}; > > > + > > > struct pltfm_imx_data { > > > u32 scratchpad; > > > struct pinctrl *pinctrl; > > > @@ -199,6 +221,7 @@ static const struct of_device_id imx_esdhc_dt_ids[] > > = { > > > { .compatible = "fsl,imx6sx-usdhc", .data = &usdhc_imx6sx_data, }, > > > { .compatible = "fsl,imx6sl-usdhc", .data = &usdhc_imx6sl_data, }, > > > { .compatible = "fsl,imx6q-usdhc", .data = &usdhc_imx6q_data, }, > > > + { .compatible = "fsl,imx7d-usdhc", .data = &usdhc_imx7d_data, }, > > > { /* sentinel */ } > > > }; > > > MODULE_DEVICE_TABLE(of, imx_esdhc_dt_ids); @@ -274,6 +297,9 @@ static > > > u32 esdhc_readl_le(struct sdhci_host *host, int reg) > > > val = SDHCI_SUPPORT_DDR50 | SDHCI_SUPPORT_SDR104 > > > | SDHCI_SUPPORT_SDR50 > > > | SDHCI_USE_SDR50_TUNING; > > > + > > > + if (imx_data->socdata->flags & ESDHC_FLAG_HS400) > > > + val |= SDHCI_SUPPORT_HS400; > > > } > > > } > > > > > > @@ -774,6 +800,7 @@ static int esdhc_change_pinstate(struct sdhci_host > > *host, > > > break; > > > case MMC_TIMING_UHS_SDR104: > > > case MMC_TIMING_MMC_HS200: > > > + case MMC_TIMING_MMC_HS400: > > > pinctrl = imx_data->pins_200mhz; > > > break; > > > default: > > > @@ -784,6 +811,44 @@ static int esdhc_change_pinstate(struct sdhci_host > > *host, > > > return pinctrl_select_state(imx_data->pinctrl, pinctrl); } > > > > > > +/* > > > + * For HS400 eMMC, there is a data_strobe line, this signal is > > > +generated > > > + * by the device and used for data output and CRC status response > > > +output > > > + * in HS400 mode. The frequency of this signal follows the frequency > > > +of > > > + * CLK generated by host. Host receive the data which is aligned to > > > +the > > > + * edge of data_strobe line. Due to the time delay between CLK line > > > +and > > > + * data_strobe line, if the delay time is larger than one clock > > > +cycle, > > > + * then CLK and data_strobe line will misaligned, read error shows up. > > > + * So when the CLK is higher than 100MHz, each clock cycle is short > > > +enough, > > > + * host should config the delay target. > > > + */ > > > +static void esdhc_set_strobe_dll(struct sdhci_host *host) { > > > + u32 v; > > > + > > > + if (host->mmc->actual_clock > ESDHC_STROBE_DLL_CLK_FREQ) { > > > + /* force a reset on strobe dll */ > > > + writel(ESDHC_STROBE_DLL_CTRL_RESET, > > > + host->ioaddr + ESDHC_STROBE_DLL_CTRL); > > > + /* > > > + * enable strobe dll ctrl and adjust the delay target > > > + * for the uSDHC loopback read clock > > > + */ > > > + v = ESDHC_STROBE_DLL_CTRL_ENABLE | > > > + (7 << ESDHC_STROBE_DLL_CTRL_SLV_DLY_TARGET_SHIFT); > > > + writel(v, host->ioaddr + ESDHC_STROBE_DLL_CTRL); > > > + /* wait 1us to make sure strobe dll status register stable */ > > > + udelay(1); > > > + v = readl(host->ioaddr + ESDHC_STROBE_DLL_STATUS); > > > + if (!(v & ESDHC_STROBE_DLL_STS_REF_LOCK)) > > > + dev_warn(mmc_dev(host->mmc), > > > + "warning! HS400 strobe DLL status REF not > > lock!\n"); > > > + if (!(v & ESDHC_STROBE_DLL_STS_SLV_LOCK)) > > > + dev_warn(mmc_dev(host->mmc), > > > + "warning! HS400 strobe DLL status SLV not > > lock!\n"); > > > + } > > > +} > > > + > > > static void esdhc_set_uhs_signaling(struct sdhci_host *host, unsigned > > > timing) { > > > struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); @@ -795,7 > > > +860,13 @@ static void esdhc_set_uhs_signaling(struct sdhci_host *host, > > unsigned timing) > > > case MMC_TIMING_UHS_SDR25: > > > case MMC_TIMING_UHS_SDR50: > > > case MMC_TIMING_UHS_SDR104: > > > + break; > > > case MMC_TIMING_MMC_HS200: > > > + /* disable ddr mode and disable HS400 mode */ > > > + writel(readl(host->ioaddr + ESDHC_MIX_CTRL) & > > > + ~(ESDHC_MIX_CTRL_DDREN | ESDHC_MIX_CTRL_HS400_EN), > > > + host->ioaddr + ESDHC_MIX_CTRL); > > > + imx_data->is_ddr = 0; > > > > Can you please explain why need above code? > > Any issues if not do it? > > > > Regards > > Dong Aisheng > > [haibo] currently, mmc core code use mmc_retune before every request, > and in mmc_retune, for eMMC, if the chip is in HS400 mode, firstly, > the code use mmc_hs400_to_hs200() to change the emmc chip work in > HS200 mode, and execute the tuning, and then use mmc_hs200_to_hs400() > to make the emmc chip work back in HS400 mode. > > Without the above code, when change to hs200 mode from hs400 mode, our > host still enable ddr mode and enable hs400 mode, which is wrong. > So add the code here. > Okay, understand. Clearing only for HS200 case is a bit confusing. A common rule to do it might be: Step 1) Clear exist timing setting at first Step 2) Set the required timing for each case I'd suggest you do like as follows: m = readl(host->ioaddr + ESDHC_MIX_CTRL); m &=~(ESDHC_MIX_CTRL_DDREN | ESDHC_MIX_CTRL_HS400_EN); imx_data->is_ddr = 0; Then case HS200: ... case HS400: ... Regards Dong Aisheng > > > > > break; > > > case MMC_TIMING_UHS_DDR50: > > > case MMC_TIMING_MMC_DDR52: > > > @@ -813,6 +884,13 @@ static void esdhc_set_uhs_signaling(struct > > sdhci_host *host, unsigned timing) > > > writel(v, host->ioaddr + ESDHC_DLL_CTRL); > > > } > > > break; > > > + case MMC_TIMING_MMC_HS400: > > > + writel(readl(host->ioaddr + ESDHC_MIX_CTRL) | > > > + ESDHC_MIX_CTRL_DDREN | ESDHC_MIX_CTRL_HS400_EN, > > > + host->ioaddr + ESDHC_MIX_CTRL); > > > + imx_data->is_ddr = 1; > > > + esdhc_set_strobe_dll(host); > > > + break; > > > } > > > > > > esdhc_change_pinstate(host, timing); @@ -1100,6 +1178,9 @@ static > > > int sdhci_esdhc_imx_probe(struct platform_device *pdev) > > > if (imx_data->socdata->flags & ESDHC_FLAG_ERR004536) > > > host->quirks |= SDHCI_QUIRK_BROKEN_ADMA; > > > > > > + if (imx_data->socdata->flags & ESDHC_FLAG_HS400) > > > + host->quirks2 |= SDHCI_QUIRK2_CAPS_BIT63_FOR_HS400; > > > + > > > if (of_id) > > > err = sdhci_esdhc_imx_probe_dt(pdev, host, imx_data); > > > else > > > -- > > > 1.9.1 > > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/