Re: [PATCH v4 1/1] USB: core: let USB device know device node

2016-02-05 Thread Arnd Bergmann
On Friday 05 February 2016 14:11:25 Peter Chen wrote: > On Thu, Feb 04, 2016 at 11:44:50AM +0100, Philipp Zabel wrote: > > Am Montag, den 25.01.2016, 15:24 +0800 schrieb Peter Chen: > > > diff --git a/Documentation/devicetree/bindings/usb/usb-device.txt > > > b/Documentation/devicetree/bindings/us

Re: [PATCH v4 1/1] USB: core: let USB device know device node

2016-02-05 Thread Philipp Zabel
Am Freitag, den 05.02.2016, 14:11 +0800 schrieb Peter Chen: [...] > > The reference recommendation states that for single-configuration USB > > devices the compatible should contain all of the applicable strings from > > the list starting with 2) "usbVID,PID.REV" and ending with 11) > > "usb,device

Re: [PATCH v4 1/1] USB: core: let USB device know device node

2016-02-05 Thread Peter Chen
On Fri, Feb 5, 2016 at 12:36 AM, Alan Stern wrote: > On Thu, 4 Feb 2016, Peter Chen wrote: > >> On Mon, Jan 25, 2016 at 03:24:39PM +0800, Peter Chen wrote: >> > Although most of USB devices are hot-plug's, there are still some devices >> > are hard wired on the board, eg, for HSIC and SSIC interfa

Re: [PATCH v4 1/1] USB: core: let USB device know device node

2016-02-05 Thread Peter Chen
On Fri, Feb 5, 2016 at 5:37 PM, Philipp Zabel wrote: > Am Freitag, den 05.02.2016, 14:11 +0800 schrieb Peter Chen: > [...] >> > The reference recommendation states that for single-configuration USB >> > devices the compatible should contain all of the applicable strings from >> > the list starting

[PATCH] usb: gadget: f_midi: fix missing unlock on error in f_midi_alloc()

2016-02-05 Thread weiyj_lk
From: Wei Yongjun Add the missing unlock before return from function f_midi_alloc() when kfifo_alloc() failed. Signed-off-by: Wei Yongjun --- drivers/usb/gadget/function/f_midi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/gadget/function/f_midi.c b/drive

Re: [PATCH v4 1/1] USB: core: let USB device know device node

