]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7366/3: amba: Remove AMBA level regulator support
authorMark Brown <broonie@sirena.org.uk>
Fri, 13 Apr 2012 12:11:50 +0000 (13:11 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 13 Apr 2012 13:04:08 +0000 (14:04 +0100)
commit597269df6e1b89e6187a06a7a24b1bacf5a27478
tree06b324a3a99a278810c5403af84cf106afea19b4
parenta54b8dddbe9ac971c7947c4ad7b94d4c708971d9
ARM: 7366/3: amba: Remove AMBA level regulator support

The AMBA bus regulator support is being used to model on/off switches
for power domains which isn't terribly idiomatic for modern kernels with
the generic power domain code and creates integration problems on platforms
which don't use regulators for their power domains as it's hard to tell
the difference between a regulator that is needed but failed to be provided
and one that isn't supposed to be there (though DT does make that easier).

Platforms that wish to use the regulator API to manage their power domains
can indirect via the power domain interface.

This feature is only used with the vape supply of the db8500 PRCMU
driver which supplies the UARTs and MMC controllers, none of which have
support for managing vcore at runtime in mainline (only pl022 SPI
controller does).  Update that supply to have an always_on constraint
until the power domain support for the system is updated so that it is
enabled for these users, this is likely to have no impact on practical
systems as probably at least one of these devices will be active and
cause AMBA to hold the supply on anyway.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/amba/bus.c
drivers/mfd/db8500-prcmu.c
drivers/spi/spi-pl022.c
include/linux/amba/bus.h