Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753511Ab2HGKiz (ORCPT ); Tue, 7 Aug 2012 06:38:55 -0400 Received: from opensource.wolfsonmicro.com ([80.75.67.52]:48670 "EHLO opensource.wolfsonmicro.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752663Ab2HGKiy (ORCPT ); Tue, 7 Aug 2012 06:38:54 -0400 Date: Tue, 7 Aug 2012 11:38:51 +0100 From: Mark Brown To: Haojian Zhuang Cc: Russell King , sameo@linux.intel.com, rpurdie@rpsys.net, bryan.wu@canonical.com, linux-kernel@vger.kernel.org, Bergmann Arnd Subject: Re: [PATCH 0/5] mfd: replace IORESOURCE_IO by IORESOURCE_MEM Message-ID: <20120807103851.GS16861@opensource.wolfsonmicro.com> References: <20120806143016.GK16861@opensource.wolfsonmicro.com> <20120806154619.GO16861@opensource.wolfsonmicro.com> <20120806155805.GR16861@opensource.wolfsonmicro.com> <20120806192209.GA14594@flint.arm.linux.org.uk> <20120806195352.GC16199@opensource.wolfsonmicro.com> <20120806213124.GB14594@flint.arm.linux.org.uk> <20120806220032.GD26698@opensource.wolfsonmicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Cookie: You will be married within a year. User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 912 Lines: 19 On Tue, Aug 07, 2012 at 09:47:25AM +0800, Haojian Zhuang wrote: > It's because IO_SPACE_LIMIT is set as 0 if there's no PCI devices. But > IORESOURCE_IO is also used in PMIC mfd drivers to distinguish > different components. The change to keep things working here (pending the other changes which Russell wants) is to add a dummy resource with a wide enough range of registers defined and make it the parent for all the _IO resouces the PMIC has. This will put all the PMIC _IO resources in a separate tree to ioport_resource which can have the resorces added. If nothing else this seems much more suitable for stable and -rc (the bug has been there since v3.4). -- 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/