Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1443450 > unrolled thread
| Started by | Krzysztof Kozlowski <k.kozlowski@samsung.com> |
|---|---|
| First post | 2016-07-14 15:30 +0200 |
| Last post | 2016-07-15 06:20 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] mmc: dwmmc: exynos: Warn if HS400 is being used on non-Exynos5420 chipset Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-07-14 15:30 +0200
Re: mmc: dwmmc: exynos: Warn if HS400 is being used on non-Exynos5420 chipset Alim Akhtar <alim.akhtar@samsung.com> - 2016-07-15 06:20 +0200
| From | Krzysztof Kozlowski <k.kozlowski@samsung.com> |
|---|---|
| Date | 2016-07-14 15:30 +0200 |
| Subject | [PATCH] mmc: dwmmc: exynos: Warn if HS400 is being used on non-Exynos5420 chipset |
| Message-ID | <rUOSd-1Ni-19@gated-at.bofh.it> |
Chipsets before Exynos5420 did not support HS400 so if MMC core tries to
configure HS400 timing, this might or might not work. Warn in such
cases because this is DTB misconfiguration.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
---
drivers/mmc/host/dw_mmc-exynos.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/mmc/host/dw_mmc-exynos.c b/drivers/mmc/host/dw_mmc-exynos.c
index da0ef1765735..7ab3d749b5ae 100644
--- a/drivers/mmc/host/dw_mmc-exynos.c
+++ b/drivers/mmc/host/dw_mmc-exynos.c
@@ -225,8 +225,12 @@ static void dw_mci_exynos_config_hs400(struct dw_mci *host, u32 timing)
* Not supported to configure register
* related to HS400
*/
- if (priv->ctrl_type < DW_MCI_TYPE_EXYNOS5420)
+ if (priv->ctrl_type < DW_MCI_TYPE_EXYNOS5420) {
+ if (timing == MMC_TIMING_MMC_HS400)
+ dev_warn(host->dev,
+ "cannot configure HS400, unsupported chipset\n");
return;
+ }
dqs = priv->saved_dqs_en;
strobe = priv->saved_strobe_ctrl;
--
1.9.1
[toc] | [next] | [standalone]
| From | Alim Akhtar <alim.akhtar@samsung.com> |
|---|---|
| Date | 2016-07-15 06:20 +0200 |
| Subject | Re: mmc: dwmmc: exynos: Warn if HS400 is being used on non-Exynos5420 chipset |
| Message-ID | <rV2Lv-28X-3@gated-at.bofh.it> |
| In reply to | #1443450 |
Hi Krzysztof,
On 07/14/2016 06:52 PM, Krzysztof Kozlowski wrote:
> Chipsets before Exynos5420 did not support HS400 so if MMC core tries to
> configure HS400 timing, this might or might not work. Warn in such
> cases because this is DTB misconfiguration.
>
> Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
> ---
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
> drivers/mmc/host/dw_mmc-exynos.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/dw_mmc-exynos.c b/drivers/mmc/host/dw_mmc-exynos.c
> index da0ef1765735..7ab3d749b5ae 100644
> --- a/drivers/mmc/host/dw_mmc-exynos.c
> +++ b/drivers/mmc/host/dw_mmc-exynos.c
> @@ -225,8 +225,12 @@ static void dw_mci_exynos_config_hs400(struct dw_mci *host, u32 timing)
> * Not supported to configure register
> * related to HS400
> */
> - if (priv->ctrl_type < DW_MCI_TYPE_EXYNOS5420)
> + if (priv->ctrl_type < DW_MCI_TYPE_EXYNOS5420) {
> + if (timing == MMC_TIMING_MMC_HS400)
> + dev_warn(host->dev,
> + "cannot configure HS400, unsupported chipset\n");
> return;
> + }
>
It is good to have extra bit of debug information handy.
> dqs = priv->saved_dqs_en;
> strobe = priv->saved_strobe_ctrl;
>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web