From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Subject: Re: address translation for PCIe-to-localbus bridge Date: Tue, 12 Nov 2013 08:05:12 +0100 Message-ID: <20131112080512.3992b2e4@skate> References: <527A1983.6020603@keymile.com> <20131106173649.GA25515@obsidianresearch.com> <20131106190308.01f7a4a9@skate> <20131106182457.GA25879@obsidianresearch.com> <20131111155050.96290C41ABB@trevor.secretlab.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20131111155050.96290C41ABB-WNowdnHR2B42iJbIjFUEsiwD8/FfD2ys@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Grant Likely Cc: Jason Gunthorpe , Lior Amsalem , "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Thierry Reding , Gerlando Falauto , Ezequiel Garcia , Gregory Cl??ment , "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" List-Id: devicetree@vger.kernel.org Dear Grant Likely, On Mon, 11 Nov 2013 15:50:50 +0000, Grant Likely wrote: > > So the mbus would register an address xlate for its node that is > > called instead of ranges parsing. For the example in my last message > > the FPGA driver would register an xlate that made addresses relative > > to its own BAR0 address. > > There are already bus-specific transations available. Take a look at > struct of_bus in drivers/of/address.c Hum, right, but unless I'm wrong the of_busses[] array of struct of_bus is fixed in drivers/of/address.c, and as it is, there is no way for a specific bus driver to provide its own struct of_bus. So that would need to be extended, right? Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html