Skip to content

Commit 85e3c65

Browse files
metze-sambadavem330
authored andcommitted
usbnet/cdc_ncm: add missing .reset_resume hook
This avoids messages like this after suspend: cdc_ncm 2-1.4:1.6: no reset_resume for driver cdc_ncm? cdc_ncm 2-1.4:1.7: no reset_resume for driver cdc_ncm? cdc_ncm 2-1.4:1.6: usb0: unregister 'cdc_ncm' usb-0000:00:1d.0-1.4, CDC NCM This is important for the Ericsson F5521gw GSM/UMTS modem. Otherwise modemmanager looses the fact that the cdc_ncm and cdc_acm devices belong together. The cdc_ether module does the same. Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 307f73d commit 85e3c65

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/usb/cdc_ncm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
#include <linux/usb/usbnet.h>
5555
#include <linux/usb/cdc.h>
5656

57-
#define DRIVER_VERSION "24-May-2011"
57+
#define DRIVER_VERSION "01-June-2011"
5858

5959
/* CDC NCM subclass 3.2.1 */
6060
#define USB_CDC_NCM_NDP16_LENGTH_MIN 0x10
@@ -1234,6 +1234,7 @@ static struct usb_driver cdc_ncm_driver = {
12341234
.disconnect = cdc_ncm_disconnect,
12351235
.suspend = usbnet_suspend,
12361236
.resume = usbnet_resume,
1237+
.reset_resume = usbnet_resume,
12371238
.supports_autosuspend = 1,
12381239
};
12391240

0 commit comments

Comments
 (0)