Re: [PATCH v2 05/22] doc: dt-binding: usb: add otg related properties

2015-06-15 Thread Li Jun
On Fri, Jun 12, 2015 at 11:31:02AM +0300, Roger Quadros wrote: > > > > Agreed. We still need to determine legacy platform if > none of the features are set. > > How about defining the followong enum for gadget->xyz_support > > enum otg_feature { > OTG_FEATURE_UNDEFINED = 0, > OTG_F

Re: [PATCH v2 05/22] doc: dt-binding: usb: add otg related properties

2015-06-15 Thread Roger Quadros
On Mon, 15 Jun 2015 14:32:46 +0800 Li Jun wrote: > On Fri, Jun 12, 2015 at 11:31:02AM +0300, Roger Quadros wrote: > > > > > > On Fri, 12 Jun 2015 11:09:17 +0800 > > Li Jun wrote: > > > [...] > > > > Other than those new flags, I have not found other good way to judge > > > whether some platf

Re: [PATCH v2 05/22] doc: dt-binding: usb: add otg related properties

2015-06-15 Thread Roger Quadros
On Mon, 15 Jun 2015 15:41:02 +0800 Li Jun wrote: > On Fri, Jun 12, 2015 at 11:31:02AM +0300, Roger Quadros wrote: > > > > > > > > Agreed. We still need to determine legacy platform if > > none of the features are set. > > > > How about defining the followong enum for gadget->xyz_support > >

Re: [PATCH 00/21] On-demand device registration

2015-06-15 Thread Linus Walleij
On Sat, Jun 13, 2015 at 8:27 PM, Alexander Holler wrote: > And because you've said that "problem space is a bit convoluted" and I > disagree, here's a summary from my point of view: > > 1. All the necessary information (dependencies between drivers) already > exists at compile time. The set of de

Re: Fwd: [PATCH] net:usb:cdc_ncm: fix that tag Huawei devices as wwan

2015-06-15 Thread Bjørn Mork
Linus Torvalds writes: > Hmm. Oliver is marked as the maintainer of the USB CDC code, but > others have touched it more recently. So I'm just wildly adding people > to the cc to comment on this patch and maybe apply it. > Oliver/David/Ben/Bjørn? Adding Aleksander and Dan, too. The 'wwanX' vs 'u

Re: Fwd: [PATCH] net:usb:cdc_ncm: fix that tag Huawei devices as wwan

2015-06-15 Thread Oliver Neukum
On Sun, 2015-06-14 at 13:51 -1000, Linus Torvalds wrote: > Hmm. Oliver is marked as the maintainer of the USB CDC code, but I do CDC ACM, CDC WDM and CDC Ether, but not CDC NCM (it is a very different beast) > others have touched it more recently. So I'm just wildly adding people > to the cc to c

Re: [PATCH 00/21] On-demand device registration

2015-06-15 Thread Alexander Holler
Am 15.06.2015 um 10:58 schrieb Linus Walleij: On Sat, Jun 13, 2015 at 8:27 PM, Alexander Holler wrote: And because you've said that "problem space is a bit convoluted" and I disagree, here's a summary from my point of view: 1. All the necessary information (dependencies between drivers) alrea

[PATCH 1/3][v2] drivers:usb:fsl: Replace macros with enumerated type

2015-06-15 Thread Nikhil Badola
Replace macros with enumerated type to represent usb ip controller version Signed-off-by: Nikhil Badola --- Changes for v2 : - Assigned value to each enumerator - Changed return type of function that returns controller version - Introduced FSL_USB_VER_NONE for in

[PATCH 2/3][v2] drivers: usb :fsl: Implement Workaround for USB Erratum A007792

2015-06-15 Thread Nikhil Badola
USB controller version-2.5 requires to enable internal UTMI phy and program PTS field in PORTSC register before asserting controller reset. This is must for successful resetting of the controller and subsequent enumeration of usb devices Signed-off-by: Nikhil Badola Signed-off-by: Suresh Gupta -

[PATCH 3/3][v2] drivers:usb:fsl: Introduce FSL_USB2_PHY_UTMI_DUAL macro

2015-06-15 Thread Nikhil Badola
Introduce FSL_USB2_PHY_UTMI_DUAL macro for setting phy mode in SOCs such has T4240, T1040, T2080 which have utmi dual-phy Signed-off-by: Ramneek Mehresh Signed-off-by: Nikhil Badola --- Changes for v2 : None drivers/usb/host/ehci-fsl.c | 1 + drivers/usb/host/fsl-mph-dr-of.c | 2 ++ inclu

Re: [PATCH] net:usb:cdc_ncm: fix that tag Huawei devices as wwan

2015-06-15 Thread Marcel Holtmann
Hi Bjorn, >> Hmm. Oliver is marked as the maintainer of the USB CDC code, but >> others have touched it more recently. So I'm just wildly adding people >> to the cc to comment on this patch and maybe apply it. >> Oliver/David/Ben/Bjørn? > > Adding Aleksander and Dan, too. The 'wwanX' vs 'usbX' d

Re: [PATCH] net:usb:cdc_ncm: fix that tag Huawei devices as wwan

2015-06-15 Thread Bjørn Mork
Marcel Holtmann writes: > we introduced DEVTYPE in uevent a long time ago. That is what > userspace should be using and not second guessing on interface names. Yes, sorry for confusing this by mentioning the device name. This is really about DEVTYPE. usbnet minidrivers use FLAG_WWAN to set bot

Re: [PATCH] net:usb:cdc_ncm: fix that tag Huawei devices as wwan

2015-06-15 Thread Marcel Holtmann
Hi Bjorn, >> we introduced DEVTYPE in uevent a long time ago. That is what >> userspace should be using and not second guessing on interface names. > > Yes, sorry for confusing this by mentioning the device name. This is > really about DEVTYPE. > > usbnet minidrivers use FLAG_WWAN to set both t

Re: [PATCH v2 05/22] doc: dt-binding: usb: add otg related properties

2015-06-15 Thread Sergei Shtylyov
Hello. On 6/15/2015 10:41 AM, Li Jun wrote: [...] Regarding use of "xyz-disable" flags: After more thinking this, I just realize that we can use "otg-rev" property to handle the case of none of xyz-disable properties passed, for legacy platforms, the new "otg-rev" not passed either, so it's a

Re: [PATCH v2 05/22] doc: dt-binding: usb: add otg related properties

2015-06-15 Thread Li Jun
On Mon, Jun 15, 2015 at 03:25:48PM +0300, Sergei Shtylyov wrote: > Hello. > > On 6/15/2015 10:41 AM, Li Jun wrote: > > [...] > > >Regarding use of "xyz-disable" flags: > >After more thinking this, I just realize that we can use "otg-rev" property > >to handle the case of none of xyz-disable prop

Re: [PATCH v3 1/1] usb: core: lpm: set lpm_capable for root hub device

2015-06-15 Thread Alan Stern
On Mon, 15 Jun 2015, Lu Baolu wrote: > Commit 25cd2882e2fc ("usb/xhci: Change how we indicate a host supports > Link PM.") removed the code to set lpm_capable for USB 3.0 super-speed > root hub. The intention of that change was to avoid touching usb core > internal field, a.k.a. lpm_capable, and l

Re: questions about uas

2015-06-15 Thread Alan Stern
On Mon, 15 Jun 2015, Tom Yan wrote: > So I did some further investigation on the weird optimal i/o size I > got from my usb3/sata adapter/ssd, started by grep'ing the size in the > /sys/block/sdx/queue: > > [tom@localhost ~]$ grep 33553920 /sys/block/sdb/queue/* > grep: /sys/block/sdb/queue/iosch

Re: TRIM/DISCARD for usb drives?

2015-06-15 Thread Alan Stern
On Mon, 15 Jun 2015, Tom Yan wrote: > I have a SanDisk Extreme USB Flash Drive > (http://www.sandisk.com/products/usb/drives/extreme/), which does NOT > support UASP so is running under "usb-storage". > > According to `hdparm`, it seems to supports TRIM; and according to > `sg3_opcodes`, it seems

RE: FX3 on Linux

2015-06-15 Thread David Laight
From: philip.jos...@microchip.com > Knowing that you have experts in USB 3.0 support for Linux, I am writing to > your organization hoping > that you may be able to offer some direction on a problem I have encountered. > > I am trying to track down a problem I am having with a USB 3.0 PCIe-x1 car

Re: [PATCH v3 2/2] USB: io_ti: Fix Edgeport firmware download code

2015-06-15 Thread Peter Berger
On Thu, 2015-06-11 at 11:10 +0200, Johan Hovold wrote: > On Mon, Jun 08, 2015 at 02:36:36PM -0500, Peter Berger wrote: > > On Fri, 2015-05-22 at 18:22 +0200, Johan Hovold wrote: > > > On Fri, May 15, 2015 at 12:09:54AM -0500, Peter E. Berger wrote: > > > > From: "Peter E. Berger" > > > > > > > >

Re: [PATCH v4 1/2] USB: io_ti: Fix Edgeport firmware download code

2015-06-15 Thread Peter Berger
Hi Johan: I think my v5 patchset to address your review comments (here and in the other messages) is just about ready to submit. I'll include some point-by-point description details below: On Thu, 2015-06-11 at 12:03 +0200, Johan Hovold wrote: > On Mon, Jun 08, 2015 at 02:51:36PM -0500, Peter E.

Re: [PATCH v4 2/2] USB: io_ti: Add heartbeat to keep idle Edgeport ports from disconnecting

2015-06-15 Thread Peter Berger
Hi Johan: Again, I think I'm about ready to post a v5 patchset that addresses your comments here and elsewhere. I'll include point-by-point response notes to your comments below. Thanks! --Peter On Thu, 2015-06-11 at 12:26 +0200, Johan Hovold wrote: > On Mon, Jun 08, 2015 at 02:51:37PM -0

[PATCH v5 10/10] USB: io_ti: Call cancel_delayed_work_sync() unconditionally

2015-06-15 Thread Peter E. Berger
From: "Peter E. Berger" Call cancel_delayed_work_sync() unconditionally in edge_release() and edge_suspend(). Signed-off-by: Peter E. Berger --- drivers/usb/serial/io_ti.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/

[PATCH v5 01/10] USB: io_ti: Increase insufficient timeout for firmware downloads

2015-06-15 Thread Peter E. Berger
From: "Peter E. Berger" The io_ti driver fails to download firmware to Edgeport devices such as the EP/416. One of the problems is that the default 1 second timeout in ti_vsend_sync() is insufficient for download operations. This patch increases the download timeout to 10 seconds. Signed-off-b

[PATCH v5 08/10] USB: io_ti: Call INIT_DELAYED_WORK unconditionally in edge_startup()

2015-06-15 Thread Peter E. Berger
From: "Peter E. Berger" Move INIT_DELAY_WORK out of the if block. Signed-off-by: Peter E. Berger --- drivers/usb/serial/io_ti.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index 124c14c..0ef51ee 100644 --- a/driv

[PATCH v5 09/10] USB: io_ti: Add edge_heartbeat_reschedule() helper function

2015-06-15 Thread Peter E. Berger
From: "Peter E. Berger" Add edge_heartbeat_reschedule() helper function and call it from edge_startup() and edge_resume(). Signed-off-by: Peter E. Berger --- drivers/usb/serial/io_ti.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/drivers/usb/serial/i

[PATCH v5 03/10] USB: io_ti: Move request_firmware() calls out of download_fw()

2015-06-15 Thread Peter E. Berger
From: "Peter E. Berger" The io_ti driver fails to download firmware to Edgeport devices such as the EP/416, even when the on-disk firmware image (/lib/firmware/edgeport/down3.bin) is more current than the version on the EP/416. The current download code is broken in a few ways. Notably it mis-us

[PATCH v5 00/10] Fix idle port disconnects and firmware downloading

2015-06-15 Thread Peter E. Berger
From: "Peter E. Berger" I found that when using newer Edgeport devices such as the EP/416, idle ports are regularly bounced (disconnected and then reconnected). I discussed this with the manufacturer (Digi International) and learned that some newer Edgeport devices now ship from the factory runni

[PATCH v5 02/10] USB: io_ti: Add timeout parameter to ti_vsend_sync()

2015-06-15 Thread Peter E. Berger
From: "Peter E. Berger" Instead of having ti_vsend_sync() decide when to use non-default timeouts, make "timeout" a parameter and leave the decision to the caller. Signed-off-by: Peter E. Berger --- drivers/usb/serial/io_ti.c | 28 +--- 1 file changed, 17 insertions(+),

[PATCH v5 06/10] USB: io_ti: Add heartbeat to keep idle Edgeport ports from disconnecting

2015-06-15 Thread Peter E. Berger
From: "Peter E. Berger" When using newer Edgeport devices such as the EP/416, idle ports are automatically bounced (disconnected and then reconnected) approximately every 60 seconds. This breaks programs (e.g: minicom) where idle periods are common, normal and expected. I confirmed with the man

[PATCH v5 07/10] USB: io_ti: dev_dbg() and dev_err() changes in edge_startup()

2015-06-15 Thread Peter E. Berger
From: "Peter E. Berger" - Replace a dev_dbg() with dev_err(). - Drop unneeded dev_dbg(). Signed-off-by: Peter E. Berger --- drivers/usb/serial/io_ti.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index 0eb4e81.

[PATCH v5 04/10] USB: io_ti: Add fw_version field to edgeport_serial

2015-06-15 Thread Peter E. Berger
From: "Peter E. Berger" The io_ti driver fails to download firmware to Edgeport devices such as the EP/416, even when the on-disk firmware image (/lib/firmware/edgeport/down3.bin) is more current than the version on the EP/416. This patch adds a "fw_version" field to edgeport_serial, which allow

[PATCH v5 05/10] USB: io_ti: Add comment describing the unused firmware build_number

2015-06-15 Thread Peter E. Berger
From: "Peter E. Berger" The firmware has a "build_number" field, though it is apparently unused (according to observations of the three firmware images I have seen and confirmed by Digi Tech Support). This comment describes its structure, in case it is populated in a future release. Signed-off-

Re: [PATCH] usb: pass flags parameter to gpiod_get functions

2015-06-15 Thread Uwe Kleine-König
Hello, On Fri, Mar 27, 2015 at 08:30:42PM +0100, Uwe Kleine-König wrote: > Since 39b2bbe3d715 (gpio: add flags argument to gpiod_get*() functions) > which appeared in v3.17-rc1, the gpiod_get* functions take an additional > parameter that allows to specify direction and initial value for output. >

Re: Data loss with usb dvb tuners that is "fixed" by spinning a cpu - how to debug?

2015-06-15 Thread Andy Furniss
Andy Furniss wrote: Hi I recently set up a Asrock Q1900DC-itx Intel baytrail board as a router/nas/pvr. It has 2 usb dvb T/T2 tuners attached - pctv 290e and 292e. When running them I am getting lost dvb packets which are detected as lost via dvbs continuity counters. Have tried 3.18.14, and to

Wvdial problem with 3G modem connected via pl2303 (bug 99971)

2015-06-15 Thread Tim Komarov
Hello, guys! I got a modem (SIM5320), which works via UART port. I connect it to PC with USB-UART (pl2303 сonverter) cable and see, that Wvdial is not able to send AT-commands to the modem in a proper way (the output looks like the messages are corrupted), so I got no PPP-connection. At the same

[PATCH v4 1/1] usb: core: lpm: set lpm_capable for root hub device

2015-06-15 Thread Lu Baolu
Commit 25cd2882e2fc ("usb/xhci: Change how we indicate a host supports Link PM.") removed the code to set lpm_capable for USB 3.0 super-speed root hub. The intention of that change was to avoid touching usb core internal field, a.k.a. lpm_capable, and let usb core to set it by checking U1 and U2 ex

keyboard driver (anti-ghosting "chip") needed for Linux - many advanced keyboards do not work with Linux

2015-06-15 Thread Zenaan Harkness
To my great surprise, Linux does not support NKRO (N-key roll-over) keyboards connected by USB, and evidently some USB-PS2 adapters (which are no use to us laptop people anyway). Definitely one for the Linux device driver bucket list. Regards Zenaan --- Firstly, we in the "Linux" community can

Re: keyboard driver (anti-ghosting "chip") needed for Linux - many advanced keyboards do not work with Linux

2015-06-15 Thread Greg KH
On Tue, Jun 16, 2015 at 03:32:48PM +1000, Zenaan Harkness wrote: > To my great surprise, Linux does not support NKRO (N-key roll-over) > keyboards connected by USB, and evidently some USB-PS2 adapters (which > are no use to us laptop people anyway). > > Definitely one for the Linux device driver b

[PATCH v3 01/22] usb: add usb_otg20_descriptor for OTG 2.0 and above

2015-06-15 Thread Li Jun
From: Macpaul Lin OTG 2.0 introduces bcdOTG in otg descriptor to identify the OTG and EH supplement release number with which the OTG device is compliant, this patch adds structure usb_otg20_descriptor for OTG 2.0 and above. Signed-off-by: Macpaul Lin Signed-off-by: Li Jun --- include/uapi/li

[PATCH v3 02/22] usb: add USB_OTG_ADP definition

2015-06-15 Thread Li Jun
From: Macpaul Lin Add USB_OTG_ADP definition for usb_otg_descriptor.bmAttributes. Signed-off-by: Macpaul Lin Signed-off-by: Li Jun Acked-by: Peter Chen --- include/uapi/linux/usb/ch9.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/usb/ch9.h b/include/uapi/linux/usb/c

[PATCH v3 06/22] usb: common: add API to get usb otg features from device tree

2015-06-15 Thread Li Jun
Check property of usb hardware to get otg version and if SRP, HNP and ADP are supported. Signed-off-by: Li Jun --- drivers/usb/common/common.c | 64 + include/linux/usb/of.h | 20 ++ 2 files changed, 84 insertions(+) diff --git a/driv

[PATCH v3 07/22] usb: chipidea: set usb gadeget's otg config

2015-06-15 Thread Li Jun
Set gadget's otg features according to controller's capability and usb property in device tree. Signed-off-by: Li Jun --- drivers/usb/chipidea/core.c | 18 ++ drivers/usb/chipidea/udc.c | 20 +++- include/linux/usb/chipidea.h | 4 3 files changed, 41 inse

[PATCH v3 10/22] usb: gadget: configfs: init and add usb_otg_descriptor for usb configurations

2015-06-15 Thread Li Jun
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor, add it for each usb configurations, free it while composite unbind. Signed-off-by: Li Jun --- drivers/usb/gadget/configfs.c | 34 +- 1 file changed, 25 insertions(+), 9 deletions(-) diff --

[PATCH v3 12/22] usb: gadget: acm_ms: init usb_otg_descriptor via usb_otg_descriptor_add

2015-06-15 Thread Li Jun
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor, free it while composite unbind. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/acm_ms.c | 34 +++--- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/drivers/usb/gadget/legac

[PATCH v3 11/22] usb: gadget: ether: init usb_otg_descriptor via usb_otg_descriptor_add

2015-06-15 Thread Li Jun
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor, free it while composite unbind. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/ether.c | 48 +++ 1 file changed, 34 insertions(+), 14 deletions(-) diff --git a/drivers/usb/gadget/l

[PATCH v3 09/22] usb: gadget: add usb_otg_descriptor_add interface to init usb_otg_descriptor

2015-06-15 Thread Li Jun
Allocate usb_otg_descriptor and initialize it according to gadget otg options, if none of options is not set, keep bmAttributes setting as current gadget drivers, with this new interface, usb_otg_descriptor can include bcdOTG if OTG 2.0 or later, and otg features can be decided by the combination o

[PATCH v3 04/22] usb: gadget: composite: add USB_DT_OTG request handling

2015-06-15 Thread Li Jun
From: Macpaul Lin Copy usb_otg_descriptor from config's descriptor if host requests USB_DT_OTG. Signed-off-by: Macpaul Lin Signed-off-by: Li Jun --- drivers/usb/gadget/composite.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/usb/gadget/composite.c b/d

[PATCH v3 05/22] doc: dt-binding: usb: add otg related properties

2015-06-15 Thread Li Jun
Add otg version, srp, hnp and adp support for usb OTG port, then those OTG features don't have to be decided by usb gadget drivers. Signed-off-by: Li Jun --- Documentation/devicetree/bindings/usb/generic.txt | 18 ++ 1 file changed, 18 insertions(+) diff --git a/Documentation/de

[PATCH v3 22/22] usb: gadget: zero: init usb_otg_descriptor via usb_otg_descriptor_add

2015-06-15 Thread Li Jun
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor, free it while composite unbind. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/zero.c | 37 +++-- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/drivers/usb/gadget/lega

[PATCH v3 19/22] usb: gadget: ncm: init usb_otg_descriptor via usb_otg_descriptor_add

2015-06-15 Thread Li Jun
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor, free it while composite unbind. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/ncm.c | 33 +++-- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/drivers/usb/gadget/legacy/nc

[PATCH v3 15/22] usb: gadget: g_ffs: init usb_otg_descriptor via usb_otg_descriptor_add

2015-06-15 Thread Li Jun
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor, free it while composite unbind. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/g_ffs.c | 34 +++--- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/drivers/usb/gadget/legacy

[PATCH v3 14/22] usb: gadget: cdc2: init usb_otg_descriptor via usb_otg_descriptor_add

2015-06-15 Thread Li Jun
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor, free it while composite unbind. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/cdc2.c | 34 +++--- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/drivers/usb/gadget/legacy/

[PATCH v3 20/22] usb: gadget: printer: init usb_otg_descriptor via usb_otg_descriptor_add

2015-06-15 Thread Li Jun
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor, free it while composite unbind. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/printer.c | 30 +++--- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/drivers/usb/gadget/legacy/p

[PATCH v3 16/22] usb: gadget: hid: init usb_otg_descriptor via usb_otg_descriptor_add

2015-06-15 Thread Li Jun
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor, free it while composite unbind. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/hid.c | 35 --- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/drivers/usb/gadget/legacy/

[PATCH v3 18/22] usb: gadget: multi: init usb_otg_descriptor via usb_otg_descriptor_add

2015-06-15 Thread Li Jun
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor, free it while composite unbind. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/multi.c | 49 +++ 1 file changed, 34 insertions(+), 15 deletions(-) diff --git a/drivers/usb/gadget/l

[PATCH v3 13/22] usb: gadget: audio: init usb_otg_descriptor via usb_otg_descriptor_add

2015-06-15 Thread Li Jun
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor, free it while composite unbind. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/audio.c | 33 +++-- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/drivers/usb/gadget/legacy/

[PATCH v3 21/22] usb: gadget: serial: init usb_otg_descriptor via usb_otg_descriptor_add

2015-06-15 Thread Li Jun
Use usb_otg_descriptor_add to allocate and initialize usb_otg_descriptor, free it while composite unbind. Signed-off-by: Li Jun --- drivers/usb/gadget/legacy/serial.c | 34 -- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/drivers/usb/gadget/legac