On 8/19/19 4:49 PM, Schlüßler, Timo wrote: > what do you think would be the right way to control the GPIOs of the > MCP251x/25625 from userland? You want to implement a proper kernel driver, attaching the GPIOs to the kernel GPIO framework: See https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git/commit/?h=mcp25xxfd&id=55eb3afa5c29bd0d5046a40cc0802a495406ac15 for an example. > Is this something that should be done > using a SIOCDEVPRIVATE ioctl? Where should this get documented? I > could imagine something like this, but am not sure whether this is > the right way to go. Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
Attachment:
signature.asc
Description: OpenPGP digital signature