From: Łukasz Spintzyk <Lukasz.Spintzyk@xxxxxxxxxxxxx> This is fixing some kernel panics on device unplug, that started to be more visible after implementing cursor plane support. Signed-off-by: Łukasz Spintzyk <Lukasz.Spintzyk@xxxxxxxxxxxxx> --- drivers/gpu/drm/udl/udl_drv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/udl/udl_drv.c b/drivers/gpu/drm/udl/udl_drv.c index 1506094a8009..adaa7703c118 100644 --- a/drivers/gpu/drm/udl/udl_drv.c +++ b/drivers/gpu/drm/udl/udl_drv.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2012 Red Hat + * Copyright (c) 2024 Synaptics Incorporated. All Rights Reserved. */ #include <linux/module.h> @@ -14,6 +15,7 @@ #include <drm/drm_ioctl.h> #include <drm/drm_probe_helper.h> #include <drm/drm_print.h> +#include <drm/drm_atomic_helper.h> #include "udl_drv.h" @@ -129,6 +131,7 @@ static void udl_usb_disconnect(struct usb_interface *interface) drm_kms_helper_poll_fini(dev); udl_drop_usb(dev); drm_dev_unplug(dev); + drm_atomic_helper_shutdown(dev); } /* -- 2.34.1