linux-tegra.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/12] drm/tegra: Convert to platform remove callback returning void
@ 2023-03-22 17:02 Uwe Kleine-König
  2023-03-22 17:02 ` [PATCH 01/12] gpu: host1x: Make host1x_client_unregister() return void Uwe Kleine-König
                   ` (12 more replies)
  0 siblings, 13 replies; 15+ messages in thread
From: Uwe Kleine-König @ 2023-03-22 17:02 UTC (permalink / raw)
  To: Thierry Reding, David Airlie, Daniel Vetter, Jonathan Hunter,
	Sowjanya Komatineni, Mauro Carvalho Chehab, Greg Kroah-Hartman
  Cc: dri-devel, linux-tegra, kernel, linux-media, linux-staging

Hello,

this series adapts the platform drivers below drivers/gpu/drm/tegra to
use the .remove_new() callback. Compared to the traditional .remove()
callback .remove_new() returns no value. This is a good thing because
the driver core doesn't (and cannot) cope for errors during remove. The
only effect of a non-zero return value in .remove() is that the driver
core emits a warning. The device is removed anyhow and an early return
from .remove() usually yields a resource leak.

By changing the remove callback to return void driver authors cannot
reasonably assume any more that there is some kind of cleanup later.

The first two patches are simplifications that make it obvious that all
remove callbacks always return zero. After that all drivers can be
converted trivially.

Best regards
Uwe

Uwe Kleine-König (12):
  gpu: host1x: Make host1x_client_unregister() return void
  drm/tegra: rgb: Make tegra_dc_rgb_remove() return void
  drm/tegra: dc: Convert to platform remove callback returning void
  drm/tegra: dpaux: Convert to platform remove callback returning void
  drm/tegra: dsi: Convert to platform remove callback returning void
  drm/tegra: gr2d: Convert to platform remove callback returning void
  drm/tegra: gr3d: Convert to platform remove callback returning void
  drm/tegra: hdmi: Convert to platform remove callback returning void
  drm/tegra: hub: Convert to platform remove callback returning void
  drm/tegra: nvdec: Convert to platform remove callback returning void
  drm/tegra: sor: Convert to platform remove callback returning void
  drm/tegra: vic: Convert to platform remove callback returning void

 drivers/gpu/drm/tegra/dc.c              | 20 ++++----------------
 drivers/gpu/drm/tegra/dc.h              |  2 +-
 drivers/gpu/drm/tegra/dpaux.c           |  6 ++----
 drivers/gpu/drm/tegra/dsi.c             | 14 +++-----------
 drivers/gpu/drm/tegra/gr2d.c            | 14 +++-----------
 drivers/gpu/drm/tegra/gr3d.c            | 14 +++-----------
 drivers/gpu/drm/tegra/hdmi.c            | 14 +++-----------
 drivers/gpu/drm/tegra/hub.c             | 13 +++----------
 drivers/gpu/drm/tegra/nvdec.c           | 14 +++-----------
 drivers/gpu/drm/tegra/rgb.c             |  6 ++----
 drivers/gpu/drm/tegra/sor.c             | 14 +++-----------
 drivers/gpu/drm/tegra/vic.c             | 14 +++-----------
 drivers/gpu/host1x/bus.c                |  6 ++----
 drivers/staging/media/tegra-video/csi.c |  8 +-------
 drivers/staging/media/tegra-video/vi.c  |  8 +-------
 include/linux/host1x.h                  |  2 +-
 16 files changed, 38 insertions(+), 131 deletions(-)

base-commit: fe15c26ee26efa11741a7b632e9f23b01aca4cc6
-- 
2.39.2


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

end of thread, other threads:[~2023-04-04 12:20 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-22 17:02 [PATCH 00/12] drm/tegra: Convert to platform remove callback returning void Uwe Kleine-König
2023-03-22 17:02 ` [PATCH 01/12] gpu: host1x: Make host1x_client_unregister() return void Uwe Kleine-König
2023-03-27  7:17   ` Hans Verkuil
2023-03-22 17:02 ` [PATCH 02/12] drm/tegra: rgb: Make tegra_dc_rgb_remove() " Uwe Kleine-König
2023-03-22 17:02 ` [PATCH 03/12] drm/tegra: dc: Convert to platform remove callback returning void Uwe Kleine-König
2023-03-22 17:02 ` [PATCH 04/12] drm/tegra: dpaux: " Uwe Kleine-König
2023-03-22 17:02 ` [PATCH 05/12] drm/tegra: dsi: " Uwe Kleine-König
2023-03-22 17:02 ` [PATCH 06/12] drm/tegra: gr2d: " Uwe Kleine-König
2023-03-22 17:02 ` [PATCH 07/12] drm/tegra: gr3d: " Uwe Kleine-König
2023-03-22 17:02 ` [PATCH 08/12] drm/tegra: hdmi: " Uwe Kleine-König
2023-03-22 17:02 ` [PATCH 09/12] drm/tegra: hub: " Uwe Kleine-König
2023-03-22 17:02 ` [PATCH 10/12] drm/tegra: nvdec: " Uwe Kleine-König
2023-03-22 17:02 ` [PATCH 11/12] drm/tegra: sor: " Uwe Kleine-König
2023-03-22 17:02 ` [PATCH 12/12] drm/tegra: vic: " Uwe Kleine-König
2023-04-04 12:14 ` [PATCH 00/12] drm/tegra: " Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).