]> git.baikalelectronics.ru Git - kernel.git/commit
drm/bridge: anx7625: Fix NULL pointer crash when using edp-panel
authorHsin-Yi Wang <hsinyi@chromium.org>
Wed, 6 Jul 2022 12:52:53 +0000 (20:52 +0800)
committerRobert Foss <robert.foss@linaro.org>
Wed, 6 Jul 2022 13:19:53 +0000 (15:19 +0200)
commit6fc3503096715f4e4f5c13c0cefcb633b133204f
tree85ac66ba61ff4b18423cb9827d1647535d748265
parenta0ed39c338fb8fb5a6c5f008b610f93a4aaa1057
drm/bridge: anx7625: Fix NULL pointer crash when using edp-panel

Move devm_of_dp_aux_populate_ep_devices() after pm runtime and i2c setup
to avoid NULL pointer crash.

edp-panel probe (generic_edp_panel_probe) calls pm_runtime_get_sync() to
read EDID. At this time, bridge should have pm runtime enabled and i2c
clients ready.

Fixes: dfbfd2d3b2b9 ("drm/bridge: anx7625: Support reading edid through aux channel")
Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Reviewed-by: Xin Ji <xji@analogixsemi.com>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220706125254.2474095-4-hsinyi@chromium.org
drivers/gpu/drm/bridge/analogix/anx7625.c