drm/bridge: it6505: Add caching for EDID
authorPin-yen Lin <treapking@chromium.org>
Tue, 15 Nov 2022 11:27:20 +0000 (19:27 +0800)
committerRobert Foss <robert.foss@linaro.org>
Thu, 15 Dec 2022 10:41:22 +0000 (11:41 +0100)
commit11feaef69d0cb81278294299bbfd86f94c2004e3
tree6eebc7af1c7cf74b0d41a37c6334301c4b6f3554
parent2a9df204be0bbb896e087f00b9ee3fc559d5a608
drm/bridge: it6505: Add caching for EDID

Add caching when EDID is read, and invalidate the cache until the
bridge detects HPD low or sink count changes on HPD_IRQ.

It takes 1.2s for IT6505 bridge to read a 3-block EDID, and skipping
one EDID read would be a notable difference on user experience.

Signed-off-by: Pin-yen Lin <treapking@chromium.org>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20221115112720.911158-1-treapking@chromium.org
drivers/gpu/drm/bridge/ite-it6505.c