drm/bridge: it6505: Initialize AUX channel in it6505_i2c_probe
authorPin-yen Lin <treapking@chromium.org>
Thu, 13 Oct 2022 11:04:08 +0000 (19:04 +0800)
committerRobert Foss <robert.foss@linaro.org>
Mon, 24 Oct 2022 08:08:47 +0000 (10:08 +0200)
commite577d4b13064c337b83fe7edecb3f34e87144821
treea62f1dc817686600c3880027979f9b0ea77003b7
parent2556e1a83574f6248b70534c5d50e3ef9eaa4eb5
drm/bridge: it6505: Initialize AUX channel in it6505_i2c_probe

During device boot, the HPD interrupt could be triggered before the DRM
subsystem registers it6505 as a DRM bridge. In such cases, the driver
tries to access AUX channel and causes NULL pointer dereference.
Initializing the AUX channel earlier to prevent such error.

Fixes: b5c84a9edcd4 ("drm/bridge: add it6505 driver")
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/20221013110411.1674359-2-treapking@chromium.org
drivers/gpu/drm/bridge/ite-it6505.c