From: Sascha Hauer Subject: Re: [PATCH] drm: cleanup device registration Date: Thu, 2 Feb 2012 13:34:02 +0100 Message-ID: <20120202123402.GZ1990@pengutronix.de> References: <1328183884-22972-1-git-send-email-s.hauer@pengutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [92.198.50.35]) by gabe.freedesktop.org (Postfix) with ESMTP id 214529F07C for ; Thu, 2 Feb 2012 04:34:09 -0800 (PST) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: David Airlie Cc: Inki Dae , dri-devel@lists.freedesktop.org, kernel@pengutronix.de List-Id: dri-devel@lists.freedesktop.org On Thu, Feb 02, 2012 at 07:05:00AM -0500, David Airlie wrote: > ----- Original Message ----- > > From: "Sascha Hauer" > > To: dri-devel@lists.freedesktop.org > > Cc: "Inki Dae" , kernel@pengutronix.de > > Sent: Thursday, 2 February, 2012 11:57:52 AM > > Subject: [PATCH] drm: cleanup device registration > > > > The non modesetting drm drivers currently use a handcrafted pci probe > > function. This requires the drm core to keep a list of registered > > devices > > for each driver. This series adds a probe function for the non > > modesetting > > drivers and removes the legacy probe code. The USB and platform > > drivers > > use the devices_list aswell which is unnecessary. This is also > > cleaned > > up in this series. > > No it can't work like this because we have conflicts between fb and drm drivers, so the DRM is required to do its own > probe if an fb driver for a device is already loaded. > > it can't use the PCI probe out of the box. I see. For example the i810 also has a framebuffer driver. Do you see a way to fix this except writing a kms driver for all legacy devices? Otherwise I would leave the pci part untouched and only keep the platform/USB pieces which I'm admittedly more interested in. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |