diff options
author | Tomasz Figa <[email protected]> | 2018-04-23 12:50:00 +0200 |
---|---|---|
committer | Andrzej Hajda <[email protected]> | 2018-04-24 08:34:51 +0200 |
commit | 39b138ea861a3494d2962467d6e275ae9f80a364 (patch) | |
tree | ed72f2ae8a7d2fea07f1e29350e85773923777eb /tools/perf/scripts/python/export-to-postgresql.py | |
parent | a4169609def769c66f88140678970b2be6f64ac7 (diff) |
drm/rockchip: psr: Avoid redundant calls to .set() callback
The first time after we call rockchip_drm_do_flush() after
rockchip_drm_psr_register(), we go from PSR_DISABLE to PSR_FLUSH. The
difference between PSR_DISABLE and PSR_FLUSH is whether or not we have a
delayed work pending - PSR is off in either state. However
psr_set_state() only catches the transition from PSR_FLUSH to
PSR_DISABLE (which never happens), while going from PSR_DISABLE to
PSR_FLUSH triggers a call to psr->set() to disable PSR while it's
already disabled. This triggers the eDP PHY power-on sequence without
being shut down first and this seems to occasionally leave the encoder
unable to later enable PSR. Let's just simplify the state machine and
simply consider PSR_DISABLE and PSR_FLUSH the same state.
Signed-off-by: Tomasz Figa <[email protected]>
Signed-off-by: Kristian H. Kristensen <[email protected]>
Signed-off-by: Thierry Escande <[email protected]>
Signed-off-by: Enric Balletbo i Serra <[email protected]>
Tested-by: Marek Szyprowski <[email protected]>
Signed-off-by: Andrzej Hajda <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions