From 28f6256f44f6ffe317e29d92a72e6e95f2d34802 Mon Sep 17 00:00:00 2001 From: "Mutalik Desai, Suprasad" <suprasad.desai@intel.com> Date: Tue, 27 Mar 2018 11:37:05 +0200 Subject: [PATCH] Merge pull request #289 in SW_PON/linux from bugfix/UGW_SW-23106-fix-for-set-interface-failure-cdc_ncm-8.1.x_ER2 to 8.1_ER2 * commit '38a03d3f283bab31bfecfc41f4a01e1efc99f7a6': Jira: UGW_SW-23016 - lte function enable-fix altsetting set failure for Fibcom module-8.1.x_ER2 --- drivers/net/usb/cdc_ncm.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/usb/cdc_ncm.c b/drivers/net/usb/cdc_ncm.c index c72beba29..a27001558 100644 --- a/drivers/net/usb/cdc_ncm.c +++ b/drivers/net/usb/cdc_ncm.c @@ -878,9 +878,14 @@ int cdc_ncm_bind_common(struct usbnet *dev, struct usb_interface *intf, u8 data_ * Some other devices do not work properly with this procedure * that can be avoided using quirk CDC_MBIM_FLAG_AVOID_ALTSETTING_TOGGLE */ + /* Temporary workaround for Fibocom LTE module. + * The Fibocom module can not activate the alternative setting + * in the last interface if setting data interface first. + */ + /* if (!(ctx->drvflags & CDC_MBIM_FLAG_AVOID_ALTSETTING_TOGGLE)) usb_set_interface(dev->udev, iface_no, data_altsetting); - + */ temp = usb_set_interface(dev->udev, iface_no, 0); if (temp) { dev_dbg(&intf->dev, "set interface failed\n"); -- GitLab