]> git.itanic.dy.fi Git - linux-stable/commit
drm/panel: otm8009a: Set backlight parent to panel device
authorJames Cowgill <james.cowgill@blaize.com>
Wed, 12 Apr 2023 17:35:07 +0000 (17:35 +0000)
committerNeil Armstrong <neil.armstrong@linaro.org>
Mon, 17 Apr 2023 07:43:05 +0000 (09:43 +0200)
commitab4f869fba6119997f7630d600049762a2b014fa
tree1cb46267f4c22e9ba6d774b3757d52bac1f79a71
parent5dd45b66742a1f3cfa9a92dc0ac8714c7708ee6c
drm/panel: otm8009a: Set backlight parent to panel device

This is the logical place to put the backlight device, and it also
fixes a kernel crash if the MIPI host is removed. Previously the
backlight device would be unregistered twice when this happened - once
as a child of the MIPI host through `mipi_dsi_host_unregister`, and
once when the panel device is destroyed.

Fixes: 12a6cbd4f3f1 ("drm/panel: otm8009a: Use new backlight API")
Signed-off-by: James Cowgill <james.cowgill@blaize.com>
Cc: stable@vger.kernel.org
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230412173450.199592-1-james.cowgill@blaize.com
drivers/gpu/drm/panel/panel-orisetech-otm8009a.c