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
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
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
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
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
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
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
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:
>
> 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,
> > >> >
>
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
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
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
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
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
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
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
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
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
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.
>
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
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
>
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
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
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
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
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
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
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
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
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
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 +--
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
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 ++
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 ++
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
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
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 +--
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
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
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
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
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
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
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
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
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
63 matches
Mail list logo