Re: [RFC v2 2/3] pinctrl: imx: use radix trees for groups and functions

From: Linus Walleij
Date: Fri Dec 30 2016 - 08:21:14 EST

n Thu, Dec 29, 2016 at 10:44 AM, Gary Bisson
<gary.bisson@xxxxxxxxxxxxxxxxxxx> wrote:
> On Tue, Dec 27, 2016 at 11:07 PM, Linus Walleij
> <linus.walleij@xxxxxxxxxx> wrote:
>> On Fri, Dec 2, 2016 at 5:35 PM, Gary Bisson
>> <gary.bisson@xxxxxxxxxxxxxxxxxxx> wrote:
>> > This change is inspired from the pinctrl-single architecture.
>> >
>> > The problem with current implementation is that it isn't possible
>> > to add/remove functions and/or groups dynamically. The radix tree
>> > offers an easy way to do so. The intent is to offer a follow-up
>> > patch later that will enable the use of pinctrl nodes in dt-overlays.
>> >
>> > Signed-off-by: Gary Bisson <gary.bisson@xxxxxxxxxxxxxxxxxxx>
>> This patch doesn't apply on v4.10-rc1 so please rebase it
>> on the mainline and resend as v3, include Fabio's review tag.
> Actually it applies if the first patch of this v2 series is also applied first.

Heh if it is part of a patch series then send it as part of the series
and don't confuse me ;)

> The 3rd patch of the series can be discarded though since it was just
> an example to show the benefit of the first two.
> I guess someone needs to also ack/review the first one. Because
> switching to radix tree keeping the const qualifier of the driver
> structure isn't really useful.

Sure, Fabio?

Linus Walleij