lkml.org 
[lkml]   [2017]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.9 13/41] mmc: mmc: correct the logic for setting HS400ES signal voltage
    Date
    4.9-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Haibo Chen <haibo.chen@nxp.com>

    commit 92ddd95919466de5d34f3cb43635da9a7f9ab814 upstream.

    Change the default err value to -EINVAL, make sure the card only
    has type EXT_CSD_CARD_TYPE_HS400_1_8V also do the signal voltage
    setting when select hs400es mode.

    Fixes: commit 1720d3545b77 ("mmc: core: switch to 1V8 or 1V2 for hs400es mode")
    Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
    Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
    Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/mmc/core/mmc.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/mmc/core/mmc.c
    +++ b/drivers/mmc/core/mmc.c
    @@ -1258,7 +1258,7 @@ out_err:
    static int mmc_select_hs400es(struct mmc_card *card)
    {
    struct mmc_host *host = card->host;
    - int err = 0;
    + int err = -EINVAL;
    u8 val;

    if (!(host->caps & MMC_CAP_8_BIT_DATA)) {

    \
     
     \ /
      Last update: 2017-08-15 03:48    [W:3.603 / U:0.132 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site