summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/f_acm.c
diff options
context:
space:
mode:
authorReuben Dowle <Reuben.Dowle@navico.com>2011-11-01 11:18:03 +1300
committerDong Aisheng <b29396@freescale.com>2013-04-16 14:35:08 +0800
commit2bb0d0422f1bf18d4ecb1d8f3fd4bdefa0145d78 (patch)
tree24d99a42398a1b01b396e44aa5709161c2113822 /drivers/usb/gadget/f_acm.c
parent94108194acb45f6cc488c9ff4e8d561c113f6409 (diff)
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/gadget/f_acm.c')
0 files changed, 0 insertions, 0 deletions