Re: [PATCH v7 3/5] phy: Add set_vbus callback

2017-01-22 Thread Kishon Vijay Abraham I
Hi, On Saturday 21 January 2017 12:20 AM, Stephen Boyd wrote: > Some USB PHYs need to be told about vbus changing state > explicitly. For example the qcom USB HS PHY needs to toggle a bit > when vbus goes from low to high (VBUSVLDEXT) to cause the > "session valid" signal to toggle. This signal wi

Re: [PATCH v5 1/4] usb: dbc: early driver for xhci debug capability

2017-01-22 Thread Ingo Molnar
* Lu Baolu wrote: > > > >> +static void xdbc_runtime_delay(unsigned long count) > >> +{ > >> + udelay(count); > >> +} > >> +static void (*xdbc_delay)(unsigned long) = xdbc_early_delay; > > Is this udelay() complication really necessary? udelay() should work fine > > even in > > early code. It

Re: [PATCH v6 1/4] usb: dbc: early driver for xhci debug capability

2017-01-22 Thread Ingo Molnar
* Lu Baolu wrote: > xHCI debug capability (DbC) is an optional but standalone > functionality provided by an xHCI host controller. Software > learns this capability by walking through the extended > capability list of the host. xHCI specification describes > DbC in section 7.6. > > This patch i

Re: [linux-sunxi] Re: [PATCH 1/4] phy: sun4i-usb: support PHY0 on H3 in MUSB mode

2017-01-22 Thread Hans de Goede
HI, On 22-01-17 10:39, Icenowy Zheng wrote: 20.01.2017, 16:04, "Hans de Goede" : HI, On 19-01-17 21:27, Karsten Merker wrote: On Thu, Jan 19, 2017 at 11:10:08PM +0800, Icenowy Zheng wrote: 19.01.2017, 22:34, "Maxime Ripard" : On Wed, Jan 18, 2017 at 04:09:32AM +0800, Chen-Yu Tsai wrote

[PATCH v2] Work-around for DWC_USB3_NUM_EPS = DWC_USB3_NUM_IN_EPS

2017-01-22 Thread Bryan O'Donoghue
This is V2 of the previous patch to address the case where NUM_EPS == NUM_IN_EPS. V1 proposed a quirk for this case, following discussions on linux-usb we decided that a simple comparison and divide would do instead. V1 -> V2: Removed quirk code - Felipe Reworded commit log - Felipe Removed DT bin

[PATCH v2] usb: dwc3: handle DWC_USB3_NUM == DWC_USB3_NUM_IN_EPS

2017-01-22 Thread Bryan O'Donoghue
- DWC_USB3_NUM indicates the number of Device mode single directional endpoints, including OUT and IN endpoint 0. - DWC_USB3_NUM_IN_EPS indicates the maximum number of Device mode IN endpoints active at any time, including control endpoint 0. It's possible to configure RTL such that DWC_USB3_

[PATCH net] r8152: don't execute runtime suspend if the tx is not empty

2017-01-22 Thread Hayes Wang
Runtime suspend shouldn't be executed if the tx queue is not empty, because the device is not idle. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 0e99af0..e1466b

[RESEND PATCH] usb: chipidea: delete an useless header include

2017-01-22 Thread Jisheng Zhang
is for net phy drivers, we don't need it. Signed-off-by: Jisheng Zhang --- drivers/usb/chipidea/core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index 3dbb4a21ab44..77078083e9fb 100644 --- a/drivers/usb/chipidea/core.c +++ b/dri

[RESEND PATCH] usb: chipidea: usb2: delete the redundant setting default DMA mask code

2017-01-22 Thread Jisheng Zhang
Similar as commit 2b2fe36def08 ("usb: chipidea: imx: delete the redundant setting default DMA mask code"), the ci_hdrc_usb2 platform device is also created by device tree, the default DMA mask should be already set by of_dma_configure when the device are created. So delete the redundant code at dri

Re: [PATCH linux-next 1/1] usb: gadget: udc: atmel: Update endpoint allocation scheme

2017-01-22 Thread Ludovic Desroches
Hi Cristian, Minor comments about syntax otherwise Reviewed-by: Ludovic Desroches On Fri, Jan 20, 2017 at 05:40:59PM +0200, cristian.bir...@microchip.com wrote: > From: Cristian Birsan > > Update atmel udc driver with a new enpoint allocation scheme. The data > sheet requires that all endpoint