[i-g-t,6/8] tests/fbcon_fbt: Use psr_wait_exit() to test updates in PSR

Submitted by Souza, Jose on Jan. 7, 2019, 7:10 p.m.


Message ID 20190107191056.22759-6-jose.souza@intel.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in IGT

Not browsing as part of any series.

Commit Message

Souza, Jose Jan. 7, 2019, 7:10 p.m.
It will test was is intented and faster as in the first occurence of
PSR exit it will return instead of wait the timeout of

Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
 tests/kms_fbcon_fbt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/tests/kms_fbcon_fbt.c b/tests/kms_fbcon_fbt.c
index c0d1752e..3e218dc8 100644
--- a/tests/kms_fbcon_fbt.c
+++ b/tests/kms_fbcon_fbt.c
@@ -198,7 +198,7 @@  static bool psr_wait_until_enabled(int debugfs_fd)
 static bool psr_wait_until_update(int debugfs_fd)
-	return !psr_wait_until_enabled(debugfs_fd);
+	return psr_wait_exit(debugfs_fd);
 static void disable_features(int debugfs_fd)