On 25.07.2022 22:31:54, Vincent Mailhol wrote: > For all CAN drivers, implement the get_drvinfo() function. > > After this patch, it is now possible to retrieve basic information by > doing: > > | $ ethtool -i canX This is the output of unpatched mcp251xfd driver. | $ ethtool -i mcp251xfd0 | driver: mcp251xfd | version: 5.18.10-v8+ | firmware-version: | expansion-rom-version: | bus-info: spi0.0 | supports-statistics: no | supports-test: no | supports-eeprom-access: no | supports-register-dump: no | supports-priv-flags: no (v5.19/patched is currently compiling} IMHO there's no need to implement a default .get_drvinfo callback. BTW: I removed one from the c_can driver some time ago: https://lore.kernel.org/all/20220124215642.3474154-10-mkl@xxxxxxxxxxxxxx/ Marc -- Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Attachment:
signature.asc
Description: PGP signature