lkml.org 
[lkml]   [2012]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/5] mfd: replace IORESOURCE_IO by IORESOURCE_MEM
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).


\
 
 \ /
  Last update: 2012-08-07 13:21    [from the cache]
©2003-2011 Jasper Spaans