usb.c (651a88798412e216f337d70181127e847f00a4b7) | usb.c (e13adbfa391264673bd3ff29ca966af0147b6f4d) |
---|---|
1// SPDX-License-Identifier: ISC 2/* 3 * Copyright (C) 2018 Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> 4 */ 5 6#include <linux/module.h> 7#include "mt76.h" 8#include "usb_trace.h" --- 1054 unchanged lines hidden (view full) --- 1063 struct mt76_bus_ops *ops) 1064{ 1065 struct usb_device *udev = interface_to_usbdev(intf); 1066 struct mt76_usb *usb = &dev->usb; 1067 int err; 1068 1069 INIT_WORK(&usb->stat_work, mt76u_tx_status_data); 1070 | 1// SPDX-License-Identifier: ISC 2/* 3 * Copyright (C) 2018 Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> 4 */ 5 6#include <linux/module.h> 7#include "mt76.h" 8#include "usb_trace.h" --- 1054 unchanged lines hidden (view full) --- 1063 struct mt76_bus_ops *ops) 1064{ 1065 struct usb_device *udev = interface_to_usbdev(intf); 1066 struct mt76_usb *usb = &dev->usb; 1067 int err; 1068 1069 INIT_WORK(&usb->stat_work, mt76u_tx_status_data); 1070 |
1071 usb->data_len = usb_maxpacket(udev, usb_sndctrlpipe(udev, 0), 1); | 1071 usb->data_len = usb_maxpacket(udev, usb_sndctrlpipe(udev, 0)); |
1072 if (usb->data_len < 32) 1073 usb->data_len = 32; 1074 1075 usb->data = devm_kmalloc(dev->dev, usb->data_len, GFP_KERNEL); 1076 if (!usb->data) 1077 return -ENOMEM; 1078 1079 mutex_init(&usb->usb_ctrl_mtx); --- 47 unchanged lines hidden --- | 1072 if (usb->data_len < 32) 1073 usb->data_len = 32; 1074 1075 usb->data = devm_kmalloc(dev->dev, usb->data_len, GFP_KERNEL); 1076 if (!usb->data) 1077 return -ENOMEM; 1078 1079 mutex_init(&usb->usb_ctrl_mtx); --- 47 unchanged lines hidden --- |