]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drm/rockchip: analogix_dp: Do not call Analogix code before bind
authorTomasz Figa <tfiga@chromium.org>
Mon, 23 Apr 2018 10:49:59 +0000 (12:49 +0200)
committerAndrzej Hajda <a.hajda@samsung.com>
Tue, 24 Apr 2018 06:34:50 +0000 (08:34 +0200)
commita4169609def769c66f88140678970b2be6f64ac7
tree8968ff1e08283f888a619376e14bbecd00a0790d
parent7bb3bb4d56d8f3e0b29b8e4a70f2ab7a8e04a935
drm/rockchip: analogix_dp: Do not call Analogix code before bind

Driver callbacks, such as system suspend or resume can be called any
time, specifically they can be called before the component bind
callback. Let's use dp->adp pointer as a safeguard and skip calling
Analogix entry points if it is an ERR_PTR().

Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180423105003.9004-24-enric.balletbo@collabora.com
drivers/gpu/drm/rockchip/analogix_dp-rockchip.c