can: c_can: add ethtool support
authorDario Binacchi <dariobin@libero.it>
Fri, 14 May 2021 16:55:47 +0000 (18:55 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 27 May 2021 07:42:23 +0000 (09:42 +0200)
commit2722ac986e93c4cabbefde299d01ed24db40a645
tree30122941037a4e3227da760823df992809bbb7bd
parentc7b0f6887d90665ac1aefd503c2eba1294f83473
can: c_can: add ethtool support

With commit 132f2d45fb23 ("can: c_can: add support to 64 message
objects") the number of message objects used for reception /
transmission depends on FIFO size.

The ethtools API support allows you to retrieve this info. Driver info
has been added too.

Link: https://lore.kernel.org/r/20210514165549.14365-2-dariobin@libero.it
Signed-off-by: Dario Binacchi <dariobin@libero.it>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/c_can/Makefile
drivers/net/can/c_can/c_can.c [deleted file]
drivers/net/can/c_can/c_can.h
drivers/net/can/c_can/c_can_ethtool.c [new file with mode: 0644]
drivers/net/can/c_can/c_can_main.c [new file with mode: 0644]