lkml.org 
[lkml]   [2019]   [Nov]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.19 032/422] mmc: sdhci-of-at91: fix quirk2 overwrite
    Date
    From: Eugen Hristev <eugen.hristev@microchip.com>

    commit fed23c5829ecab4ddc712d7b0046e59610ca3ba4 upstream.

    The quirks2 are parsed and set (e.g. from DT) before the quirk for broken
    HS200 is set in the driver.
    The driver needs to enable just this flag, not rewrite the whole quirk set.

    Fixes: 7871aa60ae00 ("mmc: sdhci-of-at91: add quirk for broken HS200")
    Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
    Acked-by: Adrian Hunter <adrian.hunter@intel.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/mmc/host/sdhci-of-at91.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/mmc/host/sdhci-of-at91.c
    +++ b/drivers/mmc/host/sdhci-of-at91.c
    @@ -366,7 +366,7 @@ static int sdhci_at91_probe(struct platf
    pm_runtime_use_autosuspend(&pdev->dev);

    /* HS200 is broken at this moment */
    - host->quirks2 = SDHCI_QUIRK2_BROKEN_HS200;
    + host->quirks2 |= SDHCI_QUIRK2_BROKEN_HS200;

    ret = sdhci_add_host(host);
    if (ret)

    \
     
     \ /
      Last update: 2019-11-19 06:24    [W:4.079 / U:0.196 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site