Browse Source

rockchip/rk3399: Fix QOS save/restore

The code was accidentally restoring the QOS on suspend and saving the
QOS on resume. This is the opposite of what we want.

Signed-off-by: Derek Basehore <dbasehore@chromium.org>
pull/1236/head
Derek Basehore 7 years ago
parent
commit
b2a0af1bff
  1. 4
      plat/rockchip/rk3399/drivers/pmu/pmu.c

4
plat/rockchip/rk3399/drivers/pmu/pmu.c

@ -95,7 +95,7 @@ static void pmu_bus_idle_req(uint32_t bus, uint32_t state)
struct pmu_slpdata_s pmu_slpdata;
static void qos_save(void)
static void qos_restore(void)
{
if (pmu_power_domain_st(PD_GPU) == pmu_pd_on)
RESTORE_QOS(pmu_slpdata.gpu_qos, GPU);
@ -161,7 +161,7 @@ static void qos_save(void)
}
}
static void qos_restore(void)
static void qos_save(void)
{
if (pmu_power_domain_st(PD_GPU) == pmu_pd_on)
SAVE_QOS(pmu_slpdata.gpu_qos, GPU);

Loading…
Cancel
Save