Skip to content

mmc_of_parse() adaptations, switch mvsdio to mmc_of_parse()

Simon Baatz linux-arm-kernel linux-devicetree linux-mmc 6 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 3/38 patches 0 repliesNew
  2. v3 posting 2/30 of 10 patches 0 repliesSuperseded
  3. v3 posting 1/310 patches 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v2 posting 3/30 of 10 patches0 repliesSuperseded
v2 posting 2/30 of 10 patches0 repliesSuperseded
v2 posting 1/310 patches0 repliesSuperseded

Changes in v3 from the cover letter

- Patch 01/10: Added EPROBE_DEFER case to mmc_of_parse()
- Added Acked-By to (unmodified) patches 02 and 03.

Patches in v3 posting 3/3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8mmc: return mmc_of_parse() errors to callerdrivers/mmc/core/host.c include/linux/mmc/host.h+26 -60 replies
2/8mmc: sh_mmcif: handle mmc_of_parse() errors during probedrivers/mmc/host/sh_mmcif.c+6 -10 replies
3/8mmc: tmio-mmc: handle mmc_of_parse() errors during probedrivers/mmc/host/tmio_mmc_pio.c+3 -10 replies
4/8mmc: mxcmmc: handle mmc_of_parse() errors during probedrivers/mmc/host/mxcmmc.c+3 -10 replies
5/8mmc: sdhci-pxav3: handle mmc_of_parse() errors during probedrivers/mmc/host/sdhci-pxav3.c+5 -20 replies
6/8mmc: tegra: handle mmc_of_parse() errors during probedrivers/mmc/host/sdhci-tegra.c+6 -31 reply
6/8mmc: tegra: handle mmc_of_parse() errors during probe+0 -00 replies
7/8ARM: mvebu: Use standard MMC binding for all users of mvsdioarch/arm/boot/dts/armada-370-db.dts arch/arm/boot/dts/armada-370-mirabox.dts arch/arm/boot/dts/armada-370-rd.dts +7 more+17 -10 replies
8/8mmc: mvsdio: use standard MMC device-tree binding parser mmc_of_parse()drivers/mmc/host/mvsdio.c+40 -330 replies

Reviews trailers per patch

3 of 9 patches have a Reviewed-by or Acked-by.

PatchUlf HanssonGuennadi LiakhovetskiAndrew LunnStephen Warren
SeriesT-b
1/8R-b
2/8A-b
3/8A-b
4/8
5/8
6/8T-b
6/8T-b
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v3 thread

Cover letter [RESEND PATCH V3 0/8] mmc_of_parse() adaptations, switch mvsdio to mmc_of_parse()

Hi,

RESEND V3:
- Dropped patches 9 and 10, they are part of linux-next already
NB: patch 7 as well, but I did not want to change the numbering

V3 changes:
- Patch 01/10: Added EPROBE_DEFER case to mmc_of_parse()
- Added Acked-By to (unmodified) patches 02 and 03.

V2 changes:
- Converted mvsdio to use mmc_of_parse()
- Adapted DTS files using mvsdio accordingly
- Changed mmc_of_parse() to return errors to the caller

While adding DT support for the Sheevaplugs by Globalscale Technologies (Kirkwood), it turned out that the DT binding of mvsdio lacked features to properly support the hardware (active high/low of CD and WP pins could not be described in DT).

This is standard functionality provided by the mmc_of_parse() helper function. However, mmc_of_parse() may allocate GPIO lines. If the allocation fails, it outputs an error, but does not return an error to its caller. Therefore, a proposal to handle errors in mmc_of_parse() is made. This also allows to handle the EPROBE_DEFER case when GPIO is not loaded yet.

The patch set is structured as follows:

1 Adapt mmc_of_parse() to return errors
2-6 Handle errors in current drivers using mmc_of_parse() (compile tested
only)
7-8 Convert mvsdio and respective dts files to mmc_of_parse() (tested on
kirkwood)

Simon Baatz (8):
mmc: return mmc_of_parse() errors to caller
mmc: sh_mmcif: handle mmc_of_parse() errors during probe
mmc: tmio-mmc: handle mmc_of_parse() errors during probe
mmc: mxcmmc: handle mmc_of_parse() errors during probe
mmc: sdhci-pxav3: handle mmc_of_parse() errors during probe
mmc: tegra: handle mmc_of_parse() errors during probe
ARM: mvebu: Use standard MMC binding for all users of mvsdio
mmc: mvsdio: use standard MMC device-tree binding parser

    mmc_of_parse()
 arch/arm/boot/dts/armada-370-db.dts                |    1 +
 arch/arm/boot/dts/armada-370-mirabox.dts           |    1 +
 arch/arm/boot/dts/armada-370-rd.dts                |    1 +
 arch/arm/boot/dts/armada-370-xp.dtsi               |    4 ++
 arch/arm/boot/dts/armada-xp-db.dts                 |    1 +
 arch/arm/boot/dts/kirkwood-dreamplug.dts           |    1 +
 .../arm/boot/dts/kirkwood-guruplug-server-plus.dts |    2 +
 arch/arm/boot/dts/kirkwood-mplcec4.dts             |    2 +-
 arch/arm/boot/dts/kirkwood-topkick.dts             |    1 +
 arch/arm/boot/dts/kirkwood.dtsi                    |    4 ++
 drivers/mmc/core/host.c                            |   30 ++++++--
 drivers/mmc/host/mvsdio.c                          |   73 +++++++++++---------
 drivers/mmc/host/mxcmmc.c                          |    4 +-
 drivers/mmc/host/sdhci-pxav3.c                     |    7 +-
 drivers/mmc/host/sdhci-tegra.c                     |    9 ++-
 drivers/mmc/host/sh_mmcif.c                        |    7 +-
 drivers/mmc/host/tmio_mmc_pio.c                    |    4 +-
 include/linux/mmc/host.h                           |    2 +-
 18 files changed, 106 insertions(+), 48 deletions(-)
Signature · 1 line
1.7.9.5