dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/14] drm/panel: Use refcounted allocation in place of devm_kzalloc() - Part5
@ 2025-07-11  4:31 Anusha Srivatsa
  2025-07-11  4:31 ` [PATCH 01/14] drm/panel/lq101r1sx01: Use refcounted allocation in place of devm_kzalloc() Anusha Srivatsa
                   ` (14 more replies)
  0 siblings, 15 replies; 17+ messages in thread
From: Anusha Srivatsa @ 2025-07-11  4:31 UTC (permalink / raw)
  To: Neil Armstrong, Jessica Zhang, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Simona Vetter, Florian Fainelli,
	Broadcom internal kernel review list, Sumit Semwal,
	Casey Connolly, Jerry Han
  Cc: dri-devel, linux-kernel, linux-rpi-kernel, linux-arm-kernel,
	Anusha Srivatsa

Use the new API devm_drm_panel_alloc() for panel allocations.
A major chunk of driver conversion was sent in a 3 part series
which is already merged. The coccinelle patch that was used to
identify unsafe panel allocations didnt flag about 20 drivers.

Not using any semantic patch for the remaining drivers.
This series does the conversion by not passing explicit type
to the helper and maintaining type safety suggested by Geert.

Link to part 1, 2 and 3 of driver conversion:
https://patchwork.freedesktop.org/series/147082/
https://patchwork.freedesktop.org/series/147157/
https://patchwork.freedesktop.org/series/147246/

Link to part 4 that incorporates type safety:
https://patchwork.freedesktop.org/series/151355/

Geert's suggestion
https://lore.kernel.org/dri-devel/CAN9Xe3TXZa1nrCLkHadiBkOO=q1ue8Jwc3V13pXcbAc9AFS2-Q@mail.gmail.com/

This is the final set of drivers.

A total of 86 drivers covered in part 1, 2 and 3 are converted
by passing explicit type and is not type safe. Changes to those
will be addressed in the upcoming series.

Signed-off-by: Anusha Srivatsa <asrivats@redhat.com>
---
Anusha Srivatsa (14):
      drm/panel/lq101r1sx01:  Use refcounted allocation in place of devm_kzalloc()
      drm/panel/raspberrypi: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/vvx10f034n00: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/osd101t2587-53ts: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/novatek-nt36672a: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/lg-sw43408: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/kd097d04: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/khadas-ts050: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/jdi-lt070me05000: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/lpm102a188a: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/ilitek-ili9882t: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/himax-hx83102: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/boe-tv101wum-nl6: Use refcounted allocation in place of devm_kzalloc()
      drm/panel/boe-himax8279d: Use refcounted allocation in place of devm_kzalloc()

 drivers/gpu/drm/panel/panel-boe-himax8279d.c          | 11 +++++------
 drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c        | 10 +++++-----
 drivers/gpu/drm/panel/panel-himax-hx83102.c           | 10 +++++-----
 drivers/gpu/drm/panel/panel-ilitek-ili9882t.c         | 10 +++++-----
 drivers/gpu/drm/panel/panel-jdi-lpm102a188a.c         | 12 ++++++------
 drivers/gpu/drm/panel/panel-jdi-lt070me05000.c        | 11 +++++------
 drivers/gpu/drm/panel/panel-khadas-ts050.c            | 13 ++++++-------
 drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c    | 12 ++++++------
 drivers/gpu/drm/panel/panel-lg-sw43408.c              | 10 +++++-----
 drivers/gpu/drm/panel/panel-novatek-nt36672a.c        | 10 +++++-----
 drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c    | 12 ++++++------
 drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c  | 12 ++++++------
 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c | 12 ++++++------
 drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c       | 11 +++++------
 14 files changed, 76 insertions(+), 80 deletions(-)
---
base-commit: bead8800222768dab1a421206350d530b0c45254
change-id: 20250710-b4-driver-convert-last-part-july-34db91cbdf7a

Best regards,
-- 
Anusha Srivatsa <asrivats@redhat.com>


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

end of thread, other threads:[~2025-07-17  3:14 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-11  4:31 [PATCH 00/14] drm/panel: Use refcounted allocation in place of devm_kzalloc() - Part5 Anusha Srivatsa
2025-07-11  4:31 ` [PATCH 01/14] drm/panel/lq101r1sx01: Use refcounted allocation in place of devm_kzalloc() Anusha Srivatsa
2025-07-11  4:31 ` [PATCH 02/14] drm/panel/raspberrypi: " Anusha Srivatsa
2025-07-11  4:31 ` [PATCH 03/14] drm/panel/vvx10f034n00: " Anusha Srivatsa
2025-07-11  4:31 ` [PATCH 04/14] drm/panel/osd101t2587-53ts: " Anusha Srivatsa
2025-07-11  4:31 ` [PATCH 05/14] drm/panel/novatek-nt36672a: " Anusha Srivatsa
2025-07-11  4:31 ` [PATCH 06/14] drm/panel/lg-sw43408: " Anusha Srivatsa
2025-07-11  4:31 ` [PATCH 07/14] drm/panel/kd097d04: " Anusha Srivatsa
2025-07-11  4:31 ` [PATCH 08/14] drm/panel/khadas-ts050: " Anusha Srivatsa
2025-07-11  4:31 ` [PATCH 09/14] drm/panel/jdi-lt070me05000: " Anusha Srivatsa
2025-07-11  4:31 ` [PATCH 10/14] drm/panel/lpm102a188a: " Anusha Srivatsa
2025-07-11  4:31 ` [PATCH 11/14] drm/panel/ilitek-ili9882t: " Anusha Srivatsa
2025-07-11  4:31 ` [PATCH 12/14] drm/panel/himax-hx83102: " Anusha Srivatsa
2025-07-11  4:31 ` [PATCH 13/14] drm/panel/boe-tv101wum-nl6: " Anusha Srivatsa
2025-07-11  4:31 ` [PATCH 14/14] drm/panel/boe-himax8279d: " Anusha Srivatsa
2025-07-16 15:37 ` [PATCH 00/14] drm/panel: Use refcounted allocation in place of devm_kzalloc() - Part5 Maxime Ripard
2025-07-17  2:09   ` Anusha Srivatsa

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).