summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAhmed S. Darwish <ahmed.darwish@valeo.com>2015-02-26 10:22:02 -0500
committerSasha Levin <sasha.levin@oracle.com>2015-03-28 09:37:40 -0400
commit9c8090e1e52cf9dc8ff730a6a4ea29153a69f315 (patch)
treed913baade858c1905e2019f8c4b0a0b607c7026c /include
parent9baee042462d0d5df166bab8a10c06ca3b8f2d0b (diff)
can: kvaser_usb: Read all messages in a bulk-in URB buffer
[ Upstream commit 2fec5104f9c61de4cf2205aa355101e19a81f490 ] The Kvaser firmware can only read and write messages that are not crossing the USB endpoint's wMaxPacketSize boundary. While receiving commands from the CAN device, if the next command in the same URB buffer crossed that max packet size boundary, the firmware puts a zero-length placeholder command in its place then moves the real command to the next boundary mark. The driver did not recognize such behavior, leading to missing a good number of rx events during a heavy rx load session. Moreover, a tx URB context only gets freed upon receiving its respective tx ACK event. Over time, the free tx URB contexts pool gets depleted due to the missing ACK events. Consequently, the netif transmission queue gets __permanently__ stopped; no frames could be sent again except after restarting the CAN newtwork interface. Signed-off-by: Ahmed S. Darwish <ahmed.darwish@valeo.com> Cc: linux-stable <stable@vger.kernel.org> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions