On Wed, Dec 2, 2020 at 7:13 PM Marc Zyngier <maz@xxxxxxxxxx> wrote: > And to clarify what I mean, here's a patchlet that does the trick. > > maz@tiger-roach:~$ sudo gpioinfo gpiochip3 > gpiochip3 - 4 lines: > line 0: unnamed unused output active-high > line 1: "AltFunc" kernel input active-high [used] > line 2: "AltFunc" kernel input active-high [used] > line 3: "AltFunc" kernel input active-high [used] > > It at least make clear that you can't grab the GPIO. Of course, you > don't get the message that you just added... I think this looks good. > +#include "../../gpio/gpiolib.h" I suppose I can live with this because it's for a noble cause. > Thoughts? Could you combine it with a patch similar to min giving some probe() time information that some GPIO lines are altfunc and where to get the tool and send a proper patch? Yours, Linus Walleij