]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: Initialize MDSS irq domain at probe time
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 1 Dec 2021 20:20:23 +0000 (23:20 +0300)
committerRob Clark <robdclark@chromium.org>
Mon, 6 Dec 2021 17:22:51 +0000 (09:22 -0800)
commit84df144ad615dcc800434fc6811b8d32ba5c0cbe
treec186f90dd244bbb1c4fba44aa70410d929274477
parent76afbbbab01fea407475665af2b3d8bd6a820066
drm/msm: Initialize MDSS irq domain at probe time

Since commit 1ee7462e150f ("drm/msm/dsi: Adjust probe order"), the
DSI host gets initialized earlier, but this caused unability to probe
the entire stack of components because they all depend on interrupts
coming from the main `mdss` node (mdp5, or dpu1).

To fix this issue, move mdss device initialization (which include irq
domain setup) to msm_mdev_probe() time, as to make sure that the
interrupt controller is available before dsi and/or other components try
to initialize, finally satisfying the dependency.

Fixes: 1ee7462e150f ("drm/msm/dsi: Adjust probe order")
Co-Developed-By: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20211201202023.2313971-1-dmitry.baryshkov@linaro.org
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c
drivers/gpu/drm/msm/disp/mdp5/mdp5_mdss.c
drivers/gpu/drm/msm/msm_drv.c
drivers/gpu/drm/msm/msm_kms.h