drm/msm: Clear aperture ownership outside of fbdev code
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 3 Apr 2023 12:45:32 +0000 (14:45 +0200)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Thu, 6 Apr 2023 17:29:40 +0000 (20:29 +0300)
commit3aa4e828be97b9bacad5679201e22796f15e763b
tree22eaf4ff8ba61cb9f61c5d567b7c4dcecccb1e9a
parent25c83fd999e6eb787f08f4e3293e8bca45e7b14b
drm/msm: Clear aperture ownership outside of fbdev code

Move aperture management out of the fbdev code. It is unrelated
and needs to run even if fbdev support has been disabled. Call
the helper at the top of msm_drm_init() to take over hardware
from other drivers.

v2:
* bind all subdevices before acquiring device (Dmitri)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/530553/
Link: https://lore.kernel.org/r/20230403124538.8497-3-tzimmermann@suse.de
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/msm_drv.c
drivers/gpu/drm/msm/msm_fbdev.c