From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de ([212.227.17.13]:63936 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751809AbaGBTJ5 (ORCPT ); Wed, 2 Jul 2014 15:09:57 -0400 From: Arnd Bergmann To: Will Deacon Cc: Liviu Dudau , linux-pci , Bjorn Helgaas , Catalin Marinas , Benjamin Herrenschmidt , linaro-kernel , Tanmay Inamdar , Grant Likely , Sinan Kaya , Jingoo Han , Kukjin Kim , Suravee Suthikulanit , LKML , Device Tree ML , LAKML Subject: Re: [PATCH v8 8/9] pci: Add support for creating a generic host_bridge from device tree Date: Wed, 02 Jul 2014 21:09:06 +0200 Message-ID: <4233600.RyK6LJF6ZK@wuerfel> In-Reply-To: <20140702173113.GJ24879@arm.com> References: <1404240214-9804-1-git-send-email-Liviu.Dudau@arm.com> <20140702172355.GQ2173@e106497-lin.cambridge.arm.com> <20140702173113.GJ24879@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: linux-pci-owner@vger.kernel.org List-ID: On Wednesday 02 July 2014 18:31:13 Will Deacon wrote: > > > > + err = of_pci_parse_bus_range(parent->of_node, bus_range); > > > > + if (err) { > > > > + dev_info(parent, "No bus range for %s, using default [0-255]\n", > > > > + parent->of_node->full_name); > > > > + bus_range->start = 0; > > > > + bus_range->end = 255; > > > > + bus_range->flags = IORESOURCE_BUS; > > > > > > What about bus_range->name? > > > > Don't know! Is anyone using it? > > I guess /proc/iomem prints it out? I set it in my current driver, if you > want to take a look. I don't think the bus resources show up anywhere in procfs. Anyway, it's always a good idea to give resources a name, if only for debugging purposes. Arnd