linux_dsm_epyc7002/drivers/gpu/drm/msm/dsi
Archit Taneja 0bb70b82c2 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>
2017-02-06 11:28:43 -05:00
..
phy drm/msm/dsi: Don't get DSI index from DT 2016-07-16 10:09:02 -04:00
pll drm/msm: Set CLK_IGNORE_UNUSED flag for PLL clocks 2016-11-02 10:48:09 -04:00
dsi_cfg.c drm/msm/dsi: Don't get DSI index from DT 2016-07-16 10:09:02 -04:00
dsi_cfg.h drm/msm/dsi: Don't get DSI index from DT 2016-07-16 10:09:02 -04:00
dsi_host.c Merge branch 'msm-next' of git://people.freedesktop.org/~robclark/linux into drm-next 2016-12-01 09:25:58 +10:00
dsi_manager.c drm: bridge: Link encoder and bridge in core code 2016-12-18 16:31:45 +05:30
dsi.c drm/msm/dsi: Set msm_dsi->encoders before initializing bridge 2017-02-06 11:28:43 -05:00
dsi.h drm/msm/dsi: Fix regulator API abuse 2016-05-08 10:22:17 -04:00
dsi.xml.h drm/msm/dsi: Update generated headers 2017-02-06 11:28:43 -05:00
mmss_cc.xml.h drm/msm: update generated headers 2016-11-28 15:14:10 -05:00
sfpb.xml.h drm/msm: update generated headers 2016-11-28 15:14:10 -05:00