linux_dsm_epyc7002/drivers/gpu/drm/tinydrm
Noralf Trønnes 9d5645ad1b drm/tinydrm: Use drm_dev_enter/exit()
This protects device resources from use after device removal.

There are 3 ways for driver-device unbinding to happen:
- The driver module is unloaded causing the driver to be unregistered.
  This can't happen as long as there are open file handles because a
  reference is taken on the module.
- The device is removed (Device Tree overlay unloading).
  This can happen at any time.
- The driver sysfs unbind file can be used to unbind the driver from the
  device. This can happen any time.

v2: Since drm_atomic_helper_shutdown() has to be called after
    drm_dev_unplug() we don't want do block ->disable after unplug.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190225144232.20761-8-noralf@tronnes.org
2019-03-04 15:32:21 +01:00
..
core drm/tinydrm: Remove tinydrm_device 2019-03-04 15:31:27 +01:00
hx8357d.c drm/tinydrm: Use drm_dev_enter/exit() 2019-03-04 15:32:21 +01:00
ili9225.c drm/tinydrm: Use drm_dev_enter/exit() 2019-03-04 15:32:21 +01:00
ili9341.c drm/tinydrm: Use drm_dev_enter/exit() 2019-03-04 15:32:21 +01:00
Kconfig drm: Add an hx8367d tinydrm driver. 2018-10-30 16:23:38 -07:00
Makefile drm: Add an hx8367d tinydrm driver. 2018-10-30 16:23:38 -07:00
mi0283qt.c drm/tinydrm: Use drm_dev_enter/exit() 2019-03-04 15:32:21 +01:00
mipi-dbi.c drm/tinydrm: Use drm_dev_enter/exit() 2019-03-04 15:32:21 +01:00
repaper.c drm/tinydrm: Use drm_dev_enter/exit() 2019-03-04 15:32:21 +01:00
st7586.c drm/tinydrm: Use drm_dev_enter/exit() 2019-03-04 15:32:21 +01:00
st7735r.c drm/tinydrm: Use drm_dev_enter/exit() 2019-03-04 15:32:21 +01:00