tmp_suning_uos_patched/drivers/soc
Jon Hunter 0ecf2d33bb soc/tegra: pmc: Fix testing of powergate state
In tegra_powergate_set() the state of the powergates is read and OR'ed
with the bit for the powergate of interest. This unsigned 32-bit value
is then compared with a boolean value to test if the powergate is
already in the desired state. When turning on a powergate, apart from
the powergate that is represented by bit 0, this test will always
return false and so we may attempt to turn on the powergate when it is
already on.

After OR'ing the bit for the powergate, check if the result is not equal
to zero before comparing with the boolean value. Add a helper function
to return the current state of a powergate and use this in both
tegra_powergate_set() and tegra_powergate_is_powered() where we check
the powergate status.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
2016-04-05 15:22:48 +02:00
..
bcm ARM: bcm2835: clarify RASPBERRYPI_FIRMWARE dependency 2015-12-31 23:44:17 +01:00
brcmstb soc: brcmstb: Add Bus Interface Unit control setup 2015-10-09 13:42:16 -07:00
dove soc: dove: add legacy support to PMU driver 2015-12-08 13:19:29 +01:00
fsl powerpc updates for 4.6 2016-03-19 15:38:41 -07:00
mediatek soc: mediatek: SCPSYS: Fix double enabling of regulators 2016-02-01 11:28:07 +01:00
qcom ARM: SoC fixes for v4.5 merge window 2016-01-22 17:26:00 -08:00
rockchip soc: rockchip: power-domain: fix err handle while probing 2016-02-02 22:18:31 +01:00
samsung drivers: soc: samsung: Enable COMPILE_TEST 2016-02-25 11:25:40 +09:00
sunxi drivers: soc: sunxi: Fix mask generation for SRAM mapping 2016-01-27 20:29:20 +01:00
tegra soc/tegra: pmc: Fix testing of powergate state 2016-04-05 15:22:48 +02:00
ti soc: TI knav_qmss: fix dma_addr_t printing 2016-02-26 17:53:06 +01:00
versatile soc: versatile: add support for the PB11MPCore 2015-12-15 09:42:50 +01:00
Kconfig drivers: soc: Add support for Exynos PMU driver 2016-02-25 10:18:07 +09:00
Makefile drivers: soc: Add support for Exynos PMU driver 2016-02-25 10:18:07 +09:00