]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci: if MAX_CURRENT is 0, try getting current from regulator
authorPhilip Rakity <prakity@marvell.com>
Mon, 28 May 2012 01:36:44 +0000 (18:36 -0700)
committerChris Ball <cjb@laptop.org>
Sat, 21 Jul 2012 04:02:22 +0000 (00:02 -0400)
commitb07476d70c51a3b09f6b908877b4477b0eb24229
treef296dfee6adbb7c7b781285cd447b3aed53fa0ed
parent9b01041527855694ec6cedaea169dcfbf34578db
mmc: sdhci: if MAX_CURRENT is 0, try getting current from regulator

The sd host controller spec indicates the the MAX_CURRENT value may
be returned as 0.  In this case other methods need to be used to
return the current.  If 0 is returned and there is a regulator,
ask the regulator for how much current is available.

Signed-off-by: Philip Rakity <prakity@marvell.com>
Signed-off-by: Mark F. Brown <mark.brown314@gmail.com>
Reviewed-by: Aaron Lu <aaron.lu@amd.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h