Re: [RESEND PATCH v2 2/2] ARM: imx6: change default burst size for USB

2015-10-01 Thread Peter Chen
On Wed, Sep 30, 2015 at 4:52 PM, Lucas Stach wrote: > Am Mittwoch, den 30.09.2015, 10:17 +0800 schrieb Peter Chen: >> It can improve the USB performance when choosing larger >> burst size at some systems (bus size is larger), there is >> no side effect if this burst size

Re: [PATCH 2/3] usb: gadget: at91_udc: mention proper dependency

2015-10-01 Thread Sudip Mukherjee
On Wed, Sep 30, 2015 at 07:12:18PM +0200, Nicolas Ferre wrote: > > > Sorry that I missed ccing you while sending the patch. We should not > > always depend on getmaintainer.pl. > > Well, I'm marked as maintainer for this drivers actually and > get_maintainer.pl shouldn't lie this time... For

RE: [PATCH v1 Resend] usb: dwc2: gadget: fix a memory use-after-free bug

2015-10-01 Thread Kaukab, Yousaf
> From: Mian Yousaf Kaukab > Date: Tue, Sep 29, 2015 at 12:25 PM > Subject: [PATCH v1 Resend] usb: dwc2: gadget: fix a memory use-after-free bug > To: linux-usb@vger.kernel.org, ba...@ti.com, john.y...@synopsys.com, > l...@rock-chips.com > Cc: he...@sntech.de,

Re: [PATCH v9 4/5] xhci: mediatek: support MTK xHCI host controller

2015-10-01 Thread Daniel Thompson
On 29/09/15 04:01, Chunfeng Yun wrote: There some vendor quirks for MTK xhci host controller: 1. It defines some extra SW scheduling parameters for HW to minimize the scheduling effort for synchronous and interrupt endpoints. The parameters are put into reseved DWs of slot context and

Re: [RESEND PATCH v2 2/2] ARM: imx6: change default burst size for USB

2015-10-01 Thread Peter Chen
On Thu, Oct 1, 2015 at 4:42 PM, Lucas Stach wrote: > Am Donnerstag, den 01.10.2015, 16:13 +0800 schrieb Peter Chen: >> On Wed, Sep 30, 2015 at 4:52 PM, Lucas Stach wrote: >> > Am Mittwoch, den 30.09.2015, 10:17 +0800 schrieb Peter Chen: >> >> It

Announcement: A new book on USB Type-C

2015-10-01 Thread Kartik Raghavan
http://www.amazon.com/gp/product/B014SO7U4W This book provides a bootstrap session on how this new technology can seamlessly integrate into the existing USB ecosystem and also how it can integrate into new ecosystems and create new markets. Who is this book for? This book is for any engineering

Re: [PATCH v3 4/4] usb: dwc2: refactor common low-level hw code to platform.c

2015-10-01 Thread Felipe Balbi
On Mon, Sep 21, 2015 at 12:16:12PM +0200, Marek Szyprowski wrote: > DWC2 module on some platforms needs three additional hardware > resources: phy controller, clock and power supply. All of them must be > enabled/activated to properly initialize and operate. This was initially > handled in

Re: [PATCH v3 4/4] usb: dwc2: refactor common low-level hw code to platform.c

2015-10-01 Thread Felipe Balbi
On Thu, Oct 01, 2015 at 10:50:18AM -0500, Felipe Balbi wrote: > On Mon, Sep 21, 2015 at 12:16:12PM +0200, Marek Szyprowski wrote: > > DWC2 module on some platforms needs three additional hardware > > resources: phy controller, clock and power supply. All of them must be > > enabled/activated to

Re: [PATCH v1 Resend] usb: dwc2: gadget: fix a memory use-after-free bug

2015-10-01 Thread Felipe Balbi
On Thu, Oct 01, 2015 at 12:01:48PM +, Kaukab, Yousaf wrote: > > From: Mian Yousaf Kaukab > > Date: Tue, Sep 29, 2015 at 12:25 PM > > Subject: [PATCH v1 Resend] usb: dwc2: gadget: fix a memory use-after-free > > bug > > To: linux-usb@vger.kernel.org, ba...@ti.com,

[PATCH 3/9] usb: store the new usb 3.1 SuperSpeedPlus device capability descriptor

