Re: [PATCH 1/7] mfd: max8925: Move _IO resources out of ioport_ioresource

Haojian Zhuang
2012-08-08T15:20:20Z

On Wed, Aug 8, 2012 at 3:46 AM, Arnd Bergmann <arnd@arndb.de> wrote:
> On Tuesday 07 August 2012, Mark Brown wrote:
>> The removal of mach/io.h from most ARM platforms also set the range of
>> valid IO ports to be empty for most platforms when previously any 32
>> bit integer had been valid. This makes it impossible to add IO resources
>> as the added range is smaller than that of the root resource for IO ports.
>>
>> Since we're not really using IO memory at all fix this by defining our
>> own root resource outside the normal tree and make that the parent of
>> all IO resources. This also ensures we won't conflict with read IO ports
>> if we ever run on a platform which happens to use them.
>>
>> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
>> Cc: stable@vger.kernel.org (v3.4+)
>
> (whole series)
>
> Acked-by: Arnd Bergmann <arnd@arndb.de>
>
Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Tested-by: Haojian Zhuang <haojian.zhuang@gmail.com>

And I also attached my 3 patches for 88pm860x since the old self-defined
IORESOURCE_IO should be changed to register offset (IORESOURCE_REG).
Otherwise, it still fails in my platform.

Regards
Haojian