From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753885AbaCKJqt (ORCPT ); Tue, 11 Mar 2014 05:46:49 -0400 Received: from service87.mimecast.com ([91.220.42.44]:48931 "EHLO service87.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752972AbaCKJqr convert rfc822-to-8bit (ORCPT ); Tue, 11 Mar 2014 05:46:47 -0400 Date: Tue, 11 Mar 2014 09:46:41 +0000 From: Liviu Dudau To: Arnd Bergmann Cc: "linux-arm-kernel@lists.infradead.org" , Liviu Dudau , "devicetree@vger.kernel.org" , linaro-kernel , Benjamin Herrenschmidt , linux-pci , LKML , Will Deacon , Tanmay Inamdar , Catalin Marinas , Bjorn Helgaas Subject: Re: [PATCH v6 6/6] pci: Add support for creating a generic host_bridge from device tree Message-ID: <20140311094641.GA27064@e106497-lin.cambridge.arm.com> Mail-Followup-To: Arnd Bergmann , "linux-arm-kernel@lists.infradead.org" , Liviu Dudau , "devicetree@vger.kernel.org" , linaro-kernel , Benjamin Herrenschmidt , linux-pci , LKML , Will Deacon , Tanmay Inamdar , Catalin Marinas , Bjorn Helgaas References: <1394020137-1830-1-git-send-email-Liviu.Dudau@arm.com> <1469359.kil5iaOqdU@wuerfel> <20140310215600.GA14968@bart.dudau.co.uk> <4254618.BlpDUOctDb@wuerfel> MIME-Version: 1.0 In-Reply-To: <4254618.BlpDUOctDb@wuerfel> User-Agent: Mutt/1.5.22 (2013-10-16) X-OriginalArrivalTime: 11 Mar 2014 09:46:42.0559 (UTC) FILETIME=[CECFB8F0:01CF3D0E] X-MC-Unique: 114031109464504601 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 11, 2014 at 06:50:24AM +0000, Arnd Bergmann wrote: > On Monday 10 March 2014 21:56:00 Liviu Dudau wrote: > > > > PCI_IOBASE is always defined. See the discussion with Russell on this subject. > > > > include/asm-generic/io.h has at line 118: > > > > #ifndef PCI_IOBASE > > #define PCI_IOBASE ((void __iomem *) 0) > > #endif > > That is only defined for those that use asm-generic/pci.h, which most architectures > don't. I think it is defined for anyone that #includes . There is no other #ifdef around that. > > > I will go with my idea tomorrow. arm64 overwrite the implementation anyway, I > > find it cleaner rather than having to do #ifdefs and/or ifs. > > I'd really hope we can get to a point where arm64 doesn't need any architecture > specific code for this. It doesn't do anything special. I agree. Best regards, Liviu > > Arnd > > -- ==================== | I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --------------- ¯\_(ツ)_/¯