2015-10-01 Thread Mathias Nyman
If a device supports usb 3.1 SupeerSpeedPlus Gen2 speeds it povides a SuperSpeedPlus device capability descriptor as a part of its BOS descriptor. If we find one while parsing the BOS then save it togeter with the other device capabilities found in the BOS Signed-off-by: Mathias Nyman

[PATCH 8/9] xhci: check xhci hardware for USB 3.1 support

2015-10-01 Thread Mathias Nyman
Set the controller speed to HCD_USB31 to if host hardware supports USB 3.1 For PCI xhci controllers the USB 3.1 support is checked from SBRN bits in pci config space. Platform controllers will need to set xhci->sbrn == 0x31 to indicate USB 3.1 support before calling xhci_gen_setup(). Also make

[PATCH 4/9] xhci: parse xhci protocol speed ID list for usb 3.1 usage

2015-10-01 Thread Mathias Nyman
xhci 1.1 controllers that support USB 3.1 must provide a protocol speed ID (PSI) list to inform the driver of the supported speeds. The PSI list can be read from the xhci supported protocol extended capabilities. The PSI values will be used to create a USB 3.1 SuperSpeedPlus capability descriptor

[PATCH 1/9] xhci: Read and parse new xhci 1.1 capability register

2015-10-01 Thread Mathias Nyman
From: Lu Baolu xhci 1.1 capable controllers have a new HCCPARAMS2 registers with bits indicating support for new xhci 1.1 capabilities. Also add support for the new xhci 1.1 bits in the config operational opertational register that used to be reserved Signed-off-by:

[PATCH 9/9] xhci: support new USB 3.1 hub request to get extended port status

2015-10-01 Thread Mathias Nyman
USB 3.1 adds different types of Get Port Status request. The Get Extended Port Status request returns 4 additional bytes after the normal portstatus and portchange words containing link speed and lane information about a connected enhanced super speed device Signed-off-by: Mathias Nyman

[PATCH 6/9] xhci: define the new default speed ID for SuperSpeedPlus used by xhci hw

2015-10-01 Thread Mathias Nyman
USB 3.1 capable xhci controllers use a new default speed ID "5" in the PORTSC register to represent a 10Gbps connection speed of a SuperSpeedPlus device Make sure the xhci driver can handle the returned SuperSpeedPlus speed ID properly Signed-off-by: Mathias Nyman

[PATCH 5/9] xhci: Add a SuperSpeedPlus capability descriptor for xhci USB 3.1 roothub

2015-10-01 Thread Mathias Nyman
All usb devices that support USB 3.1 Gen2 speeds need to provide a SuperSpeedPlus device capability descriptor as part of their BOS descriptor. If the xhci controller supports USB 3.1 enhanced SuperSpeed, meaning it can handle both Gen1 SuperSpeed 5Gbps and Gen2 SuperSpeedPlus 10Gbps devices,

[PATCH 2/9] usb: Add USB 3.1 SuperSpeedPlus device capability descriptor

2015-10-01 Thread Mathias Nyman
USB 3.1 SuperSpeedPlus device capability descriptor is returned as part of the bos descriptor for devices that support SuperSpeedPlus protocol. The descriptor contains more detailed information about the supported speeds of the device. More details about the descriptor can be found in the USB 3.1

[PATCH 0/9] USB 3.1 initial support for usb core and xhci

2015-10-01 Thread Mathias Nyman
This patchseries adds the USB 3.1 groundwork. USB 3.1 specification includes a new SuperSpeedPlus protocol supporting up to 10Gbps speeds. USB 3.1 devices using the new SuperSpeedPlus protocol are called USB 3.1 Gen2 devices. Devices announce their SuperSpeedPlus capability with a new

[PATCH 7/9] usb: define HCD_USB31 speed option for hosts that support USB 3.1 features

2015-10-01 Thread Mathias Nyman
Hosts that support USB 3.1 Enhaned SuperSpeed can set their speed to HCD_USB31 to let usb core and host drivers know that the controller supports new USB 3.1 features. make sure usb core handle HCD_USB31 hosts correctly, for now similar to HCD_USB3. Signed-off-by: Mathias Nyman

Re: [PATCH 2/3] usb: gadget: at91_udc: mention proper dependency

