Thread (11 messages) 11 messages, 4 authors, 2015-08-20

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

From: Tony Lindgren <tony@atomide.com>
Date: 2015-08-05 09:47:23
Also in: linux-omap, lkml

* Kishon Vijay Abraham I [off-list ref] [150727 04:27]:
vsel_reg and enable_reg of the pbias regulator descriptor should actually
have the offset from syscon. However after the pbias device tree node
is moved as a child node of syscon, vsel_reg and enable_reg has the
absolute address because of the address translation that happens while
creating device from device tree node.
So avoid using platform_get_resource and use of_get_address in order to
get only the offset (untranslated address) and populate these in
vsel_reg and enable_reg.
I think this gets fixed automatically with your other series
adding the "simple-bus" to the nodes. For the children of_ioremap
and friends should do the right thing, but without help from the bus
things won't work right without "simple-bus".

Regards,

Tony
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help