linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/11] mmc: document mmc_regulator_get_supply and fix users
@ 2017-10-14 19:17 Wolfram Sang
  2017-10-14 19:17 ` [PATCH v2 01/11] mmc: add kerneldoc to mmc_regulator_get_supply() Wolfram Sang
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Wolfram Sang @ 2017-10-14 19:17 UTC (permalink / raw)
  To: linux-mmc; +Cc: linux-renesas-soc, Fabrizio Castro, Wolfram Sang

Fix the drivers and add some docs according to the outcome of this discussion
[1] we had recently. The motivation from the patch description:

Bail out everytime when mmc_regulator_get_supply() returns an errno, not only
when probing gets deferred. This is currently a no-op, because this function
only returns -EPROBE_DEFER or 0 right now. But if it will throw another error
somewhen, it will be for a reason. (This still doesn't change that getting
regulators is optional, so 0 can still mean no regulators found). So, let us a)
be future proof and b) have driver code which is easier to understand.

The patches have been created with coccinelle. A branch can be found here:

git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/mmc-get-supply-docs

Looking forward to comments!

Kind regards,

   Wolfram

[1] https://patchwork.kernel.org/patch/9965823/

Changes since v1:
	* fix checkpatch warnings about too long commit message lines
	* fix a typo in patch 1 ('separately')


Wolfram Sang (11):
  mmc: add kerneldoc to mmc_regulator_get_supply()
  mmc: cavium: catch all errors when getting regulators
  mmc: dw_mmc: catch all errors when getting regulators
  mmc: meson-gx-mmc: catch all errors when getting regulators
  mmc: meson-mx-sdio: catch all errors when getting regulators
  mmc: mmci: catch all errors when getting regulators
  mmc: mtk-sd: catch all errors when getting regulators
  mmc: mxcmmc: catch all errors when getting regulators
  mmc: omap_hsmmc: catch all errors when getting regulators
  mmc: sdhci: catch all errors when getting regulators
  mmc: usdhi6rol0: catch all errors when getting regulators

 drivers/mmc/core/core.c          | 10 ++++++++++
 drivers/mmc/host/cavium.c        |  2 +-
 drivers/mmc/host/dw_mmc.c        |  2 +-
 drivers/mmc/host/meson-gx-mmc.c  |  2 +-
 drivers/mmc/host/meson-mx-sdio.c |  2 +-
 drivers/mmc/host/mmci.c          |  2 +-
 drivers/mmc/host/mtk-sd.c        |  2 +-
 drivers/mmc/host/mxcmmc.c        |  2 +-
 drivers/mmc/host/omap_hsmmc.c    |  2 +-
 drivers/mmc/host/sdhci.c         |  2 +-
 drivers/mmc/host/usdhi6rol0.c    |  2 +-
 11 files changed, 20 insertions(+), 10 deletions(-)

-- 
2.11.0

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-10-20 10:02 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-14 19:17 [PATCH v2 00/11] mmc: document mmc_regulator_get_supply and fix users Wolfram Sang
2017-10-14 19:17 ` [PATCH v2 01/11] mmc: add kerneldoc to mmc_regulator_get_supply() Wolfram Sang
2017-10-14 19:17 ` [PATCH v2 02/11] mmc: cavium: catch all errors when getting regulators Wolfram Sang
2017-10-14 19:17 ` [PATCH v2 03/11] mmc: dw_mmc: " Wolfram Sang
2017-10-14 19:17 ` [PATCH v2 04/11] mmc: meson-gx-mmc: " Wolfram Sang
2017-10-14 19:17 ` [PATCH v2 05/11] mmc: meson-mx-sdio: " Wolfram Sang
2017-10-14 19:17 ` [PATCH v2 06/11] mmc: mmci: " Wolfram Sang
2017-10-14 19:17 ` [PATCH v2 07/11] mmc: mtk-sd: " Wolfram Sang
2017-10-14 19:17 ` [PATCH v2 08/11] mmc: mxcmmc: " Wolfram Sang
2017-10-14 19:17 ` [PATCH v2 09/11] mmc: omap_hsmmc: " Wolfram Sang
2017-10-14 19:17 ` [PATCH v2 10/11] mmc: sdhci: " Wolfram Sang
2017-10-14 19:17 ` [PATCH v2 11/11] mmc: usdhi6rol0: " Wolfram Sang
2017-10-20 10:02 ` [PATCH v2 00/11] mmc: document mmc_regulator_get_supply and fix users Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).