2016-02-05 Thread Alan Stern
On Fri, 5 Feb 2016, Peter Chen wrote: > >> > @@ -508,11 +509,20 @@ struct usb_device *usb_alloc_dev(struct usb_device > >> > *parent, > >> > dev->connect_time = jiffies; > >> > dev->active_duration = -jiffies; > >> > #endif > >> > - if (root_hub) /* Root hub always ok [and always wir

Re: [PATCH] usb: host: xhci: Replace bus lock with host controller lock

2016-02-05 Thread Chris Bainbridge
Running task list at fail point: [8.978405] kworker/3:0 R running task1176024 2 0x [8.979624] Workqueue: usb_hub_wq hub_event [8.980831] 880260613af8 880260613ac0 811247ed 8802604597c0 [8.982061] 880260608000 880260614000 000

RE: Multiple Digi Edgeport devices on CentOS 7

2016-02-05 Thread Howard Lum (holum)
Hi Greg, The symlinks under /dev/serial/by-id are exactly what I am looking for. Thanks for the tip! Howard -Original Message- From: Greg KH [mailto:gre...@linuxfoundation.org] Sent: Thursday, February 04, 2016 6:34 PM To: Howard Lum (holum) Cc: linux-usb@vger.kernel.org Subject: Re:

RE: USB suspend resume issue on Vybrid (Chipidea IP/MXS PHY)

2016-02-05 Thread Peter Chen
> > Hello Peter, > > On 16-01-14 11:12:32, Peter Chen wrote: > > On Wed, Jan 13, 2016 at 6:12 PM, wrote: > > > Hello Peter, > > > > > > On 16-01-13 10:33:06, Peter Chen wrote: > > >> On Tue, Jan 12, 2016 at 06:34:47PM +0530, maitysancha...@gmail.com > wrote: > > >> > Hello Peter, > > >> > >

Re: [PATCH 1/2] usb: dwc3: drop FIFO resizing logic

2016-02-05 Thread Kishon Vijay Abraham I
Hi Felipe, On Thursday 04 February 2016 05:48 PM, Felipe Balbi wrote: > That FIFO resizing logic was added to support OMAP5 > ES1.0 which had a bogus default FIFO size. I can't > remember the exact size of default FIFO, but it was > less than one bulk superspeed packet (<1024) which > would preven

Re: [PATCH] USB: cp210x: add IDs for GE B650V3 and B850V3 boards

2016-02-05 Thread Martyn Welch
On 01/02/16 19:57, Akshay Bhat wrote: From: Ken Lin Add USB ID for cp2104/5 devices on GE B650v3 and B850v3 boards. Signed-off-by: Ken Lin Signed-off-by: Akshay Bhat Acked-by: Martyn Welch --- drivers/usb/serial/cp210x.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers

[PATCH 1/1] Drivers: USB: DA8xx MUSB: added DT support

2016-02-05 Thread Petr Kulhavy
TI DA8xx MUSB driver equipped with DeviceTree support. Tested with AM1808 board and USB2.0 (OTG) in host mode. Signed-off-by: Petr Kulhavy --- .../devicetree/bindings/usb/da8xx-usb.txt | 63 drivers/usb/musb/da8xx.c | 162 + includ

[PATCH] usb: phy: msm: Trigger USB state detection work in DRD mode

2016-02-05 Thread Srinivas Kandagatla
From: "Ivan T. Ivanov" When working in Dual Role Device mode, USB state machine is not kicked, when host or gadget drivers are loaded. Fix this be explicitly triggering state detection on client driver load. Issue is that if the board is booted without micro usb cable and usb device attached, ke

Re: Writing to USB3 memory stick with 4.4 is 52 times slower than Win7 inside virtualbox

2016-02-05 Thread Greg Kroah-Hartman
On Thu, Feb 04, 2016 at 06:47:06PM -0800, Marc MERLIN wrote: > On Thu, Feb 04, 2016 at 09:49:22AM +0100, Oliver Neukum wrote: > > On Wed, 2016-02-03 at 22:20 -0800, Marc MERLIN wrote: > > > > > But the main point remains that default mount options and default cp > > > work at horrible speed. I'm h

Re: Writing to USB3 memory stick with 4.4 is 52 times slower than Win7 inside virtualbox

2016-02-05 Thread Marc MERLIN
On Fri, Feb 05, 2016 at 12:27:25PM -0800, Greg Kroah-Hartman wrote: > > This goes back to 23MB/s (size/time), which is proper speed. > > I also verified that this time the LED wasn't flashing after unmount. > > Great, so all is good now? > > > > Still, it's a more appropriate value, indicating th

Re: Writing to USB3 memory stick with 4.4 is 52 times slower than Win7 inside virtualbox

2016-02-05 Thread Alan Stern
On Fri, 5 Feb 2016, Marc MERLIN wrote: > The thing is async isn't great either. > I hate to say, but windows does this right, linux does not as far as I > can tell. > When a windows copy is finished, it's pretty much on flash (maybe with a > second delay) > On linux, it is if I accept a speed that

Re: usb audio popping on low cpu speed device

2016-02-05 Thread Bill Brown
Shawn Lewis writes: > > Hi list, I've been looking into an issue wherein a cheap usb sound > card [1] plugged into a host system with a 400MHz mips core [2] makes > audible popping noises, at a rate of up to a few times per second. I > don't believe the problem is at the application or alsa laye

Re: Writing to USB3 memory stick with 4.4 is 52 times slower than Win7 inside virtualbox

2016-02-05 Thread Marc MERLIN
On Fri, Feb 05, 2016 at 04:11:17PM -0500, Alan Stern wrote: > On Fri, 5 Feb 2016, Marc MERLIN wrote: > > > The thing is async isn't great either. > > I hate to say, but windows does this right, linux does not as far as I > > can tell. > > When a windows copy is finished, it's pretty much on flash

Re: [PATCH] dwc3: gadget: fix for no-resource condition in dwc3 device controller

2016-02-05 Thread John Youn
On 2/5/2016 6:30 AM, B, Ravi wrote: > Hi Felipe > > Sorry for delay in response. > >>> Yes, when there is on-going transfer on one endpoint in in/out >>> direction (say ep1-in), then trying to start transfer on another >>> endpoint in same direction (say ep2-in), leads to resource conflict. >

Re: [PATCH 1/1] Drivers: USB: DA8xx MUSB: added DT support

2016-02-05 Thread Arnd Bergmann
On Friday 05 February 2016 18:34:36 Petr Kulhavy wrote: > TI DA8xx MUSB driver equipped with DeviceTree support. > Tested with AM1808 board and USB2.0 (OTG) in host mode. > > Signed-off-by: Petr Kulhavy > --- > .../devicetree/bindings/usb/da8xx-usb.txt | 63 > drivers/usb/musb

Re: [PATCH] usb: gadget: f_midi: fix missing unlock on error in f_midi_alloc()

2016-02-05 Thread Michal Nazarewicz
On Fri, Feb 05 2016, weiyj...@163.com wrote: > From: Wei Yongjun > > Add the missing unlock before return from function f_midi_alloc() > when kfifo_alloc() failed. There already is a patchset addressing this: http://comments.gmane.org/gmane.linux.kernel/2135768 > > Signed-off-by: Wei Yongjun >

Re: [PATCH 1/1] Drivers: USB: DA8xx MUSB: added DT support

2016-02-05 Thread Petr Kulhavy
On 5 February 2016 at 23:22, Arnd Bergmann wrote: > One more thing: > >> 3 files changed, 227 insertions(+), 1 deletion(-) >> create mode 100644 Documentation/devicetree/bindings/usb/da8xx-usb.txt >> >> diff --git a/Documentation/devicetree/bindings/usb/da8xx-usb.txt >> b/Documentation/devicet

[PATCH 00/19] usb: gadget: Add support for SuperSpeedPlus

2016-02-05 Thread John Youn
This series of patches adds SuperSpeedPlus support to the composite gadget framework. After this series the composite gadget framework should be able to support SuperSpeedPlus functions and gadgets. Additionally, the f_mass_storage function and the DWC3 gadget are updated to support SuperSpeedPlus

[PATCH 01/19] usb: ch9: Add USB_SPEED_SUPER_PLUS

2016-02-05 Thread John Youn
Add USB_SPEED_SUPER_PLUS to usb_device_speed enumeration and add an entry in the speed_names array for it. Signed-off-by: John Youn --- drivers/usb/common/common.c | 1 + include/uapi/linux/usb/ch9.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/usb/common/common.c b/drivers/usb

[PATCH 04/19] usb: gadget: composite: Return bcdUSB 0x0310

2016-02-05 Thread John Youn
The USB 3.1 specification replaces the USB 3.0 specification and all new devices that are running at SuperSpeed or higher speeds must report a bcdUSB of 0x0310. Refer to USB 3.1 Specification, Revision 1.0, Section 9.6. Signed-off-by: John Youn --- drivers/usb/gadget/composite.c | 2 +- 1 file

[PATCH 03/19] usb: gadget: Add gadget_is_superspeed_plus()

2016-02-05 Thread John Youn
Add a function to check for SuperSpeedPlus capable gadgets. Signed-off-by: John Youn --- include/linux/usb/gadget.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index d82d006..d6a1bda 100644 --- a/include/linux/usb/gadget

[PATCH 05/19] usb: gadget: composite: Return SSP Dev Cap descriptor

2016-02-05 Thread John Youn
If a gadget supports SuperSpeedPlus or higher speeds, return a SuperSpeedPlus USB Device Capability descriptor. Currently this implementation returns a fixed descriptor with typical values set. Signed-off-by: John Youn --- drivers/usb/gadget/composite.c | 42

[PATCH 06/19] usb: gadget: Update usb_assign_descriptors for SuperSpeedPlus

2016-02-05 Thread John Youn
Add the 'ssp_descriptors' parameter to the usb_assign_descriptors() function. This allows a function driver to add descriptors for SuperSpeedPlus speeds if it supports it. Also update all uses of this function in the gadget subsystem so that they pass NULL for the ssp_descriptors parameters. Sign

[PATCH 08/19] usb: gadget: Update config for SuperSpeedPlus

2016-02-05 Thread John Youn
When a function is added to a configuration with usb_add_function(), the configuration speed flags are updated. These flags indicate for which speeds the configuration is valid for. This patch adds a flag in the configuration for SuperSpeedPlus and also updates this based on the existence of ssp_d

[PATCH 02/19] usb: ch9: Add size macro for SSP dev cap descriptor

2016-02-05 Thread John Youn
The SuperspeedPlus Device Capability Descriptor has a variable size depending on the number of sublink speed attributes. This patch adds a macro to calculate that size. The macro takes one argument, the Sublink Speed Attribute Count (SSAC) as reported by the descriptor in bmAttributes[4:0]. See U

[PATCH 10/19] usb: gadget: composite: Add function to get descriptors

2016-02-05 Thread John Youn
There are a couple places in the code that get the function descriptors based on the speed. Move this lookup into a function call and add support to handle the SuperSpeedPlus descriptors as well. Signed-off-by: John Youn --- drivers/usb/gadget/composite.c | 53 +--

[PATCH 13/19] usb: gadget: composite: Update debug message for SuperSpeedPlus

2016-02-05 Thread John Youn
Update the debug message reporting the speeds that a configuration supports for SuperSpeedPlus. Signed-off-by: John Youn --- drivers/usb/gadget/composite.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index

[PATCH 07/19] usb: gadget: Update function for SuperSpeedPlus

2016-02-05 Thread John Youn
Add a ssp_descriptors member to struct usb_function and handle the initialization and cleanup of it. This holds the SuperSpeedPlus descriptors for a function that supports SuperSpeedPlus. This is added by usb_assign_descriptors(). Signed-off-by: John Youn --- drivers/usb/gadget/config.c | 6 ++

[PATCH 12/19] usb: gadget: composite: Configure the usb_ep for SuperSpeedPlus

2016-02-05 Thread John Youn
Configure the usb_ep using the SuperSpeedPlus descriptors if connected in SuperSpeedPlus. Signed-off-by: John Youn --- drivers/usb/gadget/composite.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index

[PATCH 11/19] usb: gadget: composite: Write SuperSpeedPlus config descriptors

2016-02-05 Thread John Youn
Enable writing of SuperSpeedPlus descriptors for any SuperSpeedPlus capable configuration when connected in SuperSpeedPlus. Signed-off-by: John Youn --- drivers/usb/gadget/composite.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/composite.c b/driver

[PATCH 09/19] usb: gadget: composite: Count configs for SuperSpeedPlus

2016-02-05 Thread John Youn
If enumerated in SuperSpeedPlus, count the configurations that support it. Signed-off-by: John Youn --- drivers/usb/gadget/composite.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index 560330f..44ad7aa

[PATCH 15/19] usb: dwc3: DWC_usb31 controller check

2016-02-05 Thread John Youn
Add a convenience function to check if the controller is DWC_usb31. Signed-off-by: John Youn --- drivers/usb/dwc3/core.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index 2913068..15281c1 100644 --- a/drivers/usb/dwc3/core.h +++ b/d

[PATCH 16/19] usb: dwc3: Update register fields for SuperSpeedPlus

2016-02-05 Thread John Youn
Update various registers fields definitions for the DWC_usb31 controller for SuperSpeedPlus support. Signed-off-by: John Youn --- drivers/usb/dwc3/core.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index 15281c1..6b13e

[PATCH 14/19] usb: gadget: f_mass_storage: Enable SuperSpeedPlus

2016-02-05 Thread John Youn
Enable superspeed plus configuration for the mass storage gadget. The mass storage function doesn't do anything special for SuperSpeedPlus. Just pass in the same SuperSpeed descriptors for SuperSpeedPlus. Signed-off-by: John Youn --- drivers/usb/gadget/function/f_mass_storage.c | 2 +- 1 file c

[PATCH 19/19] usb: dwc3: Enable SuperSpeedPlus

2016-02-05 Thread John Youn
Enable SuperSpeedPlus by programming the DCFG.speed and after enumerating, set gadget->speed appropriately. Signed-off-by: John Youn --- drivers/usb/dwc3/gadget.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 73db723..5bbd

[PATCH 18/19] usb: dwc3: Update maximum_speed for SuperSpeedPlus

2016-02-05 Thread John Youn
If the maximum_speed is not set, set it to a known value, either SuperSpeed or SuperSpeedPlus based on the type of controller we are using. If we are on DWC_usb31 controller, check the PHY interface to see if it is capable of SuperSpeedPlus. Also this check is moved after dwc3_core_init() so that

[PATCH 17/19] usb: dwc3: Update speed checks for SuperSpeedPlus

2016-02-05 Thread John Youn
Update various places where the speed is checked so that it takes into account SuperSpeedPlus properly. Signed-off-by: John Youn --- drivers/usb/dwc3/ep0.c| 9 ++--- drivers/usb/dwc3/gadget.c | 13 - 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/drivers/usb

Re: [PATCHv2 1/2] usb: dwc3: pci: use build-in properties instead of platform data

2016-02-05 Thread John Youn
On 2/3/2016 1:03 AM, Heikki Krogerus wrote: > This should allow the core driver to drop handling of > platform data and expect the platform specific details to > always come from properties. > > Signed-off-by: Heikki Krogerus > Cc: Huang Rui > CC: John Youn > --- > drivers/usb/dwc3/dwc3-pci.c

[PATCH v3 02/19] usb: ch9: Add size macro for SSP dev cap descriptor

2016-02-05 Thread John Youn
The SuperspeedPlus Device Capability Descriptor has a variable size depending on the number of sublink speed attributes. This patch adds a macro to calculate that size. The macro takes one argument, the Sublink Speed Attribute Count (SSAC) as reported by the descriptor in bmAttributes[4:0]. See U

[PATCH v3 00/19] usb: gadget: Add support for SuperSpeedPlus

2016-02-05 Thread John Youn
RESENDING with Felipe's correct email and proper version tag. Sorry! This series of patches adds SuperSpeedPlus support to the composite gadget framework. After this series the composite gadget framework should be able to support SuperSpeedPlus functions and gadgets. Additionally, the f_mass_stor

[PATCH v3 04/19] usb: gadget: composite: Return bcdUSB 0x0310

2016-02-05 Thread John Youn
The USB 3.1 specification replaces the USB 3.0 specification and all new devices that are running at SuperSpeed or higher speeds must report a bcdUSB of 0x0310. Refer to USB 3.1 Specification, Revision 1.0, Section 9.6. Signed-off-by: John Youn --- drivers/usb/gadget/composite.c | 2 +- 1 file

[PATCH v3 05/19] usb: gadget: composite: Return SSP Dev Cap descriptor

2016-02-05 Thread John Youn
If a gadget supports SuperSpeedPlus or higher speeds, return a SuperSpeedPlus USB Device Capability descriptor. Currently this implementation returns a fixed descriptor with typical values set. Signed-off-by: John Youn --- drivers/usb/gadget/composite.c | 42

[PATCH v3 03/19] usb: gadget: Add gadget_is_superspeed_plus()

2016-02-05 Thread John Youn
Add a function to check for SuperSpeedPlus capable gadgets. Signed-off-by: John Youn --- include/linux/usb/gadget.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index d82d006..d6a1bda 100644 --- a/include/linux/usb/gadget

[PATCH v3 01/19] usb: ch9: Add USB_SPEED_SUPER_PLUS

2016-02-05 Thread John Youn
Add USB_SPEED_SUPER_PLUS to usb_device_speed enumeration and add an entry in the speed_names array for it. Signed-off-by: John Youn --- drivers/usb/common/common.c | 1 + include/uapi/linux/usb/ch9.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/usb/common/common.c b/drivers/usb

[PATCH v3 08/19] usb: gadget: Update config for SuperSpeedPlus

2016-02-05 Thread John Youn
When a function is added to a configuration with usb_add_function(), the configuration speed flags are updated. These flags indicate for which speeds the configuration is valid for. This patch adds a flag in the configuration for SuperSpeedPlus and also updates this based on the existence of ssp_d

[PATCH v3 07/19] usb: gadget: Update function for SuperSpeedPlus

2016-02-05 Thread John Youn
Add a ssp_descriptors member to struct usb_function and handle the initialization and cleanup of it. This holds the SuperSpeedPlus descriptors for a function that supports SuperSpeedPlus. This is added by usb_assign_descriptors(). Signed-off-by: John Youn --- drivers/usb/gadget/config.c | 6 ++

[PATCH v3 09/19] usb: gadget: composite: Count configs for SuperSpeedPlus

2016-02-05 Thread John Youn
If enumerated in SuperSpeedPlus, count the configurations that support it. Signed-off-by: John Youn --- drivers/usb/gadget/composite.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index 560330f..44ad7aa

[PATCH v3 06/19] usb: gadget: Update usb_assign_descriptors for SuperSpeedPlus

2016-02-05 Thread John Youn
Add the 'ssp_descriptors' parameter to the usb_assign_descriptors() function. This allows a function driver to add descriptors for SuperSpeedPlus speeds if it supports it. Also update all uses of this function in the gadget subsystem so that they pass NULL for the ssp_descriptors parameters. Sign

[PATCH v3 10/19] usb: gadget: composite: Add function to get descriptors

2016-02-05 Thread John Youn
There are a couple places in the code that get the function descriptors based on the speed. Move this lookup into a function call and add support to handle the SuperSpeedPlus descriptors as well. Signed-off-by: John Youn --- drivers/usb/gadget/composite.c | 53 +--

[PATCH v3 11/19] usb: gadget: composite: Write SuperSpeedPlus config descriptors

2016-02-05 Thread John Youn
Enable writing of SuperSpeedPlus descriptors for any SuperSpeedPlus capable configuration when connected in SuperSpeedPlus. Signed-off-by: John Youn --- drivers/usb/gadget/composite.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/composite.c b/driver

[PATCH v3 12/19] usb: gadget: composite: Configure the usb_ep for SuperSpeedPlus

2016-02-05 Thread John Youn
Configure the usb_ep using the SuperSpeedPlus descriptors if connected in SuperSpeedPlus. Signed-off-by: John Youn --- drivers/usb/gadget/composite.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index

[PATCH v3 13/19] usb: gadget: composite: Update debug message for SuperSpeedPlus

2016-02-05 Thread John Youn
Update the debug message reporting the speeds that a configuration supports for SuperSpeedPlus. Signed-off-by: John Youn --- drivers/usb/gadget/composite.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index

[PATCH v3 16/19] usb: dwc3: Update register fields for SuperSpeedPlus

2016-02-05 Thread John Youn
Update various registers fields definitions for the DWC_usb31 controller for SuperSpeedPlus support. Signed-off-by: John Youn --- drivers/usb/dwc3/core.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index 15281c1..6b13e

[PATCH v3 15/19] usb: dwc3: DWC_usb31 controller check

2016-02-05 Thread John Youn
Add a convenience function to check if the controller is DWC_usb31. Signed-off-by: John Youn --- drivers/usb/dwc3/core.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index 2913068..15281c1 100644 --- a/drivers/usb/dwc3/core.h +++ b/d

[PATCH v3 14/19] usb: gadget: f_mass_storage: Enable SuperSpeedPlus

2016-02-05 Thread John Youn
Enable superspeed plus configuration for the mass storage gadget. The mass storage function doesn't do anything special for SuperSpeedPlus. Just pass in the same SuperSpeed descriptors for SuperSpeedPlus. Signed-off-by: John Youn --- drivers/usb/gadget/function/f_mass_storage.c | 2 +- 1 file c

[PATCH v3 19/19] usb: dwc3: Enable SuperSpeedPlus

2016-02-05 Thread John Youn
Enable SuperSpeedPlus by programming the DCFG.speed and after enumerating, set gadget->speed appropriately. Signed-off-by: John Youn --- drivers/usb/dwc3/gadget.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 73db723..5bbd

[PATCH v3 17/19] usb: dwc3: Update speed checks for SuperSpeedPlus

2016-02-05 Thread John Youn
Update various places where the speed is checked so that it takes into account SuperSpeedPlus properly. Signed-off-by: John Youn --- drivers/usb/dwc3/ep0.c| 9 ++--- drivers/usb/dwc3/gadget.c | 13 - 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/drivers/usb

[PATCH v3 18/19] usb: dwc3: Update maximum_speed for SuperSpeedPlus

2016-02-05 Thread John Youn
If the maximum_speed is not set, set it to a known value, either SuperSpeed or SuperSpeedPlus based on the type of controller we are using. If we are on DWC_usb31 controller, check the PHY interface to see if it is capable of SuperSpeedPlus. Also this check is moved after dwc3_core_init() so that