drm/bridge: anx7625: Support reading edid through aux channel
authorHsin-Yi Wang <hsinyi@chromium.org>
Sun, 13 Feb 2022 10:34:36 +0000 (18:34 +0800)
committerRobert Foss <robert.foss@linaro.org>
Mon, 14 Feb 2022 12:42:05 +0000 (13:42 +0100)
commitadca62ec370c131ca676ea4fb2e4e450f999fb9e
tree3f541310a0af5133e872753b3818a9c5d791c693
parent57bfb34a51c7c655335010b3168c1061b5eba354
drm/bridge: anx7625: Support reading edid through aux channel

Support reading edid through aux channel if panel is connected to aux
bus. Extend anx7625_aux_dpcd_trans() to implement aux transfer function:

1. panel is populated in devm_of_dp_aux_populate_ep_devices(), so move
   anx7625_parse_dt() after.
2. Use pm runtime autosuspend since aux transfer function is called
   multiple times when reading edid.
3. No-op if aux transfer length is 0.

Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Reviewed-by: Xin Ji <xji@analogixsemi.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220213103437.3363848-3-hsinyi@chromium.org
drivers/gpu/drm/bridge/analogix/Kconfig
drivers/gpu/drm/bridge/analogix/anx7625.c
drivers/gpu/drm/bridge/analogix/anx7625.h