linux/drivers/net/can
Vincent Mailhol 7fb48d25b5 can: dev: add generic function can_ethtool_op_get_ts_info_hwts()
Add function can_ethtool_op_get_ts_info_hwts(). This function will be
used by CAN devices with hardware TX/RX timestamping support to
implement ethtool_ops::get_ts_info. This function does not offer
support to activate/deactivate hardware timestamps at device level nor
support the filter options (which is currently the case for all CAN
devices with hardware timestamping support).

The fact that hardware timestamp can not be deactivated at hardware
level does not impact the userland. As long as the user do not set
SO_TIMESTAMPING using a setsockopt() or ioctl(), the kernel will not
emit TX timestamps (RX timestamps will still be reproted as it is the
case currently).

Drivers which need more fine grained control remains free to implement
their own function, but we foresee that the generic function
introduced here will be sufficient for the majority.

Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/all/20220727101641.198847-8-mailhol.vincent@wanadoo.fr
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2022-07-28 11:44:30 +02:00
..
c_can can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
cc770 can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
ctucanfd can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
dev can: dev: add generic function can_ethtool_op_get_ts_info_hwts() 2022-07-28 11:44:30 +02:00
flexcan can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
ifi_canfd can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
m_can can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
mscan can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
peak_canfd can: add CAN_ERR_CNT flag to notify availability of error counter 2022-07-20 09:27:37 +02:00
rcar can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
sja1000 can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
slcan can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
softing can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
spi can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
usb can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
at91_can.c can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
can327.c can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
grcan.c can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
janz-ican3.c can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
Kconfig can: slcan: use CAN network device driver API 2022-07-03 11:34:28 +02:00
kvaser_pciefd.c can: add CAN_ERR_CNT flag to notify availability of error counter 2022-07-20 09:27:37 +02:00
Makefile can: slcan: move driver into separate sub directory 2022-07-03 11:34:44 +02:00
pch_can.c can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
sun4i_can.c can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
ti_hecc.c can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
vcan.c can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
vxcan.c can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
xilinx_can.c can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00