[PATCH drm-misc-next v4 0/4] drm/arm/hdlcd: use drm managed resources

From: Danilo Krummrich
Date: Wed Oct 26 2022 - 11:34:49 EST


Hi,

This patch series converts the driver to use drm managed resources to prevent
potential use-after-free issues on driver unbind/rebind and to get rid of the
usage of deprecated APIs.

Changes in v2:
- drop patch "drm/arm/hdlcd: crtc: use drmm_crtc_init_with_planes()"

Changes in v3:
- Fix alternate return paths in srcu read-side critical sections causing a
stall when unregistering the driver.
- Fix potential null pointer dereference in hdlcd_crtc_cleanup() introduced
dropping the patch in v2.
- Add a patch to remove explicit calls to drm_mode_config_cleanup().

Changes in v4:
- Remove patches to protect platform device bound resources with
drm_dev_{enter,exit}, since this would leave the hardware enabled when
regularly unloading the driver e.g. via rmmod.
Instead do this in a later series, once we got drm_dev_unplug() in place
to deal with a regular driver shutdown.

Danilo Krummrich (4):
drm/arm/hdlcd: use drmm_* to allocate driver structures
drm/arm/hdlcd: replace drm->dev_private with drm_to_hdlcd_priv()
drm/arm/hdlcd: plane: use drm managed resources
drm/arm/hdlcd: remove calls to drm_mode_config_cleanup()

drivers/gpu/drm/arm/hdlcd_crtc.c | 24 +++++++------------
drivers/gpu/drm/arm/hdlcd_drv.c | 41 ++++++++++++++++----------------
drivers/gpu/drm/arm/hdlcd_drv.h | 2 ++
3 files changed, 32 insertions(+), 35 deletions(-)


base-commit: e1e7bc481d49c3e3ada11029ce0d9b85a0a539d7
--
2.37.3