[PATCH RFC] usb: chipidea: add support for usb_phy in generic usb2

2015-01-03 Thread Baruch Siach
Signed-off-by: Baruch Siach --- drivers/usb/chipidea/ci_hdrc_usb2.c | 5 + 1 file changed, 5 insertions(+) I'm sending this as RFC as I'm not sure this is the right thing to do. There seems to be a move away from USB specific PHY drivers towards the generic PHY framework (drivers/phy). The t

[PATCH 2/2] Chipidea: Set connect-at-fullspeed bit when entering host mode if CI_HDRC_FORCE_FULLSPEED is set in the platform data

2015-01-03 Thread Daniel Tang
PORTSC_PFSC is not set on entering host mode which means the USB OTG controller will attempt to enumerate USB devices at high speed even when the CI_HDRC_FORCE_FULLSPEED flag is set in the platform data. This patch ensures it is set right before host mode operations begin if needed. Signed-off-by

[PATCH 1/2] Chipidea: TI-NSPIRE USB OTG hardware does not support high speed and must connect at full speed

2015-01-03 Thread Daniel Tang
Signed-off-by: Daniel Tang --- drivers/usb/chipidea/ci_hdrc_zevio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/chipidea/ci_hdrc_zevio.c b/drivers/usb/chipidea/ci_hdrc_zevio.c index d976fc1..1264de5 100644 --- a/drivers/usb/chipidea/ci_hdrc_zevio.c +++ b/drive

Re: xhci_hcd: ERROR Transfer event for disabled endpoint or incorrect stream ring

2015-01-03 Thread Andreas Thalhammer
Interestingly, after connecting a different external USB storage dock (this time it is USB 2.0) to the internal USB connector of the PCIe expansion card (the internal connector is connected to a front USB connection panel) I don't see the same error. But this time the USB mode used is not uas, but

Re: xhci_hcd: ERROR Transfer event for disabled endpoint or incorrect stream ring

2015-01-03 Thread Andreas Thalhammer
May also be of interest: I've used the external USB 3.0 dock with the 2 TB HDD now for > 10 hours and no instability or crashes of any kind. I'm copying video files and watching them from the USB device in question works as expected. I'm running kernel 3.18.1-gentoo on amd64. Please let me know i

xhci_hcd: ERROR Transfer event for disabled endpoint or incorrect stream ring

2015-01-03 Thread Andreas Thalhammer
As requested re-sent 1:1 on linux-usb@vger.kernel.org ; original report is https://bugzilla.kernel.org/show_bug.cgi?id=90651. -- I connected my external USB 3.0 storage via a PCIe USB 3.0 expansion card. This is the relevant dmesg output: [ 1395.741441]

Re: Possible race condition in USB gadget probing?

2015-01-03 Thread Felipe Balbi
Hi, On Sat, Jan 03, 2015 at 10:53:20PM +1100, Daniel Tang wrote: > Hi, > > I’ve run into a problem which I suspect is to with how > usb_gadget_probe_driver is implemented in > drivers/usb/gadget/udc/udc-core.c > > I have an embedded system that uses the Chipidea OTG controller. > Unfortunately,

Re: Pls add VID/PID

2015-01-03 Thread Johan Hovold
On Fri, Jan 02, 2015 at 01:26:20AM +0100, Rene Armes wrote: > Hi and a happy New year, > > Please add VID 0x243d PID 0001 to USB-serial generic driver. That is a > heating control running on STM32F1xx and provide a VCP based of STMs > VCP lib. It also provide a mass storage, but this is correct de

[PATCH 1/2] USB: console: fix uninitialised ldisc semaphore

2015-01-03 Thread Johan Hovold
The USB console currently allocates a temporary fake tty which is used to pass terminal settings to the underlying serial driver. The tty struct is not fully initialised, something which can lead to a lockdep warning (or worse) if a serial driver tries to acquire a line-discipline reference:

[PATCH 2/2] USB: console: fix potential use after free

2015-01-03 Thread Johan Hovold
Use tty kref to release the fake tty in usb_console_setup to avoid use after free if the underlying serial driver has acquired a reference. Fixes: 4a90f09b20f4 ("tty: usb-serial krefs") Cc: stable Signed-off-by: Johan Hovold --- drivers/usb/serial/console.c | 13 ++--- 1 file changed, 1

Re: USB-serial console and lockdep

2015-01-03 Thread Johan Hovold
On Wed, Dec 31, 2014 at 09:07:59PM -0500, Peter Hurley wrote: > Hi Johan, > > On 11/18/2014 11:18 AM, Johan Hovold wrote: > > I get this missing-lockdep-annotation warning which I haven't seen > > before when booting with a usb-serial console on 3.18-rc5. It's been a > > while since I last tested

Possible race condition in USB gadget probing?

2015-01-03 Thread Daniel Tang
Hi, I’ve run into a problem which I suspect is to with how usb_gadget_probe_driver is implemented in drivers/usb/gadget/udc/udc-core.c I have an embedded system that uses the Chipidea OTG controller. Unfortunately, when it boots up, the driver is loaded but there’s no USB gadget that gets atta