All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/12] Cargo cult cleanup in atomic drivers
@ 2018-01-17 21:55 Laurent Pinchart
  2018-01-17 21:55 ` [PATCH 01/12] drm: arc: Don't set CRTC .mode_set and .mode_set_base handlers Laurent Pinchart
                   ` (14 more replies)
  0 siblings, 15 replies; 23+ messages in thread
From: Laurent Pinchart @ 2018-01-17 21:55 UTC (permalink / raw)
  To: dri-devel
  Cc: Boris Brezillon, Alexey Brodkin, Liviu Dudau, Vincent Abriou,
	Mali DP Maintainers, Shawn Guo

Hello,

This patch series removes a few cargo-cult constructs from a set of atomic
drivers.

Patches 01/12 and 02/12 remove the unneeded .mode_set() and .mode_set_base()
CRTC handlers from the arc and atmel-hlcdc drivers.

Patches 03/12 to 12/12 then remove the use of drm_plane_helper_disable() from
the plane .destroy() handlers of atomic drivers, replacing them with the use
of drm_atomic_helper_shutdown() at removal time. Interleaved there are patches
04/12 and 06/12 that remove unnecessary cleanups in error paths, and patch
09/12 that adds missing cleanup.

All this has been compile-tested only.

Laurent Pinchart (12):
  drm: arc: Don't set CRTC .mode_set and .mode_set_base handlers
  drm: atmel-hlcdc: Don't set CRTC .mode_set and .mode_set_base handlers
  drm: arc: Use drm_atomic_helper_shutdown() to disable planes on
    removal
  drm: arm: hdlcd: Don't destroy plane manually in hdlcd_setup_crtc()
  drm: arm: hdlcd: Use drm_atomic_helper_shutdown() to disable planes on
    removal
  drm: arm: malidp: Don't destroy planes manually in error handlers
  drm: arm: malidp: Use drm_atomic_helper_shutdown() to disable planes
    on removal
  drm: msm: Use drm_atomic_helper_shutdown() to disable planes on
    removal
  drm: sti: Cleanup KMS objects on removal
  drm: sti: Use drm_atomic_helper_shutdown() to disable planes on
    removal
  drm: vc4: Use drm_atomic_helper_shutdown() to disable planes on
    removal
  drm: zte: Use drm_atomic_helper_shutdown() to disable planes on
    removal

 drivers/gpu/drm/arc/arcpgu_crtc.c              | 12 ++----------
 drivers/gpu/drm/arc/arcpgu_drv.c               |  1 +
 drivers/gpu/drm/arm/hdlcd_crtc.c               | 12 ++----------
 drivers/gpu/drm/arm/hdlcd_drv.c                |  1 +
 drivers/gpu/drm/arm/malidp_crtc.c              | 10 ++--------
 drivers/gpu/drm/arm/malidp_drv.c               |  2 +-
 drivers/gpu/drm/arm/malidp_drv.h               |  1 -
 drivers/gpu/drm/arm/malidp_planes.c            | 17 +----------------
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c |  2 --
 drivers/gpu/drm/msm/Kconfig                    |  1 -
 drivers/gpu/drm/msm/mdp/mdp4/mdp4_plane.c      |  1 -
 drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c      |  1 -
 drivers/gpu/drm/msm/msm_drv.c                  |  1 +
 drivers/gpu/drm/sti/sti_cursor.c               | 10 +---------
 drivers/gpu/drm/sti/sti_drv.c                  |  2 ++
 drivers/gpu/drm/sti/sti_gdp.c                  | 10 +---------
 drivers/gpu/drm/sti/sti_hqvdp.c                | 10 +---------
 drivers/gpu/drm/vc4/Kconfig                    |  1 -
 drivers/gpu/drm/vc4/vc4_drv.c                  |  3 +++
 drivers/gpu/drm/vc4/vc4_plane.c                |  8 +-------
 drivers/gpu/drm/zte/Kconfig                    |  2 +-
 drivers/gpu/drm/zte/zx_drm_drv.c               |  1 +
 drivers/gpu/drm/zte/zx_plane.c                 |  8 +-------
 23 files changed, 23 insertions(+), 94 deletions(-)

-- 
Regards,

Laurent Pinchart

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2018-02-02  7:48 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-17 21:55 [PATCH 00/12] Cargo cult cleanup in atomic drivers Laurent Pinchart
2018-01-17 21:55 ` [PATCH 01/12] drm: arc: Don't set CRTC .mode_set and .mode_set_base handlers Laurent Pinchart
2018-01-17 21:55 ` [PATCH 02/12] drm: atmel-hlcdc: " Laurent Pinchart
2018-01-18  8:44   ` Boris Brezillon
2018-01-17 21:55 ` [PATCH 03/12] drm: arc: Use drm_atomic_helper_shutdown() to disable planes on removal Laurent Pinchart
2018-01-17 21:55 ` [PATCH 04/12] drm: arm: hdlcd: Don't destroy plane manually in hdlcd_setup_crtc() Laurent Pinchart
2018-01-17 21:55 ` [PATCH 05/12] drm: arm: hdlcd: Use drm_atomic_helper_shutdown() to disable planes on removal Laurent Pinchart
2018-01-17 21:55 ` [PATCH 06/12] drm: arm: malidp: Don't destroy planes manually in error handlers Laurent Pinchart
2018-01-17 21:55 ` [PATCH 07/12] drm: arm: malidp: Use drm_atomic_helper_shutdown() to disable planes on removal Laurent Pinchart
2018-01-19 15:48   ` Liviu Dudau
2018-01-17 21:55 ` [PATCH 08/12] drm: msm: " Laurent Pinchart
2018-01-19  4:51   ` Archit Taneja
2018-01-17 21:55 ` [PATCH 09/12] drm: sti: Cleanup KMS objects " Laurent Pinchart
2018-01-17 21:55 ` [PATCH 10/12] drm: sti: Use drm_atomic_helper_shutdown() to disable planes " Laurent Pinchart
2018-01-17 21:55 ` [PATCH 11/12] drm: vc4: " Laurent Pinchart
2018-01-18  5:44   ` Eric Anholt
2018-01-20 11:54   ` kbuild test robot
2018-01-20 12:03   ` kbuild test robot
2018-01-17 21:55 ` [PATCH 12/12] drm: zte: " Laurent Pinchart
2018-02-02  7:48   ` Shawn Guo
2018-01-18 17:32 ` [PATCH 00/12] Cargo cult cleanup in atomic drivers Liviu Dudau
2018-01-18 18:00 ` Alexey Brodkin
2018-01-19 15:00 ` Benjamin Gaignard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.