Re: [PATCH 0/4] USB: ftdio_sio: GPIO validity fixes

2020-12-09 Thread Johan Hovold
On Wed, Dec 09, 2020 at 10:20:38AM +0100, Linus Walleij wrote: > On Mon, Dec 7, 2020 at 4:48 PM Johan Hovold wrote: > > On Mon, Dec 07, 2020 at 03:34:23PM +, Marc Zyngier wrote: > > > > If they claim that their lines are available, and then refuse to > > > let the user play with it, that's

Re: [PATCH 0/4] USB: ftdio_sio: GPIO validity fixes

2020-12-09 Thread Linus Walleij
On Mon, Dec 7, 2020 at 4:48 PM Johan Hovold wrote: > On Mon, Dec 07, 2020 at 03:34:23PM +, Marc Zyngier wrote: > > If they claim that their lines are available, and then refuse to > > let the user play with it, that's just a bug willing to be fixed. > > My point was that this is how *all*

Re: [PATCH 0/4] USB: ftdio_sio: GPIO validity fixes

2020-12-07 Thread Johan Hovold
On Mon, Dec 07, 2020 at 03:34:23PM +, Marc Zyngier wrote: > On 2020-12-07 15:08, Johan Hovold wrote: > > On Mon, Dec 07, 2020 at 02:41:03PM +, Marc Zyngier wrote: > >> On 2020-12-07 14:01, Johan Hovold wrote: > >> > On Fri, Dec 04, 2020 at 04:47:35PM +, Marc Zyngier wrote: > >> >>

Re: [PATCH 0/4] USB: ftdio_sio: GPIO validity fixes

2020-12-07 Thread Marc Zyngier
On 2020-12-07 15:08, Johan Hovold wrote: On Mon, Dec 07, 2020 at 02:41:03PM +, Marc Zyngier wrote: On 2020-12-07 14:01, Johan Hovold wrote: > On Fri, Dec 04, 2020 at 04:47:35PM +, Marc Zyngier wrote: >> Having recently tried to use the CBUS GPIOs that come thanks to the >> ftdio_sio

Re: [PATCH 0/4] USB: ftdio_sio: GPIO validity fixes

2020-12-07 Thread Johan Hovold
On Mon, Dec 07, 2020 at 02:41:03PM +, Marc Zyngier wrote: > On 2020-12-07 14:01, Johan Hovold wrote: > > On Fri, Dec 04, 2020 at 04:47:35PM +, Marc Zyngier wrote: > >> Having recently tried to use the CBUS GPIOs that come thanks to the > >> ftdio_sio driver, it occurred to me that the

Re: [PATCH 0/4] USB: ftdio_sio: GPIO validity fixes

2020-12-07 Thread Marc Zyngier
On 2020-12-07 14:01, Johan Hovold wrote: On Fri, Dec 04, 2020 at 04:47:35PM +, Marc Zyngier wrote: Having recently tried to use the CBUS GPIOs that come thanks to the ftdio_sio driver, it occurred to me that the driver has a couple of usability issues: - it advertises potential GPIOs that

Re: [PATCH 0/4] USB: ftdio_sio: GPIO validity fixes

2020-12-07 Thread Johan Hovold
On Fri, Dec 04, 2020 at 04:47:35PM +, Marc Zyngier wrote: > Having recently tried to use the CBUS GPIOs that come thanks to the > ftdio_sio driver, it occurred to me that the driver has a couple of > usability issues: > > - it advertises potential GPIOs that are reserved to other uses (LED >

Re: [PATCH 0/4] USB: ftdio_sio: GPIO validity fixes

2020-12-07 Thread Andy Shevchenko
On Fri, Dec 4, 2020 at 6:49 PM Marc Zyngier wrote: > > Having recently tried to use the CBUS GPIOs that come thanks to the > ftdio_sio driver, it occurred to me that the driver has a couple of > usability issues: > > - it advertises potential GPIOs that are reserved to other uses (LED >

[PATCH 0/4] USB: ftdio_sio: GPIO validity fixes

2020-12-04 Thread Marc Zyngier
Having recently tried to use the CBUS GPIOs that come thanks to the ftdio_sio driver, it occurred to me that the driver has a couple of usability issues: - it advertises potential GPIOs that are reserved to other uses (LED control, or something else) - it returns an odd error (-ENODEV),