]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/panel: novatek-nt35950: Only unregister DSI1 if it exists
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Mon, 17 Apr 2023 15:41:08 +0000 (17:41 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 7 Jul 2023 10:17:05 +0000 (12:17 +0200)
commitadd1671e811acc31b25a76682858bc5308181df0
tree65c219b7ab36c1b485297f02e65d5d61e71e1489
parent7534b1bd361f1eed86a5cf6b135405d741c250d4
drm/panel: novatek-nt35950: Only unregister DSI1 if it exists

BugLink: https://bugs.launchpad.net/bugs/2025067
[ Upstream commit a50be876f4fe2349dc8b056a49d87f69c944570f ]

Commit 5dd45b66742a ("drm/panel: novatek-nt35950: Improve error handling")
introduced logic to unregister DSI1 on any sort of probe failure, as
that's not done automatically by kernel APIs.

It did not however account for cases where only one DSI host is used.
Fix that.

Fixes: 5dd45b66742a ("drm/panel: novatek-nt35950: Improve error handling")
Reported-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230417-topic-maple_panel_fixup-v1-1-07c8db606f5e@linaro.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/gpu/drm/panel/panel-novatek-nt35950.c