On Sat, Dec 12, 2020 at 1:36 AM Linus Walleij <linus.walleij@xxxxxxxxxx> wrote: > We need to make this namespace hierarchical: at least do not > allow two lines on the same chip to have the same name, this > is just too much flexibility. If we name a line on a chip, > name it uniquely on that chip. > > I don't know what happens if we just apply this, I *hope* there > are not a lot of systems out there breaking this simple and > intuitive rule. > > As a side effect, this makes the device tree naming code > scream a bit if names are not globally unique. > > I think there are not super-many device trees out there naming > their lines so let's fix this before the problem becomes > widespread. > > Cc: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> > Cc: Johan Hovold <johan@xxxxxxxxxx> > Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx> I applied this patch for v5.11 with replacing -EINVAL with -EEXIST as suggested by Andy. Yours, Linus Walleij