]> git.baikalelectronics.ru Git - kernel.git/commit
usb: cdc-wdm: ignore speed change notifications
authorBjørn Mork <bjorn@mork.no>
Tue, 29 Oct 2013 08:52:57 +0000 (09:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Oct 2013 00:02:41 +0000 (17:02 -0700)
commit396c00e88fde4adf0cdf6f873e4b8eb5f72e6d8d
tree2aa94cb6da51ddcbf610f77821a2b618705225f6
parentf5df62d1439b0abc6a1a4c145d0e0a933ffca361
usb: cdc-wdm: ignore speed change notifications

The only notification supported by the Device Management class is
Response Available. But this driver is also used as a subdriver of
other CDC classes, allowing notifications like Speed Change and
Network Connection. This results in log messages which are only
confusing to an end user:

 [66255.801874] cdc_mbim 1-3:1.5: unknown notification 42 received: index 5 len 8

These drivers use cdc-wdm as a subdriver to allow access to an
embedded management protocol, and all management is expected to
use this protocol. There is therefore no need to handle any of
these optional CDC notifications. Instead we can let the cdc-wdm
driver recognize them and log a debug level message instead of an
error.

Reported-by: Rob Gardner <robmatic@gmail.com>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-wdm.c