[PATCH 1/2] mfd: max8925: request resource region

Arnd Bergmann arnd at arndb.de
Wed May 9 10:19:50 EDT 2012


On Wednesday 09 May 2012, Mark Brown wrote:
> It does result in the really odd situation that the number that gets
> stored in the resource is the register number plus an offset.  If
> anything I'd expect that the resources would be defined so you had to
> add the parent base address with the child resource being the offset
> within the parent resource.  Though to be honest the parent resource is
> almost always going to be numbered from zero so it's not going to make
> much difference most of the time.

But that's not how any of the other resources work: AFAICT, each resource
type makes up an address space with unique ranges assigned to each 
sibling and sub-ranges inside of that for its children.

	Arnd



More information about the linux-arm-kernel mailing list