diff options
author | Olof Johansson <olof@lixom.net> | 2018-05-15 22:51:10 +0200 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2018-05-15 22:51:10 +0200 |
commit | 67a41cc86f372c418cef9af52993b1f6475b94ad (patch) | |
tree | cc34e193d1c95c9877d3535220aecbfd83d009ca | |
parent | Merge tag 'reset-for-4.18' of git://git.pengutronix.de/pza/linux into next/dr... (diff) | |
parent | soc: rockchip: power-domain: Fix wrong value when power up pd with writemask (diff) | |
download | linux-67a41cc86f372c418cef9af52993b1f6475b94ad.tar.xz linux-67a41cc86f372c418cef9af52993b1f6475b94ad.zip |
Merge tag 'v4.18-rockchip-drivers-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into next/drivers
Fix for an issue introduced in 2016 where some powerdomains could only
be turned off but not on again.
* tag 'v4.18-rockchip-drivers-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip:
soc: rockchip: power-domain: Fix wrong value when power up pd with writemask
Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r-- | drivers/soc/rockchip/pm_domains.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/rockchip/pm_domains.c b/drivers/soc/rockchip/pm_domains.c index 53efc386b1ad..df7f30a425c6 100644 --- a/drivers/soc/rockchip/pm_domains.c +++ b/drivers/soc/rockchip/pm_domains.c @@ -255,7 +255,7 @@ static void rockchip_do_pmu_set_power_domain(struct rockchip_pm_domain *pd, return; else if (pd->info->pwr_w_mask) regmap_write(pmu->regmap, pmu->info->pwr_offset, - on ? pd->info->pwr_mask : + on ? pd->info->pwr_w_mask : (pd->info->pwr_mask | pd->info->pwr_w_mask)); else regmap_update_bits(pmu->regmap, pmu->info->pwr_offset, |