[PATCH 3/7] USB: cdc-wdm: extra headers are not necessarily an error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We don't even verify that the two required CDC Functional descriptors
are present, so it seems a little strange to complain about
additional descriptors being present.

The driver may very well be used on CDC interfaces which does not
comply with the Device Management spec.  This makes it load with
less noise.

Signed-off-by: Bjørn Mork <bjorn@xxxxxxx>
---
This is of course early preparation for using the driver with the Huawei
modem


 drivers/usb/class/cdc-wdm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/class/cdc-wdm.c b/drivers/usb/class/cdc-wdm.c
index c4d6757..c1b66a5 100644
--- a/drivers/usb/class/cdc-wdm.c
+++ b/drivers/usb/class/cdc-wdm.c
@@ -627,7 +627,7 @@ static int wdm_probe(struct usb_interface *intf, const struct usb_device_id *id)
 				"Finding maximum buffer length: %d", maxcom);
 			break;
 		default:
-			dev_err(&intf->dev,
+			dev_dbg(&intf->dev,
 				"Ignoring extra header, type %d, length %d\n",
 				buffer[2], buffer[0]);
 			break;
-- 
1.7.8.3

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux