All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/12] drm/tinydrm: Remove tinydrm_device
@ 2019-02-10 13:10 Noralf Trønnes
  2019-02-10 13:10 ` [PATCH v2 01/12] drm/drv: Hold ref on parent device during drm_device lifetime Noralf Trønnes
                   ` (11 more replies)
  0 siblings, 12 replies; 21+ messages in thread
From: Noralf Trønnes @ 2019-02-10 13:10 UTC (permalink / raw)
  To: dri-devel; +Cc: daniel.vetter, david

This patchset is part of the effort to remove tinydrm.ko. It removes
struct tinydrm_device and tinydrm.h.

Main changes in this version:

Take a ref on the parent device for the drm_device lifetime.

Drop devm_drm_dev_register() and add driver remove callbacks. The reason
is that drm_atomic_helper_shutdown() must be called after unregister and
it's not allowed to touch hardware in a devm release action.

Drop drm_simple_connector. I couldn't do rotation the proposed way so I
need more time to sort it out.

I've also started on a driver example for the documentation.

Note:
The series depends on this:

drm/drv: Rework drm_dev_unplug()
https://patchwork.freedesktop.org/series/56406/

Noralf.

Noralf Trønnes (12):
  drm/drv: Hold ref on parent device during drm_device lifetime
  drm: Add devm_drm_dev_init()
  drm/drv: DOC: Add driver example code
  drm/modes: Add DRM_SIMPLE_MODE()
  drm/tinydrm: tinydrm_display_pipe_init() don't use tinydrm_device
  drm/tinydrm: Remove tinydrm_shutdown()
  drm/tinydrm/mipi-dbi: Add drm_to_mipi_dbi()
  drm/tinydrm/repaper: Drop using tinydrm_device
  drm/tinydrm: Drop using tinydrm_device
  drm/tinydrm: Remove tinydrm_device
  drm/tinydrm: Use drm_dev_enter/exit()
  drm/fb-helper: generic: Don't take module ref for fbcon

 Documentation/driver-model/devres.txt         |   3 +
 Documentation/gpu/tinydrm.rst                 |  32 +--
 Documentation/gpu/todo.rst                    |   4 -
 drivers/gpu/drm/drm_drv.c                     | 162 +++++++++++++++-
 drivers/gpu/drm/drm_fb_helper.c               |   6 +-
 drivers/gpu/drm/tinydrm/core/Makefile         |   2 +-
 drivers/gpu/drm/tinydrm/core/tinydrm-core.c   | 183 ------------------
 .../gpu/drm/tinydrm/core/tinydrm-helpers.c    |   2 +
 drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c   |  24 +--
 drivers/gpu/drm/tinydrm/hx8357d.c             |  59 ++++--
 drivers/gpu/drm/tinydrm/ili9225.c             |  81 ++++++--
 drivers/gpu/drm/tinydrm/ili9341.c             |  59 ++++--
 drivers/gpu/drm/tinydrm/mi0283qt.c            |  67 +++++--
 drivers/gpu/drm/tinydrm/mipi-dbi.c            | 118 +++++++----
 drivers/gpu/drm/tinydrm/repaper.c             | 144 ++++++++++----
 drivers/gpu/drm/tinydrm/st7586.c              | 145 ++++++++------
 drivers/gpu/drm/tinydrm/st7735r.c             |  59 ++++--
 include/drm/drm_drv.h                         |   3 +
 include/drm/drm_modes.h                       |  17 ++
 include/drm/tinydrm/mipi-dbi.h                |  27 ++-
 include/drm/tinydrm/tinydrm-helpers.h         |  13 ++
 include/drm/tinydrm/tinydrm.h                 |  75 -------
 22 files changed, 762 insertions(+), 523 deletions(-)
 delete mode 100644 drivers/gpu/drm/tinydrm/core/tinydrm-core.c
 delete mode 100644 include/drm/tinydrm/tinydrm.h

-- 
2.20.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2019-02-12 14:37 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-10 13:10 [PATCH v2 00/12] drm/tinydrm: Remove tinydrm_device Noralf Trønnes
2019-02-10 13:10 ` [PATCH v2 01/12] drm/drv: Hold ref on parent device during drm_device lifetime Noralf Trønnes
2019-02-10 13:10 ` [PATCH v2 02/12] drm: Add devm_drm_dev_init() Noralf Trønnes
2019-02-10 13:10 ` [PATCH v2 03/12] drm/drv: DOC: Add driver example code Noralf Trønnes
2019-02-10 21:03   ` Sam Ravnborg
2019-02-12 13:20     ` Noralf Trønnes
2019-02-12 14:06   ` Daniel Vetter
2019-02-12 14:37     ` Noralf Trønnes
2019-02-10 13:10 ` [PATCH v2 04/12] drm/modes: Add DRM_SIMPLE_MODE() Noralf Trønnes
2019-02-10 21:05   ` Sam Ravnborg
2019-02-10 13:10 ` [PATCH v2 05/12] drm/tinydrm: tinydrm_display_pipe_init() don't use tinydrm_device Noralf Trønnes
2019-02-10 21:08   ` Sam Ravnborg
2019-02-10 13:10 ` [PATCH v2 06/12] drm/tinydrm: Remove tinydrm_shutdown() Noralf Trønnes
2019-02-10 13:10 ` [PATCH v2 07/12] drm/tinydrm/mipi-dbi: Add drm_to_mipi_dbi() Noralf Trønnes
2019-02-10 13:10 ` [PATCH v2 08/12] drm/tinydrm/repaper: Drop using tinydrm_device Noralf Trønnes
2019-02-10 21:25   ` Sam Ravnborg
2019-02-10 13:10 ` [PATCH v2 09/12] drm/tinydrm: " Noralf Trønnes
2019-02-10 21:27   ` Sam Ravnborg
2019-02-10 13:10 ` [PATCH v2 10/12] drm/tinydrm: Remove tinydrm_device Noralf Trønnes
2019-02-10 13:10 ` [PATCH v2 11/12] drm/tinydrm: Use drm_dev_enter/exit() Noralf Trønnes
2019-02-10 13:10 ` [PATCH v2 12/12] drm/fb-helper: generic: Don't take module ref for fbcon Noralf Trønnes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.