drm/mipi-dbi: Replace simple-display helpers with regular atomic helpers
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest16 patches 7 repliesIn review
- v216 patches 11 repliesSuperseded
- v1 RFC16 patches 11 repliesSuperseded
Changes in v3 from the cover letter
- fix uninitialized variables (David)
- improve documentation (David)
- clean up
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/16 | drm/mipi-dbi: Only modify planes on enabled CRTCsdrivers/ drivers/ drivers/ +8 more | +18 | 0 replies | |
| 2/16 | drm/mipi-dbi: Support custom pipelines with drm_mipi_dbi_dev_init()drivers/ include/ | +61 | 0 replies | |
| 3/16 | drm/mipi-dbi: Provide callbacks for atomic interfacesdrivers/ include/ | +242 | 0 replies | |
| 4/16 | drm/hx8357d: Use regular atomic helpers; drop simple-display helpersdrivers/ | +122 | 3 replies | |
| 5/16 | drm/ili9163: Use regular atomic helpers; drop simple-display helpersdrivers/ | +122 | 0 replies | |
| 6/16 | drm/ili9225: Use regular atomic helpers; drop simple-display helpersdrivers/ | +145 | 2 replies | |
| 7/16 | drm/ili9341: Use regular atomic helpers; drop simple-display helpersdrivers/ | +122 | 0 replies | |
| 8/16 | drm/ili9486: Use regular atomic helpers; drop simple-display helpersdrivers/ | +122 | 0 replies | |
| 9/16 | drm/mi0283qt: Use regular atomic helpers; drop simple-display helpersdrivers/ | +122 | 0 replies | |
| 10/16 | drm/panel-mipi-dbi: Use regular atomic helpers; drop simple-display helpersdrivers/ | +123 | 0 replies | |
| 11/16 | drm/st7586: Use regular atomic helpers; drop simple-display helpersdrivers/ | +139 | 0 replies | |
| 12/16 | drm/st7735r: Rename struct st7735r_priv to struct st7735r_devicedrivers/ | +10 | 0 replies | |
| 13/16 | drm/st7735r: Rename priv variable to st7735rdrivers/ | +9 | 0 replies | |
| 14/16 | drm/st7735r: Use regular atomic helpers; drop simple-display helpersdrivers/ | +106 | 0 replies | |
| 15/16 | drm/mipi-dbi: Remove simple-display helpers from mipi-dbidrivers/ include/ | +0 | 0 replies | |
| 16/16 | drm/simple-kms: Deprecate simple-kms helpersDocumentation/ Documentation/ Documentation/ +5 more | +39 | 0 replies |
Reviews trailers per patch
All 16 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | David Lechner | Dmitry Baryshkov |
|---|---|---|
| Series | R-b | |
| 1/16 | A-b | |
| 2/16 | A-b | |
| 3/16 | A-b | |
| 4/16 | A-b | |
| 5/16 | A-b | |
| 6/16 | A-b T-b | |
| 7/16 | A-b | |
| 8/16 | A-b | |
| 9/16 | A-b | |
| 10/16 | A-b T-b | |
| 11/16 | A-b T-b | |
| 12/16 | A-b | |
| 13/16 | A-b | |
| 14/16 | A-b | |
| 15/16 | A-b | |
| 16/16 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 00/16] drm/mipi-dbi: Replace simple-display helpers with regular atomic helpers
We keep getting new drivers based on the obsolete simple-display pipeline, such as the recent driver for st7789v panels. [1] But submitters cannot know, as the simple-display helpers are fully documented and still used in several places.
Hence, convert all the mipi-dbi drivers over to regular atomic helpers and remove simple-display support from mipi-dbi in this series. Then undocument the helpers and add TODO items for final their removal.
Patch 1 changes the mode-setting logic to get CRTC and panel updates into the correct order. This patch is probably the most fragile change in the series.
Patches 2 and 3 prepare mipi-dbi to allow for atomic helpers to be used.
Patches 5 to 14 update mipi-dbi drivers one by one. The st7735r driver requires some additional minor preparation. Overall, the refactoring is always the same.
Patches 15 and 16 clean up mipi-dbi and the simple-display helpers.
These patches need some testing, as I can only compile them. At least one of the drivers should be tried on hardware. Regressions should be easy to fix, as these changes are mostly refactoring jobs.
[1] https://lore.kernel.org/dri-devel/[email protected]/
v3:
- fix uninitialized variables (David)
- improve documentation (David)
- clean up
v2:
- fix connector initialization (David)
- remove unused variables (David)
- clean up
Thomas Zimmermann (16):
drm/mipi-dbi: Only modify planes on enabled CRTCs drm/mipi-dbi: Support custom pipelines with drm_mipi_dbi_dev_init() drm/mipi-dbi: Provide callbacks for atomic interfaces drm/hx8357d: Use regular atomic helpers; drop simple-display helpers drm/ili9163: Use regular atomic helpers; drop simple-display helpers drm/ili9225: Use regular atomic helpers; drop simple-display helpers drm/ili9341: Use regular atomic helpers; drop simple-display helpers drm/ili9486: Use regular atomic helpers; drop simple-display helpers drm/mi0283qt: Use regular atomic helpers; drop simple-display helpers drm/panel-mipi-dbi: Use regular atomic helpers; drop simple-display
helpers
drm/st7586: Use regular atomic helpers; drop simple-display helpers drm/st7735r: Rename struct st7735r_priv to struct st7735r_device drm/st7735r: Rename priv variable to st7735r
drm/st7735r: Use regular atomic helpers; drop simple-display helpers drm/mipi-dbi: Remove simple-display helpers from mipi-dbi drm/simple-kms: Deprecate simple-kms helpers
Documentation/gpu/drm-kms-helpers.rst | 12 - Documentation/gpu/introduction.rst | 6 - Documentation/gpu/todo.rst | 32 ++ drivers/gpu/drm/drm_crtc.c | 6 +- drivers/gpu/drm/drm_gem_atomic_helper.c | 22 -- drivers/gpu/drm/drm_mipi_dbi.c | 376 ++++++++---------------- drivers/gpu/drm/drm_modeset_helper.c | 3 - drivers/gpu/drm/drm_simple_kms_helper.c | 83 ------ drivers/gpu/drm/sitronix/st7586.c | 185 +++++++++--- drivers/gpu/drm/sitronix/st7735r.c | 142 +++++++-- drivers/gpu/drm/tiny/hx8357d.c | 138 ++++++++- drivers/gpu/drm/tiny/ili9163.c | 138 ++++++++- drivers/gpu/drm/tiny/ili9225.c | 192 +++++++++--- drivers/gpu/drm/tiny/ili9341.c | 138 ++++++++- drivers/gpu/drm/tiny/ili9486.c | 139 ++++++++- drivers/gpu/drm/tiny/mi0283qt.c | 138 ++++++++- drivers/gpu/drm/tiny/panel-mipi-dbi.c | 141 +++++++-- include/drm/drm_mipi_dbi.h | 145 +++++---- include/drm/drm_simple_kms_helper.h | 216 +------------- 19 files changed, 1397 insertions(+), 855 deletions(-)
base-commit: 0009f17b2480f65a0f569c87c8a99f95d7aefd0e
prerequisite-patch-id: c67e5d886a47b7d0266d81100837557fda34cb24
prerequisite-patch-id: a5a973e527c88a5b47053d7a72aefe0b550197cb
prerequisite-patch-id: 719d09751d38f5da743beed6266585ee063e1e29
prerequisite-patch-id: 5030de433a01c2e99056cadb676a8e2ba35f055a
prerequisite-patch-id: f7831e8fe81681bbe7fcd7b8455753f5ab4ada2d
Signature · 1 line
2.53.0