From: Derek Basehore Date: Wed, 24 Jan 2018 00:02:27 +0000 (-0800) Subject: rockchip/rk3399: Fix QOS save/restore X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b2a0af1bff73c70eec09efa047e9ca20ce455077;p=project%2Fbcm63xx%2Fatf.git 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 --- diff --git a/plat/rockchip/rk3399/drivers/pmu/pmu.c b/plat/rockchip/rk3399/drivers/pmu/pmu.c index c666c3c2..df8152f4 100644 --- a/plat/rockchip/rk3399/drivers/pmu/pmu.c +++ b/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);