drm/msm: avoid double-attaching hdmi/edp bridges
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 12 Mar 2020 03:51:54 +0000 (23:51 -0400)
committerRob Clark <robdclark@chromium.org>
Thu, 19 Mar 2020 19:08:52 +0000 (12:08 -0700)
commitc479017faa3a9f6c60ea18ffe44e20b33487e10e
treecaaa0932f9bc41f6f695328deabc0b7bcf8e144d
parentde3916c70a24e3e1bdbf6b0a77d75b069d8953d9
drm/msm: avoid double-attaching hdmi/edp bridges

Each of hdmi and edp are already attached in msm_*_bridge_init. A second
attachment returns -EBUSY, failing the driver load.

Tested with HDMI on IFC6410 (APQ8064 / MDP4), but eDP case should be
analogous.

Fixes: 3ef2f119bd3ed (drm/msm: Use drm_attach_bridge() to attach a bridge to an encoder)
Cc: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Tested-by: Bjorn Andersson <bjorn.andersson@linaro.org> (hdmi part)
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/edp/edp.c
drivers/gpu/drm/msm/hdmi/hdmi.c