android_kernel_oneplus_msm8998/drivers/net/can/usb
Jimmy Assarsson 120ef1a38f can: kvaser_usb: Ignore CMD_FLUSH_QUEUE_REPLY messages
commit e1d2d1329a5722dbecc9c278303fcc4aa01f8790 upstream.

To avoid kernel warning "Unhandled message (68)", ignore the
CMD_FLUSH_QUEUE_REPLY message for now.

As of Leaf v2 firmware version v4.1.844 (2017-02-15), flush tx queue is
synchronous. There is a capability bit indicating whether flushing tx
queue is synchronous or asynchronous.

A proper solution would be to query the device for capabilities. If the
synchronous tx flush capability bit is set, we should wait for
CMD_FLUSH_QUEUE_REPLY message, while flushing the tx queue.

Signed-off-by: Jimmy Assarsson <jimmyassarsson@gmail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-02 09:40:50 +01:00
..
peak_usb can: peak: fix bad memory access and free sequence 2016-12-15 08:49:22 -08:00
ems_usb.c can: ems_usb: Fix possible tx overflow 2016-03-03 15:07:10 -08:00
esd_usb2.c can: esd_usb2: Fix can_dlc value for received RTR, frames 2017-10-27 10:23:16 +02:00
gs_usb.c can: gs_usb: fix busy loop if no more TX context is available 2017-10-27 10:23:16 +02:00
Kconfig
kvaser_usb.c can: kvaser_usb: Ignore CMD_FLUSH_QUEUE_REPLY messages 2017-11-02 09:40:50 +01:00
Makefile
usb_8dev.c can: usb_8dev: Fix memory leak of priv->cmd_msg_buffer 2017-03-12 06:37:28 +01:00