[PATCH v5 2/5] xhci: Platform: Set Synopsis device disconnection quirk based on platform data

2015-02-21 Thread Sneeker Yeh
If an xhci platform has Synopsis device disconnection errata then enable XHCI_DISCONNECT_QUIRK quirk flag. Signed-off-by: Sneeker Yeh --- drivers/usb/host/xhci-plat.c |3 +++ include/linux/usb/xhci_pdriver.h |4 2 files changed, 7 insertions(+) diff --git a/drivers/usb/host/xhc

[PATCH v5 1/5] xhci: add a quirk for device disconnection errata for Synopsis Designware USB3 core

2015-02-21 Thread Sneeker Yeh
This issue is defined by a three-way race at disconnect, between 1) Class driver interrupt endpoint resheduling attempts if the ISR gave an ep error event due to device detach (it would try 3 times) 2) Disconnect interrupt on PORTSC_CSC, which is cleared by hub thread asynchronously 3) The ha

[PATCH v5 4/5] usb: dwc3: Add quirk for Synopsis device disconnection errata

2015-02-21 Thread Sneeker Yeh
Synopsis Designware USB3 IP earlier than v3.00a which is configured in silicon with DWC_USB3_SUSPEND_ON_DISCONNECT_EN=1, would need a specific quirk to prevent xhci host controller from dying when device is disconnected. Since DWC_USB3_SUSPEND_ON_DISCONNECT_EN is an IP configuration whose state ca

[PATCH v5 5/5] usb: dwc3: add Fujitsu Specific Glue layer

2015-02-21 Thread Sneeker Yeh
This patch adds support for Synopsis DesignWare USB3 IP Core found on Fujitsu Socs. Signed-off-by: Sneeker Yeh --- .../devicetree/bindings/usb/fujitsu-dwc3.txt | 33 drivers/usb/dwc3/Kconfig | 10 + drivers/usb/dwc3/Makefile |

[PATCH v5 3/5] usb: dwc3: add revision number DWC3_REVISION_290A and DWC3_REVISION_300A

2015-02-21 Thread Sneeker Yeh
Add the contstant for v2.90a and v3.00a dwc3 IP detection Signed-off-by: Sneeker Yeh --- drivers/usb/dwc3/core.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index d201910..0b3bb0f 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/us

[PATCH v5 0/5] Add support for Fujitsu USB host controller

2015-02-21 Thread Sneeker Yeh
These patches add support for XHCI compliant Host controller found on Fujitsu Socs, and are based on http://lwn.net/Articles/629162/ The first patch is to add Fujitsu glue layer of Synopsis DesignWare USB3 driver and last four patch is about quirk implementation of errata in Synopsis DesignWare USB

Re: [PATCH v4 4/4] phy: add phy-hi6220-usb

2015-02-21 Thread zhangfei
Hi, Balbi On 02/22/2015 12:21 AM, Felipe Balbi wrote: Hi, On Sat, Feb 21, 2015 at 11:03:05PM +0800, zhangfei wrote: +static void hi6220_start_peripheral(struct hi6220_priv *priv, bool on) +{ + struct usb_otg *otg = priv->phy.otg; + + if (!otg->gadget) + return; + +

[PATCH 00/27] Convert seq_ output calls to return void

2015-02-21 Thread Joe Perches
As Al Viro said: we are getting well-meaning folks who try to check that return value, again and again, getting it wrong every time. Typical idiocies: * return some kind of error out of ->show() on overflows. Pointless *and* wrong - only hard errors (== fail read(2) with that) should be

[PATCH 10/27] pxa27x_udc: Remove use of seq_printf return value

2015-02-21 Thread Joe Perches
The seq_printf return value, because it's frequently misused, will eventually be converted to void. See: commit 1f33c41c03da ("seq_file: Rename seq_overflow() to seq_has_overflowed() and make public") While there, simplify the error handler logic by returning immediately and remove the unnec

[PATCH v2] xhci: fix reporting of 0-sized URBs in control endpoint

2015-02-21 Thread Aleksander Morgado
When a control transfer has a short data stage, the xHCI controller generates two transfer events: a COMP_SHORT_TX event that specifies the untransferred amount, and a COMP_SUCCESS event. But when the data stage is not short, only the COMP_SUCCESS event occurs. Therefore, xhci-hcd must set urb->act

Re: gt-s5570 and pl2303.ko

2015-02-21 Thread Greg KH
On Sat, Feb 21, 2015 at 09:38:20AM +0100, Milutin Aksic wrote: > Ok, then what I should try else what can be the problem why host driver > doesn't bind to the device? Maybe the phone gt-s5570 doesn't have > any hardware (but I doubt it is the truth) or something else. I have no idea what hardware

Re: [PATCH v4 4/4] phy: add phy-hi6220-usb

2015-02-21 Thread Felipe Balbi
Hi, On Sat, Feb 21, 2015 at 11:03:05PM +0800, zhangfei wrote: > +static void hi6220_start_peripheral(struct hi6220_priv *priv, bool on) > +{ > + struct usb_otg *otg = priv->phy.otg; > + > + if (!otg->gadget) > + return; > + > + if (on) > + usb_ga

Re: [PATCH] xhci: fix reporting of 0-sized URBs in control endpoint

2015-02-21 Thread Aleksander Morgado
On Sat, Feb 21, 2015 at 4:34 PM, Alan Stern wrote: > On Sat, 21 Feb 2015, Aleksander Morgado wrote: > >> Probably didn't explain well, sorry, likely mixing terms. What I mean >> is that when the data length received is equal to the transfer buffer >> length, we get a single IRQ event saying COMP_S

Re: [PATCH] xhci: fix reporting of 0-sized URBs in control endpoint

2015-02-21 Thread Alan Stern
On Sat, 21 Feb 2015, Aleksander Morgado wrote: > Probably didn't explain well, sorry, likely mixing terms. What I mean > is that when the data length received is equal to the transfer buffer > length, we get a single IRQ event saying COMP_SUCCESS, with an event > len = 0; the URB length in that ca

Re: [PATCH v4 4/4] phy: add phy-hi6220-usb

2015-02-21 Thread zhangfei
Hi, Balbi On 02/21/2015 12:06 AM, Felipe Balbi wrote: Hi, On Fri, Feb 20, 2015 at 11:44:37PM +0800, zhangfei wrote: Hi, Balbi On 02/20/2015 10:41 PM, Felipe Balbi wrote: +static void hi6220_start_peripheral(struct hi6220_priv *priv, bool on) +{ + struct usb_otg *otg = priv->phy.otg; +

Re: [PATCH] xhci: fix reporting of 0-sized URBs in control endpoint

2015-02-21 Thread Aleksander Morgado
Hey Alan, On Sat, Feb 21, 2015 at 3:47 AM, Alan Stern wrote: > On Sat, 21 Feb 2015, Aleksander Morgado wrote: > >> When the control TD doesn't have TRBs in the data stage, the URB actual >> length >> is set equal to the transfer buffer length. E.g. with a 64 byte transfer >> buffer >> length: >

Re: gt-s5570 and pl2303.ko

2015-02-21 Thread Milutin Aksic
On 02/20/2015 11:48 PM, Greg KH wrote: On Fri, Feb 20, 2015 at 11:37:17PM +0100, Milutin Aksic wrote: On 02/20/2015 09:22 PM, Greg KH wrote: On Fri, Feb 20, 2015 at 05:37:37PM +0100, Milutin Aksic wrote: On 02/20/2015 04:31 PM, Greg KH wrote: On Fri, Feb 20, 2015 at 11:22:54AM +0100, Mi