diff options
author | Archit Taneja <architt@codeaurora.org> | 2017-01-11 09:29:56 +0300 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2017-02-06 19:28:43 +0300 |
commit | 0bb70b82c2f91e4667f3c617505235efd6d77e46 (patch) | |
tree | 593fe924eae06443c226f5b632cc87bb4826994b /drivers/gpu/drm/msm/msm_debugfs.c | |
parent | cd576abfffe43170ffc874065314478a3e14cbe0 (diff) | |
download | linux-0bb70b82c2f91e4667f3c617505235efd6d77e46.tar.xz |
drm/msm/dsi: Set msm_dsi->encoders before initializing bridge
The commit "drm: bridge: Link encoder and bridge in core code" updated
the drm_bridge_attach() API to also include the drm_encoder pointer
the bridge attaches to.
The func msm_dsi_manager_bridge_init() now relies on the drm_encoder
pointer stored in msm_dsi->encoders to pass the encoder to the bridge
API.
msm_dsi->encoders is unfortunately set after this function is called,
resulting in us passing a NULL pointer to drm_brigde_attach. This
results in an error and the DSI driver probe fails.
Move the initialization of msm_dsi->encoders[] a bit up. Also, don't
try to set the encoder's bridge. That's now managed by the bridge
API.
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_debugfs.c')
0 files changed, 0 insertions, 0 deletions