Re: [PATCH] gpiolib: Don't allow drivers to specify a base with DT

From: Mark Brown
Date: Mon Aug 11 2014 - 08:32:00 EST


On Mon, Aug 11, 2014 at 09:26:49AM +0200, Linus Walleij wrote:
> On Thu, Jul 31, 2014 at 2:07 PM, Mark Brown <broonie@xxxxxxxxxx> wrote:

> > - if (base < 0) {
> > + if (base < 0 || of_have_populated_dt()) {
> > base = gpiochip_find_base(chip->ngpio);

> But here I worry about breaking in-transition systems, e.g.
> defining part of the peripherals through DT but adding a
> GPIO device with AUXDATA, setting up base that way.

> Not that it should stay that way for sure, but it does need
> some consideration...

Could we add a flag that the boards can use to override this behaviour?

Attachment: signature.asc
Description: Digital signature