2015-10-01 Thread Sudip Mukherjee
On Wed, Sep 30, 2015 at 06:34:28PM +0200, Nicolas Ferre wrote: > Le 30/09/2015 18:24, Sudip Mukherjee a écrit : > > On Wed, Sep 30, 2015 at 11:04:54AM -0500, Felipe Balbi wrote: > >> On Wed, Sep 23, 2015 at 09:22:48PM +0530, Sudip Mukherjee wrote: > >>> On Mon, Sep 21, 2015 at 04:40:57PM +0530,

Re: [PATCH 02/23] usb-gadget: use per-attribute show and store methods

2015-10-01 Thread Felipe Balbi
Hi, On Mon, Sep 28, 2015 at 03:33:28PM +0200, Christoph Hellwig wrote: > The Subject line is part of the commit log. If you have a useful heh > suggestion for improving the logs please feel free to suggest it. how about explaining why you want per-attribute show/store methods ? -- balbi

Re: [PATCH v4 1/5] gadget: Introduce the notifier functions

2015-10-01 Thread Felipe Balbi
On Thu, Oct 01, 2015 at 12:58:49PM -0500, Felipe Balbi wrote: > Hi, > > On Thu, Oct 01, 2015 at 06:43:08PM +0100, Mark Brown wrote: > > On Thu, Oct 01, 2015 at 12:29:32PM -0500, Felipe Balbi wrote: > > > > > Frankly, I wanted all of this to be decided in userland with the > > > kernel just

Re: [PATCH v4 1/5] gadget: Introduce the notifier functions

2015-10-01 Thread Felipe Balbi
On Thu, Sep 24, 2015 at 10:39:23AM -0700, Baolin Wang wrote: > The usb charger framework is based on usb gadget. The usb charger > need to be notified the state changing of usb gadget to confirm the > usb charger state. > > Thus this patch adds a notifier mechanism for usb gadget to report a >

Re: [PATCH v4 1/5] gadget: Introduce the notifier functions

2015-10-01 Thread Mark Brown
On Thu, Oct 01, 2015 at 12:29:32PM -0500, Felipe Balbi wrote: > Frankly, I wanted all of this to be decided in userland with the > kernel just providing notification and basic safety checks (we don't > want to allow a bogus userspace daemon frying anybody's devices). What's the advantage of

Re: [PATCH v4 1/5] gadget: Introduce the notifier functions

