linux/drivers/gpu/drm/msm/dsi
Sean Paul aea24171c8 drm/msm: dsi: Initialize msm_dsi->id to -1
Currently msm_dsi->id is initialized to 0 during kzalloc. If bind fails
for a secondary dsi device before its id can be properly set (such as
during dt parsing), the id will point to the primary dsi device, causing
its reference to be removed from dsi_manager's global (msm_dsim_glb)
array.

This patch initializes the id to -1 and checks for negative in the
manager cleanup.

Cc: Doug Anderson <dianders@chromium.org>
Reviewed-by: Abhinav Kumar <abhinavk@codeaurora.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>

Signed-off-by: Rob Clark <robdclark@gmail.com>
2018-10-03 20:24:49 -04:00
..
phy drm/msm/dsi: implement auto PHY timing calculator for 10nm PHY 2018-06-03 16:48:59 -04:00
pll drm/msm/dsi: initialize postdiv_lock before use for 10nm pll 2018-07-26 10:40:14 -04:00
dsi_cfg.c drm/msm/dsi: add implementation for helper functions 2018-07-25 07:51:04 -04:00
dsi_cfg.h drm/msm/dsi: adjust dsi timing for dual dsi mode 2018-07-26 10:40:14 -04:00
dsi_host.c drm/msm: dsi: Handle dual-channel for 6G as well 2018-07-30 08:50:12 -04:00
dsi_manager.c drm/msm: dsi: Initialize msm_dsi->id to -1 2018-10-03 20:24:49 -04:00
dsi.c drm/msm: dsi: Initialize msm_dsi->id to -1 2018-10-03 20:24:49 -04:00
dsi.h drm/msm/dsi: Use one connector for dual DSI mode 2018-07-26 10:40:14 -04:00
dsi.xml.h drm/msm: update generated headers 2018-08-10 18:49:18 -04:00
mmss_cc.xml.h drm/msm: update generated headers 2018-08-10 18:49:18 -04:00
sfpb.xml.h drm/msm: update generated headers 2018-08-10 18:49:18 -04:00