Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751192Ab3HSToG (ORCPT ); Mon, 19 Aug 2013 15:44:06 -0400 Received: from avon.wwwdotorg.org ([70.85.31.133]:54700 "EHLO avon.wwwdotorg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751115Ab3HSToE (ORCPT ); Mon, 19 Aug 2013 15:44:04 -0400 Message-ID: <5212757F.2080107@wwwdotorg.org> Date: Mon, 19 Aug 2013 13:43:59 -0600 From: Stephen Warren User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 MIME-Version: 1.0 To: Thierry Reding CC: Greg Kroah-Hartman , Grant Likely , Rob Herring , Hiroshi Doyu , Lorenzo Pieralisi , Sebastian Hesselbarth , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC 2/4] driver core: Allow early registration of devices References: <1376685563-1053-1-git-send-email-treding@nvidia.com> <1376685563-1053-3-git-send-email-treding@nvidia.com> <20130816210637.GC2198@kroah.com> <20130816215530.GA14464@mithrandir> <20130816220807.GA6848@kroah.com> <20130817111747.GB1536@mithrandir> In-Reply-To: <20130817111747.GB1536@mithrandir> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 992 Lines: 20 On 08/17/2013 05:17 AM, Thierry Reding wrote: ... > Well, the most obvious cases where early initialization is needed > are interrupt controllers and clocks. ... and IOMMUs, which apparently need to initialize before any devices whose transactions are routed through the IOMMU, in order to set themselves up as the IOMMU for the relevant devices. It's possible that the CPU-visible bus structure isn't a strict inverse/reverse of the device-visible bus-structure. A device may have CPU-visible registers on one bus segment, but inject master transactions onto an unrelated bus segment. So it may not be as simple as making a bus driver for the bus segment affected by the IOMMU, and having that driver trigger instantiation of all its children. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/