From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Reding Subject: [PATCH v3 0/4] drm/tegra: Remove host1x drm_bus implementation Date: Thu, 22 May 2014 12:21:20 +0200 Message-ID: <1400754084-25707-1-git-send-email-thierry.reding@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f51.google.com (mail-ee0-f51.google.com [74.125.83.51]) by gabe.freedesktop.org (Postfix) with ESMTP id 422E36EB9C for ; Thu, 22 May 2014 03:23:45 -0700 (PDT) Received: by mail-ee0-f51.google.com with SMTP id e51so2382009eek.24 for ; Thu, 22 May 2014 03:23:44 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org From: Thierry Reding 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