Re: [PATCH] gpio: sysfs: Try numbered exports if symbolic names fail

2020-12-14 Thread Johan Hovold
On Sat, Dec 12, 2020 at 12:41:50AM +0100, Linus Walleij wrote: > On Thu, Dec 10, 2020 at 9:33 AM Johan Hovold wrote: > > > I suggested having the driver set a flag which determines whether to use > > the line names in sysfs or not. > > Aha I get it. > > I need to think about if I can fix that i

Re: [PATCH] gpio: sysfs: Try numbered exports if symbolic names fail

2020-12-11 Thread Linus Walleij
On Thu, Dec 10, 2020 at 9:33 AM Johan Hovold wrote: > I suggested having the driver set a flag which determines whether to use > the line names in sysfs or not. Aha I get it. I need to think about if I can fix that in some good way. > The above will trigger a bunch of nasty warnings and backtr

Re: [PATCH] gpio: sysfs: Try numbered exports if symbolic names fail

2020-12-10 Thread Johan Hovold
On Wed, Dec 09, 2020 at 05:18:21PM +0100, Linus Walleij wrote: > If a GPIO line cannot be exported using a symbolic name from > the .names array in the gpiochip, fall back to using the > "gpioN" naming system instead of just failing. > > Cc: Manivannan Sadhasivam > Cc: Johan Hovold > Suggested-b