2015-10-01 Thread Felipe Balbi
Hi, On Thu, Oct 01, 2015 at 06:43:08PM +0100, Mark Brown wrote: > On Thu, Oct 01, 2015 at 12:29:32PM -0500, Felipe Balbi wrote: > > > Frankly, I wanted all of this to be decided in userland with the > > kernel just providing notification and basic safety checks (we don't > > want to allow a

Re: [PATCH v2] usb: dwc2: reset dwc2 core before dwc2_get_hwparams()

2015-10-01 Thread Doug Anderson
John, On Tue, Aug 18, 2015 at 5:19 PM, John Youn wrote: > Hi Yunzhi, > > My concern is with the delays due to calling the dwc2_core_reset > during probe. You could factor out the assertion of the core > soft reset from the dwc2_core_reset and just use that before >

USB stops working

2015-10-01 Thread Marcus Overhagen
Sometimes since updating to kernel 4.1 and now also with 4.2 usb doesn't work anymore, and dmesg shows this stuff. I then have to reboot to fix it. Does anyone have a recommendation for me? I can provide more information if required and also test patches, but it's very hard to reproduce this. I

Re: [PATCH v3 4/4] usb: dwc2: refactor common low-level hw code to platform.c

2015-10-01 Thread John Youn
On 10/1/2015 8:50 AM, Felipe Balbi wrote: > On Mon, Sep 21, 2015 at 12:16:12PM +0200, Marek Szyprowski wrote: >> DWC2 module on some platforms needs three additional hardware >> resources: phy controller, clock and power supply. All of them must be >> enabled/activated to properly initialize and

[PATCH] usb: Add device quirk for Logitech PTZ cameras

2015-10-01 Thread Vincent Palatin
Add a device quirk for the Logitech PTZ Pro Camera and its sibling the ConferenceCam CC3000e Camera. This fixes the failed camera enumeration on some boot, particularly on machines with fast CPU. Tested by connecting a Logitech PTZ Pro Camera to a machine with a Haswell Core i7-4600U CPU @

Re: [PATCH v3 4/4] usb: dwc2: refactor common low-level hw code to platform.c

2015-10-01 Thread Felipe Balbi
On Thu, Oct 01, 2015 at 09:04:59PM +, John Youn wrote: > On 10/1/2015 8:50 AM, Felipe Balbi wrote: > > On Mon, Sep 21, 2015 at 12:16:12PM +0200, Marek Szyprowski wrote: > >> DWC2 module on some platforms needs three additional hardware > >> resources: phy controller, clock and power supply.

Re: [PATCH v3 4/4] usb: dwc2: refactor common low-level hw code to platform.c

2015-10-01 Thread John Youn
On 10/1/2015 3:04 PM, Felipe Balbi wrote: > On Thu, Oct 01, 2015 at 09:04:59PM +, John Youn wrote: >> On 10/1/2015 8:50 AM, Felipe Balbi wrote: >>> On Mon, Sep 21, 2015 at 12:16:12PM +0200, Marek Szyprowski wrote: DWC2 module on some platforms needs three additional hardware

Re: [PATCH v3 4/4] usb: dwc2: refactor common low-level hw code to platform.c

2015-10-01 Thread Felipe Balbi
On Thu, Oct 01, 2015 at 10:21:22PM +, John Youn wrote: > On 10/1/2015 3:04 PM, Felipe Balbi wrote: > > On Thu, Oct 01, 2015 at 09:04:59PM +, John Youn wrote: > >> On 10/1/2015 8:50 AM, Felipe Balbi wrote: > >>> On Mon, Sep 21, 2015 at 12:16:12PM +0200, Marek Szyprowski wrote: > DWC2

RE: [PATCH v3 00/32] usb: dwc2: various bug fixes

2015-10-01 Thread Kaukab, Yousaf
> -Original Message- > From: Felipe Balbi [mailto:ba...@ti.com] > Sent: Wednesday, September 30, 2015 6:24 PM > To: Kaukab, Yousaf > Cc: linux-usb@vger.kernel.org; ba...@ti.com; john.y...@synopsys.com; > Herrero, Gregory; he...@sntech.de; diand...@chromium.org; > r.bald...@samsung.com;

RE: [PATCH v3 20/32] usb: dwc2: force dr_mode in case of configuration mismatch

2015-10-01 Thread Kaukab, Yousaf
> -Original Message- > From: Felipe Balbi [mailto:ba...@ti.com] > Sent: Wednesday, September 30, 2015 6:26 PM > To: Sergei Shtylyov > Cc: Kaukab, Yousaf; linux-usb@vger.kernel.org; ba...@ti.com; > john.y...@synopsys.com; Herrero, Gregory; he...@sntech.de; > diand...@chromium.org;

[PATCH] usb: dwc2: gadget: parity fix in isochronous mode

2015-10-01 Thread John Youn
From: Roman Bacik USB OTG driver in isochronous mode has to set the parity of the receiving microframe. The parity is set to even by default. This causes problems for an audio gadget, if the host starts transmitting on odd microframes. This fix uses Incomplete Periodic

[PATCH 1/6] usb: dwc3: Support Synopsys USB 3.1 IP

2015-10-01 Thread John Youn
This patch allows the dwc3 driver to run on the new Synopsys USB 3.1 IP core, albeit in USB 3.0 mode only. The Synopsys USB 3.1 IP (DWC_usb31) retains mostly the same register interface and programming model as the existing USB 3.0 controller IP (DWC_usb3). However, the underlying IP is different

[PATCH 4/6] usb: dwc3: pci: Add platform data for Synopsys HAPS

2015-10-01 Thread John Youn
Add platform data and set usb3_lpm_capable and has_lpm_erratum. Cc: # v3.18+ Signed-off-by: John Youn --- drivers/usb/dwc3/dwc3-pci.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/usb/dwc3/dwc3-pci.c

[PATCH 2/6] usb: dwc3: pci: Add the Synopsys HAPS AXI Product ID

2015-10-01 Thread John Youn
This ID is for the Synopsys DWC_usb3 core with AXI interface on PCIe HAPS platform. This core has the debug registers mapped at a separate BAR in order to support enhanced hibernation. Cc: # v3.18+ Signed-off-by: John Youn ---

Re: [PATCH 1/6] usb: dwc3: Support Synopsys USB 3.1 IP

2015-10-01 Thread Felipe Balbi
Hi, On Fri, Sep 04, 2015 at 07:15:10PM -0700, John Youn wrote: > This patch allows the dwc3 driver to run on the new Synopsys USB 3.1 > IP core, albeit in USB 3.0 mode only. > > The Synopsys USB 3.1 IP (DWC_usb31) retains mostly the same register > interface and programming model as the existing

Re: [PATCH 1/6] usb: dwc3: Support Synopsys USB 3.1 IP

2015-10-01 Thread John Youn
On 10/1/2015 7:03 PM, Felipe Balbi wrote: > Hi, > > On Fri, Sep 04, 2015 at 07:15:10PM -0700, John Youn wrote: >> This patch allows the dwc3 driver to run on the new Synopsys USB 3.1 >> IP core, albeit in USB 3.0 mode only. >> >> The Synopsys USB 3.1 IP (DWC_usb31) retains mostly the same

[PATCH 5/6] usb: dwc3: Add dis_enblslpm_quirk

2015-10-01 Thread John Youn
Add a quirk to clear the GUSB2PHYCFG.ENBLSLPM bit, which controls whether the PHY receives the suspend signal from the controller. Certain Synopsys prototyping PHY boards are not able to meet timings constraints for LPM. This allows the PHY to meet those timings by leaving the PHY clock running

[PATCH 0/6] usb: dwc3: Various updates for Synopsys platforms

2015-10-01 Thread John Youn
Hi, This series contains several updates to dwc3 to support Synopsys platforms. Patch 1: Initial support for 3.1 IP (applies to all platforms) Patch 2-4: PCI id and platform data for Synopsys platforms Patch 5: Add a quirk to program a global register Patch 6: Formatting Thanks, John John Youn

[PATCH 3/6] usb: dwc3: pci: Add the PCI Product ID for Synopsys USB 3.1

2015-10-01 Thread John Youn
This adds the PCI product ID for the Synopsys USB 3.1 IP core (DWC_usb31) on a HAPS-based PCI development platform. Cc: # v3.18+ Signed-off-by: John Youn --- drivers/usb/dwc3/dwc3-pci.c | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH 6/6] usb: dwc3: pci: trivial: Formatting

2015-10-01 Thread John Youn
Fix the alignment of the PCI device definitions. Also change the hex digit capitalization of one constant to make it consistent with the rest of the file and driver. Signed-off-by: John Youn --- drivers/usb/dwc3/dwc3-pci.c | 16 1 file changed, 8

Re: [PATCH 5/6] usb: dwc3: Add dis_enblslpm_quirk

2015-10-01 Thread Felipe Balbi
On Sat, Sep 26, 2015 at 12:31:08AM -0700, John Youn wrote: > Add a quirk to clear the GUSB2PHYCFG.ENBLSLPM bit, which controls > whether the PHY receives the suspend signal from the controller. > > Certain Synopsys prototyping PHY boards are not able to meet timings > constraints for LPM. This

Re: [PATCH v4 1/5] gadget: Introduce the notifier functions

2015-10-01 Thread Greg KH
On Thu, Oct 01, 2015 at 12:29:32PM -0500, Felipe Balbi wrote: > On Thu, Sep 24, 2015 at 10:39:23AM -0700, Baolin Wang wrote: > > The usb charger framework is based on usb gadget. The usb charger > > need to be notified the state changing of usb gadget to confirm the > > usb charger state. > > > >

Queueing b0a688ddcc50 "usb: musb: cppi41: allow it to work again" for -stable

2015-10-01 Thread Ezequiel Garcia
Hello, Commit b0a688ddcc50 "usb: musb: cppi41: allow it to work again" seems to fix a regression. It applies cleanly on v4.1 and removes the "musb-hdrc musb-hdrc.1.auto: Need DT for the DMA engine." error. Any chance you can queue it for -stable? Thanks! -- Ezequiel García, VanguardiaSur

Re: [RESEND PATCH v2 2/2] ARM: imx6: change default burst size for USB

2015-10-01 Thread Lucas Stach
Am Donnerstag, den 01.10.2015, 16:13 +0800 schrieb Peter Chen: > On Wed, Sep 30, 2015 at 4:52 PM, Lucas Stach wrote: > > Am Mittwoch, den 30.09.2015, 10:17 +0800 schrieb Peter Chen: > >> It can improve the USB performance when choosing larger > >> burst size at some