On Friday, October 20, 2017 5:48:11 PM CEST Bernd Edlinger wrote: > On 10/20/17 18:45, Linus Walleij wrote: > > On Fri, Oct 20, 2017 at 4:40 PM, Bernd Edlinger > > <bernd.edlinger@xxxxxxxxxx> wrote: > >> On 10/20/17 10:10, Linus Walleij wrote: > > > >>>> + err = bgpio_init(&port->bgc, gpio->dev, 4, dat, NULL, NULL, > >>>> + NULL, NULL, 0); > >>> > >>> But all you add is input-only GPIO chips. Also for the output ports. > >>> > >> > >> Well actually this allows both input and output, > >> but while the input port could be written by accident, > >> the hardware does the right thing and ignores the write cycle. > >> > >> The other parameters of bgpio_input are for devices with > >> explicit set- and reset-signals, and configurable > >> output-direction etc, which I don't have. > > > > Ah! You're right. With just one register it becomes one of these that > > read and write into that register, simply. Sorry for my ignorance. > > > > I would prefer if you set the flag BGPIOF_NO_OUTPUT on the input > > only version though. Semantics may matter to the mmio gpio core. > > > > Ah, thanks, that's a good suggestion. > > I will do that and send an updated patch. Wait. I had the same comment about this earlier and a few more suggestions to move the driver to gpio-mmio's dt. Didn't you read the mail? <https://marc.info/?l=linux-gpio&m=150678737724132&w=2> It made it to the list archive, so I'm pretty sure this got delivered to you as well. Regards, Christian -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html