Il 29/06/22 21:05, Hsin-Yi Wang ha scritto:
Make sure bridge_disable will be called before suspend by calling drm_mode_config_helper_suspend() in .prepare callback. Signed-off-by: Hsin-Yi Wang <hsinyi@xxxxxxxxxxxx> Reviewed-by: CK Hu <ck.hu@xxxxxxxxxxxx>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>
--- The issue is found if suspend is called via VT2 in several MTK SoC (eg. MT8173, MT8183, MT8186) chromebook boards with eDP bridge: bridge disable is called through mtk-drm's suspend, and it needs to be called before bridge pm runtime suspend. So we move the hook to .prepare() and .complete(). --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)