diff mbox series

[4/4] drm/udl: Shutdown all CRTCs on usb disconnect

Message ID 20240624071041.5087-5-lukasz.spintzyk@synaptics.com (mailing list archive)
State New, archived
Headers show
Series [1/4] drm/udl: Port CrOS cursor blending on primary plane in usb transfer | expand

Commit Message

Łukasz Spintzyk June 24, 2024, 7:10 a.m. UTC
From: Łukasz Spintzyk <Lukasz.Spintzyk@synaptics.com>

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@synaptics.com>
---
 drivers/gpu/drm/udl/udl_drv.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

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);
 }
 
 /*