Skip to content

mmc: sdhci-esdhc-imx: fix acmd23 unwork and ddr not supported on sabresd issues

Dong Aisheng linux-arm-kernel linux-mmc 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 0 repliesNew
  2. v17 patches 0 repliesSuperseded

ChangeLog from the cover letter

v1->v2: a minor change on patch1, switch the order of patch 4&5.
dropped patch 7: mmc: sdhci-esdhc-imx: add eMMC HS200 mode support which will be in another series together with another extra fix on tuning broken issue in latest Chris' tree.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6mmc: sdhci: clear auto cmd setting bits for no data cmdsdrivers/mmc/host/sdhci.c+6 -11 reply
2/6mmc: sdhci-esdhc-imx: add SDHCI_TRANSFER_MODE read functiondrivers/mmc/host/sdhci-esdhc-imx.c+16 -00 replies
3/6ARM: dts: sabresd: add usdhc4 supportarch/arm/boot/dts/imx6qdl-sabresd.dtsi+9 -00 replies
4/6mmc: sdhci-esdhc-imx: fix cpas over write issuedrivers/mmc/host/sdhci-esdhc-imx.c+1 -10 replies
5/6mmc: sdhci-esdhc-imx: add MMC_CAP_1_8V_DDR for mx6drivers/mmc/host/sdhci-esdhc-imx.c+1 -00 replies
6/6mmc: core: mmc DDR mode should not depend on UHS_DDR50drivers/mmc/core/mmc.c+2 -61 reply

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchUlf HanssonShawn Guo
SeriesA-b
1/6
2/6
3/6
4/6
5/6
6/6A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/6] mmc: sdhci-esdhc-imx: fix acmd23 unwork and ddr not supported on sabresd issues

Patch 1~3 fix acmd23 unwork issue.
Currently the eMMC chip integrated on i.MX6Q SabreSD boards does not work. (It's easily reproduced once you enable usdhc4 on sabresd, see patch 3) It's caused by acmd setting bits are never cleared once it's been set which cause the next normal commands to work abnormally.

Patch 4~6 fix DDR not supported on SabreSD board.
The SabreSD board does not have 1.8v signal voltage switch support for uSDHC, thus it can not support UHS_DDR50 mode which can only run at 1.8v signal voltage.

The issue is that current mmc DDR mode support implemented in MMC core depends on UHS_DDR50, which then cause such controller like uSDHC on SabreSD without 1.8v capability can not support eMMC DDR mode too.
(But the SabreSD board does support eMMC DDR mode since the eMMC DDR mode can work on either 1.8v or 3.3v)
So this patch gets rid of this limitation to let controller not support 1.8v signal voltage can also support eMMC DDR mode.

ChangeLog:
v1->v2: a minor change on patch1, switch the order of patch 4&5.
dropped patch 7: mmc: sdhci-esdhc-imx: add eMMC HS200 mode support which will be in another series together with another extra fix on tuning broken issue in latest Chris' tree.

Dong Aisheng (6):
mmc: sdhci: clear auto cmd setting bits for no data cmds
mmc: sdhci-esdhc-imx: add SDHCI_TRANSFER_MODE read function
ARM: dts: sabresd: add usdhc4 support
mmc: sdhci-esdhc-imx: fix cpas over write issue
mmc: sdhci-esdhc-imx: add MMC_CAP_1_8V_DDR for mx6
mmc: core: mmc DDR mode should not depend on UHS_DDR50

 arch/arm/boot/dts/imx6qdl-sabresd.dtsi |    9 +++++++++
 drivers/mmc/core/mmc.c                 |    8 ++------
 drivers/mmc/host/sdhci-esdhc-imx.c     |   19 ++++++++++++++++++-
 drivers/mmc/host/sdhci.c               |    7 ++++++-
 4 files changed, 35 insertions(+), 8 deletions(-)
Signature · 1 line
1.7.2.rc3