Skip to content

drm/komeda: Convert logging to drm_* helpers

Rahul Kumar dri-devel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 4 repliesIn review

Changes in v2 from the cover letter

- Corrected the use of dev_get_drvdata(); it returns struct komeda_drv *, not struct komeda_kms_dev *.
- Added komeda_drv.h to make struct komeda_drv available for logging conversion.
- Split the series into 3 small patches as requested.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/komeda: Add komeda_drv.h to make struct komeda_drv availabledrivers/gpu/drm/arm/display/komeda/komeda_drv.c drivers/gpu/drm/arm/display/komeda/komeda_drv.h+25 -50 replies
2/3drm/komeda: Convert logging in komeda_pipeline.c to drm_* with drm_device parameterdrivers/gpu/drm/arm/display/komeda/komeda_pipeline.c+42 -190 replies
3/3drm/komeda: Convert logging in d71_dev.c to drm_* with drm_device parameterdrivers/gpu/drm/arm/display/komeda/d71/d71_dev.c+17 -73 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] drm/komeda: Convert logging to drm_* helpers

This series converts Komeda logging from the legacy DRM_ERROR/WARN/INFO() and DRM_DEBUG() macros to the modern drm_*() helpers. The drm_*() helpers take a struct drm_device * and allow the DRM core to include device information in the log output. This improves readability and brings the driver in line with current DRM logging guidelines.

To support this conversion, a small Komeda internal header (komeda_drv.h) is introduced to provide access to struct komeda_drv where needed. No functional changes are intended.

Changes in v2:
- Corrected the use of dev_get_drvdata(); it returns struct komeda_drv *, not struct komeda_kms_dev *.
- Added komeda_drv.h to make struct komeda_drv available for logging conversion.
- Split the series into 3 small patches as requested.

Rahul Kumar (3):
drm/komeda: Add komeda_drv.h to make struct komeda_drv available drm/komeda: Convert logging in komeda_pipeline.c to drm_* with drm_device parameter
drm/komeda: Convert logging in d71_dev.c to drm_* with drm_device parameter

 .../gpu/drm/arm/display/komeda/d71/d71_dev.c  | 24 +++++---
 .../gpu/drm/arm/display/komeda/komeda_drv.c   |  6 +-
 .../gpu/drm/arm/display/komeda/komeda_drv.h   | 24 ++++++++
 .../drm/arm/display/komeda/komeda_pipeline.c  | 61 +++++++++++++------
 4 files changed, 84 insertions(+), 31 deletions(-)
 create mode 100644 drivers/gpu/drm/arm/display/komeda/komeda_drv.h
Signature · 1 line
2.43.0