From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753080AbaCFQEu (ORCPT ); Thu, 6 Mar 2014 11:04:50 -0500 Received: from service87.mimecast.com ([91.220.42.44]:39517 "EHLO service87.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751013AbaCFQEr convert rfc822-to-8bit (ORCPT ); Thu, 6 Mar 2014 11:04:47 -0500 Date: Thu, 6 Mar 2014 16:04:42 +0000 From: Liviu Dudau To: Arnd Bergmann Cc: linux-pci , Bjorn Helgaas , Catalin Marinas , Will Deacon , linaro-kernel , Benjamin Herrenschmidt , LKML , "devicetree@vger.kernel.org" , LAKML , Tanmay Inamdar Subject: Re: [PATCH v5 1/7] pci: Introduce pci_register_io_range() helper function. Message-ID: <20140306160442.GG6457@e106497-lin.cambridge.arm.com> Mail-Followup-To: Arnd Bergmann , linux-pci , Bjorn Helgaas , Catalin Marinas , Will Deacon , linaro-kernel , Benjamin Herrenschmidt , LKML , "devicetree@vger.kernel.org" , LAKML , Tanmay Inamdar References: <1393948204-11555-1-git-send-email-Liviu.Dudau@arm.com> <1393948204-11555-2-git-send-email-Liviu.Dudau@arm.com> <201403042330.09607.arnd@arndb.de> MIME-Version: 1.0 In-Reply-To: <201403042330.09607.arnd@arndb.de> User-Agent: Mutt/1.5.22 (2013-10-16) X-OriginalArrivalTime: 06 Mar 2014 16:04:43.0415 (UTC) FILETIME=[C996F270:01CF3955] X-MC-Unique: 114030616044600101 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 04, 2014 at 10:30:09PM +0000, Arnd Bergmann wrote: > On Tuesday 04 March 2014, Liviu Dudau wrote: > > +int __weak pci_register_io_range(phys_addr_t addr, resource_size_t size) > > +{ > > + return 0; > > +} > > + > > How about returning an error here? You don't actually register the range. That's not the intention here. I basically want a nop, as by default (read x86) we do nothing with the IO range. Best regards, Liviu > > Arnd > -- ==================== | I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --------------- ¯\_(ツ)_/¯