summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorReuben Dowle <Reuben.Dowle@navico.com>2011-11-01 11:18:03 +1300
committerMarc Kleine-Budde <mkl@pengutronix.de>2012-02-03 01:21:25 +0100
commit9a12349663061d25b49e6542d005fa7193a2cb44 (patch)
tree210da3ec770010d9e814a368de051ad01e0e6bb3 /drivers/usb
parentcf5046b309b3a05c444a8edba6b44108510b7d7d (diff)
downloadlinux-9a12349663061d25b49e6542d005fa7193a2cb44.tar.gz
linux-9a12349663061d25b49e6542d005fa7193a2cb44.tar.bz2
linux-9a12349663061d25b49e6542d005fa7193a2cb44.zip
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>
Diffstat (limited to 'drivers/usb')
0 files changed, 0 insertions, 0 deletions