Advertisement
Guest User

Untitled

a guest
Mar 27th, 2019
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 KB | None | 0 0
  1. commit aaf1e755f8f9c6a4b6cf8514352164940db78cbd
  2. Author: Takeshi Saito <takeshi.saito.xv@renesas.com>
  3. Date: Tue Jan 29 06:40:39 2019 +0100
  4.  
  5. mmc: renesas_sdhi: Fix card initialization failure in high speed mode
  6.  
  7. commit d30ae056adb81e1d2b8b953efa74735a020b8e3b upstream.
  8.  
  9. This fixes card initialization failure in high speed mode.
  10.  
  11. If U-Boot uses SDR or HS200/400 mode before starting Linux and Linux
  12. DT does not enable SDR/HS200/HS400 mode, card initialization fails in
  13. high speed mode.
  14.  
  15. It is necessary to initialize SCC registers during card initialization
  16. phase. HW reset function is registered only for a port with either of
  17. SDR/HS200/HS400 properties in device tree. If SDR/HS200/HS400 properties
  18. are not present in device tree, SCC registers will not be reset. In SoC
  19. that support SCC registers, HW reset function should be registered
  20. regardless of the configuration of device tree.
  21.  
  22. Reproduction procedure:
  23. - Use U-Boot that support MMC HS200/400 mode.
  24. - Delete HS200/HS400 properties in device tree.
  25. (Delete mmc-hs200-1_8v and mmc-hs400-1_8v)
  26. - MMC port works high speed mode and all commands fail.
  27.  
  28. Signed-off-by: Takeshi Saito <takeshi.saito.xv@renesas.com>
  29. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
  30. Cc: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
  31. Cc: Simon Horman <horms+renesas@verge.net.au>
  32. Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
  33. Cc: stable@vger.kernel.org
  34. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
  35. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  36.  
  37. commit 351062f08fc1b57f33f29ceeee7dc67a9e39b5c4
  38. Author: BOUGH CHEN <haibo.chen@nxp.com>
  39. Date: Thu Dec 27 11:20:24 2018 +0000
  40.  
  41. mmc: sdhci-esdhc-imx: fix HS400 timing issue
  42.  
  43. commit de0a0decf2edfc5b0c782915f4120cf990a9bd13 upstream.
  44.  
  45. Now tuning reset will be done when the timing is MMC_TIMING_LEGACY/
  46. MMC_TIMING_MMC_HS/MMC_TIMING_SD_HS. But for timing MMC_TIMING_MMC_HS,
  47. we can not do tuning reset, otherwise HS400 timing is not right.
  48.  
  49. Here is the process of init HS400, first finish tuning in HS200 mode,
  50. then switch to HS mode and 8 bit DDR mode, finally switch to HS400
  51. mode. If we do tuning reset in HS mode, this will cause HS400 mode
  52. lost the tuning setting, which will cause CRC error.
  53.  
  54. Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
  55. Cc: stable@vger.kernel.org # v4.12+
  56. Acked-by: Adrian Hunter <adrian.hunter@intel.com>
  57. Fixes: d9370424c948 ("mmc: sdhci-esdhc-imx: reset tuning circuit when power on mmc card")
  58. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
  59. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement