Skip to content

Commit 55b81e6

Browse files
committed
Merge branch 'usb-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
* 'usb-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (232 commits) USB: Add USB-ID for Multiplex RC serial adapter to cp210x.c xhci: Clean up 32-bit build warnings. USB: update documentation for usbmon usb: usb-storage doesn't support dynamic id currently, the patch disables the feature to fix an oops drivers/usb/class/cdc-acm.c: clear dangling pointer drivers/usb/dwc3/dwc3-pci.c: introduce missing kfree drivers/usb/host/isp1760-if.c: introduce missing kfree usb: option: add ZD Incorporated HSPA modem usb: ch9: fix up MaxStreams helper USB: usb-skeleton.c: cleanup open_count USB: usb-skeleton.c: fix open/disconnect race xhci: Properly handle COMP_2ND_BW_ERR USB: remove dead code from suspend/resume path USB: add quirk for another camera drivers: usb: wusbcore: Fix dependency for USB_WUSB xhci: Better debugging for critical host errors. xhci: Be less verbose during URB cancellation. xhci: Remove debugging about ring structure allocation. xhci: Remove debugging about toggling cycle bits. xhci: Remove debugging for individual transfers. ...
2 parents 5983faf + 08e87d0 commit 55b81e6

203 files changed

Lines changed: 4979 additions & 3798 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/ABI/testing/sysfs-bus-usb‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,31 @@ Description:
119119
Write a 1 to force the device to disconnect
120120
(equivalent to unplugging a wired USB device).
121121

122+
What: /sys/bus/usb/drivers/.../new_id
123+
Date: October 2011
124+
Contact: linux-usb@vger.kernel.org
125+
Description:
126+
Writing a device ID to this file will attempt to
127+
dynamically add a new device ID to a USB device driver.
128+
This may allow the driver to support more hardware than
129+
was included in the driver's static device ID support
130+
table at compile time. The format for the device ID is:
131+
idVendor idProduct bInterfaceClass.
132+
The vendor ID and device ID fields are required, the
133+
interface class is optional.
134+
Upon successfully adding an ID, the driver will probe
135+
for the device and attempt to bind to it. For example:
136+
# echo "8086 10f5" > /sys/bus/usb/drivers/foo/new_id
137+
138+
What: /sys/bus/usb-serial/drivers/.../new_id
139+
Date: October 2011
140+
Contact: linux-usb@vger.kernel.org
141+
Description:
142+
For serial USB drivers, this attribute appears under the
143+
extra bus folder "usb-serial" in sysfs; apart from that
144+
difference, all descriptions from the entry
145+
"/sys/bus/usb/drivers/.../new_id" apply.
146+
122147
What: /sys/bus/usb/drivers/.../remove_id
123148
Date: November 2009
124149
Contact: CHENG Renquan <rqcheng@smu.edu.sg>

‎Documentation/feature-removal-schedule.txt‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,20 @@ Why: In 3.0, we can now autodetect internal 3G device and already have
523523
information log when acer-wmi initial.
524524
Who: Lee, Chun-Yi <jlee@novell.com>
525525

526+
---------------------------
527+
528+
What: /sys/devices/platform/_UDC_/udc/_UDC_/is_dualspeed file and
529+
is_dualspeed line in /sys/devices/platform/ci13xxx_*/udc/device file.
530+
When: 3.8
531+
Why: The is_dualspeed file is superseded by maximum_speed in the same
532+
directory and is_dualspeed line in device file is superseded by
533+
max_speed line in the same file.
534+
535+
The maximum_speed/max_speed specifies maximum speed supported by UDC.
536+
To check if dualspeeed is supported, check if the value is >= 3.
537+
Various possible speeds are defined in <linux/usb/ch9.h>.
538+
Who: Michal Nazarewicz <mina86@mina86.com>
539+
526540
----------------------------
527541

528542
What: The XFS nodelaylog mount option

‎Documentation/kernel-parameters.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2637,6 +2637,10 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
26372637
[USB] Start with the old device initialization
26382638
scheme (default 0 = off).
26392639

2640+
usbcore.usbfs_memory_mb=
2641+
[USB] Memory limit (in MB) for buffers allocated by
2642+
usbfs (default = 16, 0 = max = 2047).
2643+
26402644
usbcore.use_both_schemes=
26412645
[USB] Try the other device initialization scheme
26422646
if the first one fails (default 1 = enabled).

‎Documentation/usb/usbmon.txt‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,22 @@ This allows to filter away annoying devices that talk continuously.
4747

4848
2. Find which bus connects to the desired device
4949

50-
Run "cat /proc/bus/usb/devices", and find the T-line which corresponds to
51-
the device. Usually you do it by looking for the vendor string. If you have
52-
many similar devices, unplug one and compare two /proc/bus/usb/devices outputs.
53-
The T-line will have a bus number. Example:
50+
Run "cat /sys/kernel/debug/usb/devices", and find the T-line which corresponds
51+
to the device. Usually you do it by looking for the vendor string. If you have
52+
many similar devices, unplug one and compare the two
53+
/sys/kernel/debug/usb/devices outputs. The T-line will have a bus number.
54+
Example:
5455

