diff options
author | Drew Davenport <ddavenport@chromium.org> | 2022-11-17 13:38:44 -0700 |
---|---|---|
committer | Douglas Anderson <dianders@chromium.org> | 2022-11-29 14:23:05 -0800 |
commit | fa8e91b12697e05a7971da035ebaa723a34f81ae (patch) | |
tree | 3fdb55aff4a40687f7ebbef4feb330024fc566ea /drivers/rtc/rtc-goldfish.c | |
parent | de86815b3730b4df1eaa1dc8a213f6040f2ed218 (diff) | |
download | linux-fa8e91b12697e05a7971da035ebaa723a34f81ae.tar.gz |
drm/panel-edp: Use ktime_get_boottime for delays
ktime_get is based on CLOCK_MONOTONIC which stops on suspend. On
suspend, the time that the panel was powerd off is recorded with
ktime_get, and on resume this time is compared to the current ktime_get
time to determine if the driver should wait for the panel to power down
completely before re-enabling it.
Because we're using ktime_get, this delay doesn't account for the time
that the device is suspended, during which the power down delay may have
already elapsed.
Change to use ktime_get_boottime throughout, which uses CLOCK_BOOTTIME
which does not stop when suspended. This ensures that the resume path
will not be delayed if the power off delay has already been met while
the device is suspended.
Signed-off-by: Drew Davenport <ddavenport@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20221117133655.1.I51639dc112bbbe27259df6bdad56dbabd655d91a@changeid
Diffstat (limited to 'drivers/rtc/rtc-goldfish.c')
0 files changed, 0 insertions, 0 deletions