public inbox for linux-mediatek@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH v4 0/9] MediaTek DRM - DSI driver cleanups
@ 2024-02-06 12:07 AngeloGioacchino Del Regno
  2024-02-06 12:07 ` [PATCH v4 1/9] drm/mediatek: dsi: Use GENMASK() for register mask definitions AngeloGioacchino Del Regno
                   ` (8 more replies)
  0 siblings, 9 replies; 21+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-02-06 12:07 UTC (permalink / raw)
  To: chunkuang.hu
  Cc: p.zabel, linux-kernel, dri-devel, linux-mediatek, daniel,
	matthias.bgg, kernel, airlied, linux-arm-kernel,
	angelogioacchino.delregno

Changes in v4:
 - Added a fix for RGB666 formats setting and for wrong register
   definitions for packed vs loosely packed formats
 - Added a commit to make use of mipi_dsi_pixel_format_to_bpp() helper
   instead of open coding the same

Changes in v3:
 - Rebased over next-20240131
 - Added bitfield.h inclusion in patch 3
 - Added three more cleanup commits to the mix to simplify
   the probe function and remove gotos.

Changes in v2:
 - Rebased over next-20231213

This series performs some cleanups for mtk_dsi, enhancing human
readability, using kernel provided macros where possible and
also reducing code size.

Tested on MT8173 and MT8192 Chromebooks (using a DSI<->DP bridge)
and on MT6795 Sony Xperia M5 (DSI video mode panel).

AngeloGioacchino Del Regno (9):
  drm/mediatek: dsi: Use GENMASK() for register mask definitions
  drm/mediatek: dsi: Fix DSI RGB666 formats and definitions
  drm/mediatek: dsi: Cleanup functions mtk_dsi_ps_control{_vact}()
  drm/mediatek: dsi: Use bitfield macros where useful
  drm/mediatek: dsi: Replace open-coded instance of HZ_PER_MHZ
  drm/mediatek: dsi: Register DSI host after acquiring clocks and PHY
  drm/mediatek: dsi: Simplify with dev_err_probe and remove gotos
  drm/mediatek: dsi: Compress of_device_id entries and add sentinel
  drm/mediatek: dsi: Use mipi_dsi_pixel_format_to_bpp() helper function

 drivers/gpu/drm/mediatek/mtk_dsi.c | 310 ++++++++++++-----------------
 1 file changed, 126 insertions(+), 184 deletions(-)

-- 
2.43.0



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

end of thread, other threads:[~2024-02-07  9:55 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-06 12:07 [PATCH v4 0/9] MediaTek DRM - DSI driver cleanups AngeloGioacchino Del Regno
2024-02-06 12:07 ` [PATCH v4 1/9] drm/mediatek: dsi: Use GENMASK() for register mask definitions AngeloGioacchino Del Regno
2024-02-06 14:47   ` Alexandre Mergnat
2024-02-06 15:53     ` AngeloGioacchino Del Regno
2024-02-07  9:55       ` Alexandre Mergnat
2024-02-06 12:07 ` [PATCH v4 2/9] drm/mediatek: dsi: Fix DSI RGB666 formats and definitions AngeloGioacchino Del Regno
2024-02-06 14:51   ` Alexandre Mergnat
2024-02-06 12:07 ` [PATCH v4 3/9] drm/mediatek: dsi: Cleanup functions mtk_dsi_ps_control{_vact}() AngeloGioacchino Del Regno
2024-02-06 14:57   ` Alexandre Mergnat
2024-02-06 12:07 ` [PATCH v4 4/9] drm/mediatek: dsi: Use bitfield macros where useful AngeloGioacchino Del Regno
2024-02-06 15:09   ` Alexandre Mergnat
2024-02-06 12:07 ` [PATCH v4 5/9] drm/mediatek: dsi: Replace open-coded instance of HZ_PER_MHZ AngeloGioacchino Del Regno
2024-02-06 15:11   ` Alexandre Mergnat
2024-02-06 12:07 ` [PATCH v4 6/9] drm/mediatek: dsi: Register DSI host after acquiring clocks and PHY AngeloGioacchino Del Regno
2024-02-06 15:13   ` Alexandre Mergnat
2024-02-06 12:07 ` [PATCH v4 7/9] drm/mediatek: dsi: Simplify with dev_err_probe and remove gotos AngeloGioacchino Del Regno
2024-02-06 15:20   ` Alexandre Mergnat
2024-02-06 12:07 ` [PATCH v4 8/9] drm/mediatek: dsi: Compress of_device_id entries and add sentinel AngeloGioacchino Del Regno
2024-02-06 15:21   ` Alexandre Mergnat
2024-02-06 12:07 ` [PATCH v4 9/9] drm/mediatek: dsi: Use mipi_dsi_pixel_format_to_bpp() helper function AngeloGioacchino Del Regno
2024-02-06 15:24   ` Alexandre Mergnat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox