[PATCH] of: add ranges address translation for default bus

Sebastian Hesselbarth sebastian.hesselbarth at gmail.com
Thu Jun 13 05:38:19 EDT 2013

On 06/13/13 11:25, Sascha Hauer wrote:
> On Tue, Jun 11, 2013 at 11:33:06AM +0200, Sebastian Hesselbarth wrote:
>> I started merging already, and from what I can see we should just remove
>> the spinlocks and OF_DYNAMIC stuff (but leave of_node_get/_put as stubs)
> Sounds like a plan. Functions existing both in barebox and Linux should
> behave the same way. However, if Linux turns out to do something silly
> or (for our usecase) too bloated, we shouldn't do the same just because
> Linux does it.
> I want to keep the Linux list usage in the devicetree, so they won't be
> really in sync.

Ok, I started converting and doing it in a clean way is kind of tricky.

First of all, allyesconfig doesn't build - so it is hard to find and
re-build all users of current of_* functions.

If you want to stick with list usage, it will end up with converting
instead of just move current functions out of the way, import Linux
OF, and switch users to that functions.

I will have a look at it, find users/abusers of current API and see
how much we can merge.

You also want to stick with of_set_* and friends within base.c or
move them out to some other source file where all set/modify functions
will sit in?


More information about the barebox mailing list