Re: [PATCH 1/2] regulator: pbias: use untranslated address to program pbias regulator

From: Kishon Vijay Abraham I
Date: Mon Aug 31 2015 - 06:44:19 EST


Hi Mark,

On Tuesday 25 August 2015 07:20 PM, Mark Brown wrote:
> On Tue, Aug 25, 2015 at 01:03:04PM +0300, Grygorii Strashko wrote:
>> On 08/19/2015 09:11 PM, Mark Brown wrote:
>
>>> So substract this address from the start of the resource to get the
>>> offset? Or provide a wrapper function in the resource code which does
>>> that.
>
>> I'd be very appreciated if you have and can share any thought on
>> How can we get this absolute base address to substract?
>
> Ask the syscon device for its resource? Or have it provide an absolute

Even if we get the absolute address of syscon, we have to do the
subtraction only for the newer dtbs (previous dtbs already have only the
offset). Do you recommend adding a new property to differentiate between
older dtbs and newer dtbs? Any other suggestions here?

> address based interface for that matter?

Syscon doesn't directly expose any API's to write to it's register.
Rather it uses regmap APIs to read/write to it's register. I'm not sure
if it's possible to add regmap APIs to write to a register with absolute
address. Any hints?

Thanks
Kishon
--
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/