Skip to content

Armada 38x SDHCI driver improvements

Marcin Wojtas linux-arm-kernel linux-mmc lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 6 repliesIn review
  2. v25 patches 9 repliesSuperseded
  3. v18 patches 22 repliesApplied

Changes in v3 from the cover letter

* remove redundant print after fail of mbus_win_regs obtaining
* add big comment on possible card detection options in armada-388-gp.dts
* reconstruct dat3-cd support
- use dedicated flag in sdhci_pxa structure instead of checking property in DT
- instead of global SDHCI quirk add wrapper for sdhci_set_clock function in order to keep internal clock enabled
- prevent using pm_runtime in case of using dat3-cd
* improve MMC_CARD bit modification - do not check Armada 38x compatible string in pxav3_init_card callback, but use pxa->mbus_win_regs as a flag

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5mmc: sdhci-pxav3: enable proper resuming on Armada 38x SoCdrivers/mmc/host/sdhci-pxav3.c+16 -192 replies
2/5mmc: sdhci-pxav3: enable usage of DAT3 pin as HW card detectDocumentation/devicetree/bindings/mmc/sdhci-pxa.txt drivers/mmc/host/sdhci-pxav3.c+87 -182 replies
3/5ARM: mvebu: set SW polling as SDHCI card detection on A388-GParch/arm/boot/dts/armada-388-gp.dts+14 -11 reply
4/5mmc: sdhci: add init_card callback to sdhcidrivers/mmc/host/sdhci.c drivers/mmc/host/sdhci.h+10 -00 replies
5/5mmc: sdhci-pxav3: enable modifying MMC_CARD bit during card initializationdrivers/mmc/host/sdhci-pxav3.c+22 -00 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchAndrew Lunn
1/5
2/5
3/5A-b
4/5
5/5

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

Read the v3 thread

Cover letter [PATCH v3 0/5] Armada 38x SDHCI driver improvements

Hi,

Thank you for reviewing the patches. According to your remarks and some new ideas I prepared third patchset. I modified my HW and now I could check operation when using all three modes of detection (polling, gpio and dat3) - it all seems working fine. Any remarks will be wellcome.

Best regards,
Marcin

Changes:
v1 -> v2
* enable SW polling as card detection
* in resume function change condition for mbus windows reconfiguration

v2 -> v3
* remove redundant print after fail of mbus_win_regs obtaining
* add big comment on possible card detection options in armada-388-gp.dts
* reconstruct dat3-cd support
- use dedicated flag in sdhci_pxa structure instead of checking property in DT
- instead of global SDHCI quirk add wrapper for sdhci_set_clock function in order to keep internal clock enabled
- prevent using pm_runtime in case of using dat3-cd
* improve MMC_CARD bit modification - do not check Armada 38x compatible string in pxav3_init_card callback, but use pxa->mbus_win_regs as a flag

Marcin Wojtas (5):
mmc: sdhci-pxav3: enable proper resuming on Armada 38x SoC
mmc: sdhci-pxav3: enable usage of DAT3 pin as HW card detect
ARM: mvebu: set SW polling as SDHCI card detection on A388-GP
mmc: sdhci: add init_card callback to sdhci
mmc: sdhci-pxav3: enable modifying MMC_CARD bit during card
initialization

 .../devicetree/bindings/mmc/sdhci-pxa.txt          |   5 +
 arch/arm/boot/dts/armada-388-gp.dts                |  15 +-
 drivers/mmc/host/sdhci-pxav3.c                     | 157 ++++++++++++++++-----
 drivers/mmc/host/sdhci.c                           |   9 ++
 drivers/mmc/host/sdhci.h                           |   1 +
 5 files changed, 149 insertions(+), 38 deletions(-)
Signature · 1 line
1.8.3.1