Skip to content

omap_hsmmc: regulator usage cleanup and fixes

Kishon Vijay Abraham I linux-mmc linux-omap lkml 3 versions – Applied

Status from this message: Thanks, applied for next!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest15 patches 17 repliesApplied
  2. v216 patches 8 repliesSuperseded
  3. v117 patches 7 repliesSuperseded

Changes in v3 from the cover letter

*) rebased to mmc -next branch
*) dropped using "mmc_of_parse_voltage" to get ocr_avail patch.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/15mmc: host: omap_hsmmc: use devm_regulator_get_optional() for vmmcdrivers/mmc/host/omap_hsmmc.c+7 -30 replies
2/15mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_getdrivers/mmc/host/omap_hsmmc.c+20 -211 replies
3/15mmc: host: omap_hsmmc: cleanup omap_hsmmc_reg_get()drivers/mmc/host/omap_hsmmc.c+16 -220 replies
4/15mmc: host: omap_hsmmc: use the ocrmask provided by the vmmc regulatordrivers/mmc/host/omap_hsmmc.c+1 -90 replies
5/15mmc: host: omap_hsmmc: use mmc_host's vmmc and vqmmcdrivers/mmc/host/omap_hsmmc.c+28 -350 replies
6/15mmc: host: omap_hsmmc: remove unnecessary pbias set_voltagedrivers/mmc/host/omap_hsmmc.c+0 -10 replies
7/15mmc: host: omap_hsmmc: return error if any of the regulator APIs faildrivers/mmc/host/omap_hsmmc.c+40 -120 replies
8/15mmc: host: omap_hsmmc: add separate functions for enable/disable supplydrivers/mmc/host/omap_hsmmc.c+66 -350 replies
9/15mmc: host: omap_hsmmc: add separate function to set pbiasdrivers/mmc/host/omap_hsmmc.c+48 -300 replies
10/15mmc: host: omap_hsmmc: avoid pbias regulator enable on power offdrivers/mmc/host/omap_hsmmc.c+4 -40 replies
11/15mmc: host: omap_hsmmc: don't use ->set_power to set initial regulator statedrivers/mmc/host/omap_hsmmc.c+56 -100 replies
12/15mmc: host: omap_hsmmc: enable/disable vmmc_aux regulator based on previous statedrivers/mmc/host/omap_hsmmc.c+8 -20 replies
13/15mmc: host: omap_hsmmc: use regulator_is_enabled to find pbias statusdrivers/mmc/host/omap_hsmmc.c+2 -64 replies
14/15mmc: host: omap_hsmmc: use ios->vdd for setting vmmc voltagedrivers/mmc/host/omap_hsmmc.c+4 -30 replies
15/15mmc: host: omap_hsmmc: remove CONFIG_REGULATOR checkdrivers/mmc/host/omap_hsmmc.c+3 -310 replies

Reviews trailers per patch

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

PatchTony LindgrenRoger Quadros
1/15T-b
2/15T-b
3/15T-b R-b
4/15T-b
5/15T-b R-b
6/15T-b R-b
7/15T-b
8/15T-b
9/15T-b
10/15T-b
11/15T-b
12/15T-b
13/15T-b
14/15T-b
15/15T-b

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 00/15] omap_hsmmc: regulator usage cleanup and fixes

This patch series does the following
*) Uses devm_regulator_get_optional() for vmmc and then removes the
CONFIG_REGULATOR check altogether.
*) return on -EPROBE_DEFER and any other fatal errors
*) enable/disable vmmc_aux regulator based on prior state

Changes from v2:
*) rebased to mmc -next branch
*) dropped using "mmc_of_parse_voltage" to get ocr_avail patch.

Changes from v1:
*) return on -EPROBE_DEFER and other fatal errors. (Don't return only
if the return value is -ENODEV)
*) Remove the beagle x15 dts patch. It can be part of a different
series.
*) Avoid using regulator_is_enabled for vqmmc since if the regulator
is shared and the other users are not using regulator_is_enabled then there can be unbalanced regulator_enable/regulator_disable

I've pushed this patch series to
git://git.ti.com/linux-phy/linux-phy.git mmc_for-next

Please note the branch also has the pbias fixes [1].
[1] -> https://lkml.org/lkml/2015/7/27/358

This series is in preparation for implementing the voltage switch sequence so that UHS cards can be supported.

Did basic read/write test in J6, J6 Eco, Beagle-x15, AM437x EVM, Beaglebone black, OMAP5 uEVM, OMAP4 PANDA and OMAP3gle xm.

Kishon Vijay Abraham I (15):
mmc: host: omap_hsmmc: use devm_regulator_get_optional() for vmmc
mmc: host: omap_hsmmc: return on fatal errors from omap_hsmmc_reg_get
mmc: host: omap_hsmmc: cleanup omap_hsmmc_reg_get()
mmc: host: omap_hsmmc: use the ocrmask provided by the vmmc regulator
mmc: host: omap_hsmmc: use mmc_host's vmmc and vqmmc
mmc: host: omap_hsmmc: remove unnecessary pbias set_voltage
mmc: host: omap_hsmmc: return error if any of the regulator APIs fail
mmc: host: omap_hsmmc: add separate functions for enable/disable
supply
mmc: host: omap_hsmmc: add separate function to set pbias
mmc: host: omap_hsmmc: avoid pbias regulator enable on power off
mmc: host: omap_hsmmc: don't use ->set_power to set initial regulator
state
mmc: host: omap_hsmmc: enable/disable vmmc_aux regulator based on
previous state
mmc: host: omap_hsmmc: use regulator_is_enabled to find pbias status
mmc: host: omap_hsmmc: use ios->vdd for setting vmmc voltage
mmc: host: omap_hsmmc: remove CONFIG_REGULATOR check

 drivers/mmc/host/omap_hsmmc.c |  326 +++++++++++++++++++++++++++--------------
 1 file changed, 212 insertions(+), 114 deletions(-)
Signature · 1 line
1.7.9.5