kernel-hacking-2024-linux-s.../drivers/net/can
Reuben Dowle 9a12349663 can: flexcan: Fix CAN_RAW_RECV_OWN_MSGS and CAN_RAW_LOOPBACK
Currently the flexcan driver uses hardware local echo. This blindly
echos all transmitted frames to all receiving sockets, regardless what
CAN_RAW_RECV_OWN_MSGS and CAN_RAW_LOOPBACK are set to.

This patch now submits transmitted frames to be echoed in the transmit
complete interrupt, preserving the reference to the sending
socket. This allows the can protocol to correctly handle the local
echo.

Further this patch moves tx_bytes statistic accounting into the tx_complete
handler.

Signed-off-by: Reuben Dowle <reuben.dowle@navico.com>
[mkl: move tx_bytes accounting into tx_complete handler; cleanups]
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2012-02-03 01:21:25 +01:00
..
c_can net/can: convert drivers/net/can/* to use module_platform_driver() 2011-11-29 00:25:05 -05:00
cc770 can: cc770: add platform bus driver for the CC770 and AN82527 2011-12-01 13:09:31 -05:00
mscan net/can: convert drivers/net/can/* to use module_platform_driver() 2011-11-29 00:25:05 -05:00
sja1000 can: sja1000_isa: convert to platform driver to support x86_64 systems 2011-11-29 18:35:51 -05:00
softing net/can: convert drivers/net/can/* to use module_platform_driver() 2011-11-29 00:25:05 -05:00
usb can: ems_usb: Removed double netif_device_detach 2012-02-03 01:20:51 +01:00
at91_can.c net/can: convert drivers/net/can/* to use module_platform_driver() 2011-11-29 00:25:05 -05:00
bfin_can.c net/can: convert drivers/net/can/* to use module_platform_driver() 2011-11-29 00:25:05 -05:00
dev.c can: dev: let can_get_echo_skb() return dlc of CAN frame 2012-02-03 01:21:25 +01:00
flexcan.c can: flexcan: Fix CAN_RAW_RECV_OWN_MSGS and CAN_RAW_LOOPBACK 2012-02-03 01:21:25 +01:00
janz-ican3.c net/can: convert drivers/net/can/* to use module_platform_driver() 2011-11-29 00:25:05 -05:00
Kconfig can: cc770: add driver core for the Bosch CC770 and Intel AN82527 2011-12-01 13:09:31 -05:00
Makefile can: cc770: add driver core for the Bosch CC770 and Intel AN82527 2011-12-01 13:09:31 -05:00
mcp251x.c
pch_can.c treewide: fix a few typos in comments 2011-05-10 10:16:21 +02:00
slcan.c drivers/net: Remove unnecessary k.alloc/v.alloc OOM messages 2012-01-31 16:20:21 -05:00
ti_hecc.c net/can: convert drivers/net/can/* to use module_platform_driver() 2011-11-29 00:25:05 -05:00
vcan.c module_param: make bool parameters really bool (net & drivers/net) 2011-12-19 22:27:29 -05:00