[PATCH v3 0/4] drm/tegra: Remove host1x drm_bus implementation

Thierry Reding thierry.reding at gmail.com
Thu May 22 03:21:20 PDT 2014


From: Thierry Reding <treding at nvidia.com>

This series of patches gets rid of the host1x drm_bus implementation in
Tegra DRM. It introduces a drm_dev_set_unique() function that is used to
statically set the unique name of the device, thereby eliminating the
last remaining need for drm_bus.

There are also a couple of patches to update documentation and explain
how other drivers can use the same mechanism to get rid of the drm_bus
midlayer. This should be easy to do for both drm_platform and drm_usb,
but drm_pci is still a special case, though Daniel Vetter has plans on
how to get rid of drm_bus for PCI drivers too.

Compared to v2 I've left out the conversion to the component helpers
because nobody could be bothered to look at the patches. As a result
I've decided to stick with the existing implementation that has proven
to work equally well.

Thierry

Thierry Reding (4):
  drm: Introduce drm_dev_set_unique()
  drm: Add device registration documentation
  drm: Document how to register devices without struct drm_bus
  drm/tegra: Remove host1x drm_bus implementation

 Documentation/DocBook/drm.tmpl | 36 +++++++++++++++++++
 drivers/gpu/drm/drm_ioctl.c    | 24 +++++++++----
 drivers/gpu/drm/drm_pci.c      | 80 ++++++++++++++++++++----------------------
 drivers/gpu/drm/drm_platform.c | 15 ++++----
 drivers/gpu/drm/drm_stub.c     | 48 +++++++++++++++++++------
 drivers/gpu/drm/drm_usb.c      | 20 ++++++++++-
 drivers/gpu/drm/tegra/Makefile |  1 -
 drivers/gpu/drm/tegra/bus.c    | 64 ---------------------------------
 drivers/gpu/drm/tegra/drm.c    | 35 +++++++++++++++---
 drivers/gpu/drm/tegra/drm.h    |  4 ---
 include/drm/drmP.h             |  2 ++
 11 files changed, 187 insertions(+), 142 deletions(-)
 delete mode 100644 drivers/gpu/drm/tegra/bus.c

-- 
1.9.2



More information about the dri-devel mailing list