[PATCH v2 0/8] drm/atmel-hlcdc: make more use of helpers

Ludovic Desroches posted 8 patches 1 month, 2 weeks ago
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c   | 32 ++---------
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c     | 40 +++++++------
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h     |  1 +
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c | 50 +++++-----------
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c  | 73 +++++++++++-------------
5 files changed, 75 insertions(+), 121 deletions(-)
[PATCH v2 0/8] drm/atmel-hlcdc: make more use of helpers
Posted by Ludovic Desroches 1 month, 2 weeks ago
Hi,

This set of patches is mostly about using available helpers when
possible to simplify the code and ease the maintenance.

There is a dependency on "drm/panel: simple: restore connector_type
fallback", otherwise the atmel-hlcdc driver may fail during the probe.

Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com>
---
Changes in v2:
- Fix patch 5 warning about uninitialized use of ret.
- Link to v1: https://lore.kernel.org/r/20251121-lcd_cleanup_mainline-v1-0-2587e6fe4d67@microchip.com

---
Ludovic Desroches (8):
      drm/atmel-hlcdc: use managed device resources for the display controller
      drm/atmel-hlcdc: add support for the nomodeset kernel parameter
      drm/atmel-hlcdc: use drmm_simple_encoder_alloc()
      drm/atmel-hlcdc: use drm_crtc_mask()
      drm/atmel-hlcdc: use devm_drm_of_get_bridge()
      drm/atmel-hlcdc: use drmm_crtc_alloc_with_planes()
      drm/atmel-hlcdc: use drmm_universal_plane_alloc()
      drm/atmel-hlcdc: destroy properly the plane state in the reset callback

 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c   | 32 ++---------
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c     | 40 +++++++------
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h     |  1 +
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c | 50 +++++-----------
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c  | 73 +++++++++++-------------
 5 files changed, 75 insertions(+), 121 deletions(-)
---
base-commit: 88cbd8ac379cf5ce68b7efcfd4d1484a6871ee0b
change-id: 20251121-lcd_cleanup_mainline-b6acc75b5a09

Best regards,
-- 
Ludovic Desroches <ludovic.desroches@microchip.com>
Re: [PATCH v2 0/8] drm/atmel-hlcdc: make more use of helpers
Posted by Manikandan.M@microchip.com 2 weeks, 3 days ago
On 18/12/25 6:55 pm, Ludovic Desroches wrote:
> Hi,
> 
> This set of patches is mostly about using available helpers when
> possible to simplify the code and ease the maintenance.
> 
> There is a dependency on "drm/panel: simple: restore connector_type
> fallback", otherwise the atmel-hlcdc driver may fail during the probe.
> 
> Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com>

Applied to drm-misc-next.

Thanks!
> ---
> Changes in v2:
> - Fix patch 5 warning about uninitialized use of ret.
> - Link to v1: https://lore.kernel.org/r/20251121-lcd_cleanup_mainline-v1-0-2587e6fe4d67@microchip.com
> 
> ---
> Ludovic Desroches (8):
>        drm/atmel-hlcdc: use managed device resources for the display controller
>        drm/atmel-hlcdc: add support for the nomodeset kernel parameter
>        drm/atmel-hlcdc: use drmm_simple_encoder_alloc()
>        drm/atmel-hlcdc: use drm_crtc_mask()
>        drm/atmel-hlcdc: use devm_drm_of_get_bridge()
>        drm/atmel-hlcdc: use drmm_crtc_alloc_with_planes()
>        drm/atmel-hlcdc: use drmm_universal_plane_alloc()
>        drm/atmel-hlcdc: destroy properly the plane state in the reset callback
> 
>   drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c   | 32 ++---------
>   drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c     | 40 +++++++------
>   drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h     |  1 +
>   drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c | 50 +++++-----------
>   drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c  | 73 +++++++++++-------------
>   5 files changed, 75 insertions(+), 121 deletions(-)
> ---
> base-commit: 88cbd8ac379cf5ce68b7efcfd4d1484a6871ee0b
> change-id: 20251121-lcd_cleanup_mainline-b6acc75b5a09
> 
> Best regards,

-- 
Thanks and Regards,
Manikandan M.