5556
T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
5657
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
5758
P: Vendor=0557 ProdID=2004 Rev= 1.00
5859
S: Manufacturer=ATEN
5960
S: Product=UC100KM V2.00
6061

61-
Bus=03 means it's bus 3.
62+
"Bus=03" means it's bus 3. Alternatively, you can look at the output from
63+
"lsusb" and get the bus number from the appropriate line. Example:
64+
65+
Bus 003 Device 002: ID 0557:2004 ATEN UC100KM V2.00
6266

6367
3. Start 'cat'
6468

‎arch/arm/mach-omap2/board-n8x0.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static struct device *mmc_device;
4646
#define TUSB6010_GPIO_ENABLE 0
4747
#define TUSB6010_DMACHAN 0x3f
4848

49-
#ifdef CONFIG_USB_MUSB_TUSB6010
49+
#if defined(CONFIG_USB_MUSB_TUSB6010) || defined(CONFIG_USB_MUSB_TUSB6010_MODULE)
5050
/*
5151
* Enable or disable power to TUSB6010. When enabling, turn on 3.3 V and
5252
* 1.5 V voltage regulators of PM companion chip. Companion chip will then

‎arch/arm/mach-s3c2416/mach-smdk2416.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
#include <plat/nand.h>
5151
#include <plat/sdhci.h>
5252
#include <plat/udc.h>
53+
#include <linux/platform_data/s3c-hsudc.h>
5354

5455
#include <plat/regs-fb-v4.h>
5556
#include <plat/fb.h>

‎arch/arm/plat-samsung/devs.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include <linux/mtd/partitions.h>
3030
#include <linux/mmc/host.h>
3131
#include <linux/ioport.h>
32+
#include <linux/platform_data/s3c-hsudc.h>
3233

3334
#include <asm/irq.h>
3435
#include <asm/pmu.h>

‎arch/arm/plat-samsung/include/plat/udc.h‎

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,7 @@ struct s3c2410_udc_mach_info {
3737

3838
extern void __init s3c24xx_udc_set_platdata(struct s3c2410_udc_mach_info *);
3939

40-
/**
41-
* s3c24xx_hsudc_platdata - Platform data for USB High-Speed gadget controller.
42-
* @epnum: Number of endpoints to be instantiated by the controller driver.
43-
* @gpio_init: Platform specific USB related GPIO initialization.
44-
* @gpio_uninit: Platform specific USB releted GPIO uninitialzation.
45-
*
46-
* Representation of platform data for the S3C24XX USB 2.0 High Speed gadget
47-
* controllers.
48-
*/
49-
struct s3c24xx_hsudc_platdata {
50-
unsigned int epnum;
51-
void (*gpio_init)(void);
52-
void (*gpio_uninit)(void);
53-
};
40+
struct s3c24xx_hsudc_platdata;
5441

5542
extern void __init s3c24xx_hsudc_set_platdata(struct s3c24xx_hsudc_platdata *pd);
5643

‎drivers/hv/hv_kvp.c‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,13 @@ kvp_respond_to_host(char *key, char *value, int error)
212212
* The windows host expects the key/value pair to be encoded
213213
* in utf16.
214214
*/
215-
keylen = utf8s_to_utf16s(key_name, strlen(key_name),
216-
(wchar_t *)kvp_data->data.key);
215+
keylen = utf8s_to_utf16s(key_name, strlen(key_name), UTF16_HOST_ENDIAN,
216+
(wchar_t *) kvp_data->data.key,
217+
HV_KVP_EXCHANGE_MAX_KEY_SIZE / 2);
217218
kvp_data->data.key_size = 2*(keylen + 1); /* utf16 encoding */
218-
valuelen = utf8s_to_utf16s(value, strlen(value),
219-
(wchar_t *)kvp_data->data.value);
219+
valuelen = utf8s_to_utf16s(value, strlen(value), UTF16_HOST_ENDIAN,
220+
(wchar_t *) kvp_data->data.value,
221+
HV_KVP_EXCHANGE_MAX_VALUE_SIZE / 2);
220222
kvp_data->data.value_size = 2*(valuelen + 1); /* utf16 encoding */
221223

222224
kvp_data->data.value_type = REG_SZ; /* all our values are strings */

‎drivers/usb/Makefile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
obj-$(CONFIG_USB) += core/
88

9+
obj-$(CONFIG_USB_OTG_UTILS) += otg/
10+
911
obj-$(CONFIG_USB_DWC3) += dwc3/
1012

1113
obj-$(CONFIG_USB_MON) += mon/
@@ -51,7 +53,6 @@ obj-$(CONFIG_USB_SPEEDTOUCH) += atm/
5153

5254
obj-$(CONFIG_USB_MUSB_HDRC) += musb/
5355
obj-$(CONFIG_USB_RENESAS_USBHS) += renesas_usbhs/
54-
obj-$(CONFIG_USB_OTG_UTILS) += otg/
5556
obj-$(CONFIG_USB_GADGET) += gadget/
5657

5758
obj-$(CONFIG_USB_COMMON) += usb-common.o

0 commit comments

Comments
 (0)