Guest User

Untitled

a guest
Oct 14th, 2018
93
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
  2. index 585951cd78..0568feac01 100644
  3. --- a/drivers/mmc/mmc.c
  4. +++ b/drivers/mmc/mmc.c
  5. @@ -1266,7 +1266,7 @@ retry_scr:
  6. if (mmc->version < SD_VERSION_3)
  7. return 0;
  8.  
  9. - sd3_bus_mode = __be32_to_cpu(switch_status[3]) >> 16 & 0x1f;
  10. + sd3_bus_mode = __be32_to_cpu(switch_status[13]) & 0x1f;
  11. if (sd3_bus_mode & SD_MODE_UHS_SDR104)
  12. mmc->card_caps |= MMC_CAP(UHS_SDR104);
  13. if (sd3_bus_mode & SD_MODE_UHS_SDR50)
  14. @@ -1321,7 +1321,7 @@ static int sd_set_card_speed(struct mmc *mmc, enum bus_mode mode)
  15. if (err)
  16. return err;
  17.  
  18. - if (((__be32_to_cpu(switch_status[4]) >> 24) & 0xF) != speed)
  19. + if ((__be32_to_cpu(switch_status[16]) & 0xF) != speed)
  20. return -ENOTSUPP;
  21.  
  22. return 0;
RAW Paste Data