Re: [PATCH 0/5] mfd: replace IORESOURCE_IO by IORESOURCE_MEM

From: Mark Brown
Date: Tue Aug 07 2012 - 06:38:47 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/