]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panel: panel-simple: Cache the EDID as long as we retain power
authorDouglas Anderson <dianders@chromium.org>
Fri, 23 Apr 2021 16:59:04 +0000 (09:59 -0700)
committerDouglas Anderson <dianders@chromium.org>
Mon, 3 May 2021 20:21:09 +0000 (13:21 -0700)
commit3076676d022c7363dc9bb509b974da89cffa49f2
tree4406663b31d04fbd41bde254bed5d10a8a6014a4
parentcd688f5a1f5987ff411b2f11de5fbdf745e764e6
drm/panel: panel-simple: Cache the EDID as long as we retain power

It doesn't make sense to go out to the bus and read the EDID over and
over again. Let's cache it and throw away the cache when we turn power
off from the panel. Autosuspend means that even if there are several
calls to read the EDID before we officially turn the power on then we
should get good use out of this cache.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210423095743.v5.18.If050957eaa85cf45b10bcf61e6f7fa61c9750ebf@changeid
drivers/gpu/drm/panel/panel-simple.c