Kernel Ooops upon USB disconnect of a Western Digital My Passport 1TB drive

2015-01-26 Thread Athlion
Hello all. On my Thunkpad T420i with 3.18.2 and 3.18.3 kernels, I can reproduce the following behaviour 100% of the time: 1. Connect one of my (NTFS-formatted) WD 1TB 'My Passport' drives via USB. 2. Disconnect the cable. 3. Kernel Ooops. For last entries of the journal (it actually caught the k

Re: [PATCH v2 1/3] usb: phy: generic: migrate to gpio_desc

2015-01-26 Thread Robert Jarzmik
Robert Jarzmik writes: > I'm not convinced of the "so many issues". So far I see the > "gpiod_get_optional()" requirement, which is a one liner patch. Would you try the following patch to see if it fixes all your concerns please ? Cheers. -- Robert ---<8--- >From 7b34a3aa2a0717b53cd458611048f

Re: [PATCH v2 1/3] usb: phy: generic: migrate to gpio_desc

2015-01-26 Thread Robert Jarzmik
Fabio Estevam writes: > On Sat, Dec 6, 2014 at 7:05 PM, Robert Jarzmik wrote: >> Change internal gpio handling from integer gpios into gpio >> descriptors. This change only addresses the internal API and >> device-tree/ACPI, while the legacy platform data remains integer space >> based. >> >> Th

[RFC PATCH 2/4] usb: chipidea: udc: add set_selfpowered gaget ops

2015-01-26 Thread Peter Chen
The gadget power property will be used at get_status request. Signed-off-by: Peter Chen --- drivers/usb/chipidea/udc.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index 540db0e..45914ba 100644 --- a/drivers/usb/chipi

[RFC PATCH 4/4] usb: udc-core: add is_selfpowered sys entry

2015-01-26 Thread Peter Chen
The user can read it through sys entry. Signed-off-by: Peter Chen --- drivers/usb/gadget/udc/udc-core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/gadget/udc/udc-core.c b/drivers/usb/gadget/udc/udc-core.c index 86d4d19..4f1aed4 100644 --- a/drivers/usb/gadget/udc/udc-core

[RFC PATCH 1/4] usb: gadget: introduce is_selfpowered for usb_gadget

2015-01-26 Thread Peter Chen
Whether the gadget is selfpowerwed or not can be determined by composite core, so we can use a common entry to indicate if the self-powered is supported by gadget, and the related private variable at individual udc driver can be deleted. Signed-off-by: Peter Chen --- include/linux/usb/gadget.h |

[RFC PATCH 3/4] usb: gadget: at91_udc: use common is_selfpowered

2015-01-26 Thread Peter Chen
Delete private selfpowered variable, and use common one. Signed-off-by: Peter Chen --- drivers/usb/gadget/udc/at91_udc.c | 8 drivers/usb/gadget/udc/at91_udc.h | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/usb/gadget/udc/at91_udc.c b/drivers/usb/gadget/u

[RFC PATCH 0/4] usb: gadget: add is_selfpowered

2015-01-26 Thread Peter Chen
Hi Felipe, We can use a common is_selfpowered flag at usb_gadget to indicate whether the gadget is self-powered or bus-powered, it can avoid every udc driver defining a similar flag, and the user can read it through udc core sys entry. In the 1st patch, I introduce is_selfpowered for usb_gadget.

Re: [GIT PULL] USB fixes for v3.19-rc

2015-01-26 Thread Greg KH
On Thu, Jan 22, 2015 at 01:36:33PM -0600, Felipe Balbi wrote: > Hi Greg, > > two more fixes needed from my side. Let me know if you prefer > to handle them differently. > > cheers > > The following changes since commit ec6f34e5b552fb0a52e6aae1a5afbbb1605cc6cc: > > Linux 3.19-rc5 (2015-01-18 1

RE: [RFC PATCH] usb: dwc2: Use platform endianness when accessing registers

2015-01-26 Thread John Youn
> From: Vincent Pelletier [mailto:plr.vinc...@gmail.com] > Sent: Friday, January 23, 2015 12:19 AM > > On Fri, 23 Jan 2015 02:38:37 +, John Youn > wrote: > > Having the __raw functions everywhere is not pretty and probably not a > > good idea either. > > > > I would rather have a dwc2_writel/

Re: [PATCH v1] ehci-pci: disable for Intel MID platforms

2015-01-26 Thread Peter Chen
On Mon, Jan 26, 2015 at 01:23:47PM -0500, Alan Stern wrote: > On Mon, 26 Jan 2015, Andy Shevchenko wrote: > > > On Mon, 2015-01-26 at 09:21 -0800, Greg KH wrote: > > > On Mon, Jan 26, 2015 at 07:10:42PM +0200, Andy Shevchenko wrote: > > > > On some Intel MID platforms the ChipIdea USB controller i

Re: [PATCH v2 1/7] extcon: usb-gpio: Introduce gpio usb extcon driver

2015-01-26 Thread Chanwoo Choi
Hi Roger, On 01/27/2015 01:27 AM, Roger Quadros wrote: > Hi Chanwoo, > > All your comments are valid. Need some clarification on one comment. > > On 26/01/15 15:56, Chanwoo Choi wrote: >> Hi Roger, >> >> This patch looks good to me. But I add some comment. >> If you modify some comment, I'll app

Re: [PATCH v3] ARM: zynq: DT: Add USB to device tree

2015-01-26 Thread Sören Brinkmann
On Tue, 2015-01-27 at 02:14AM +0100, Andreas Färber wrote: > + linux-gpio, linux-usb, Felipe Balbi > > Am 26.01.2015 um 19:44 schrieb Sören Brinkmann: > > On Mon, 2015-01-26 at 08:23AM -0800, Sören Brinkmann wrote: > >> On Mon, 2015-01-26 at 05:21PM +0100, Andreas Färber wrote: > >>> Am 26.01.2015

[PATCH] usb: phy-generic: Don't fail on missing gpio reset

2015-01-26 Thread Soren Brinkmann
A reset through a GPIO is optional. Don't fail probing when it is missing. Reported-by: Andreas Färber Signed-off-by: Soren Brinkmann --- Hi Andreas, does this do the trick? Thanks, Sören drivers/usb/phy/phy-generic.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-

Re: [PATCH v1] chipidea: pci: register nop PHY

2015-01-26 Thread Peter Chen
On Mon, Jan 26, 2015 at 05:38:25PM +, Shevchenko, Andriy wrote: > On Fri, 2014-11-28 at 14:42 +0200, Andy Shevchenko wrote: > > On Mon, 2014-11-17 at 09:46 +0800, Peter Chen wrote: > > [] > > > > Rebase my next tree where antoine's generic phy support for chipidea > > > driver in it, and for

Re: [PATCH v2 1/3] usb: phy: generic: migrate to gpio_desc

2015-01-26 Thread Fabio Estevam
On Sat, Dec 6, 2014 at 7:05 PM, Robert Jarzmik wrote: > Change internal gpio handling from integer gpios into gpio > descriptors. This change only addresses the internal API and > device-tree/ACPI, while the legacy platform data remains integer space > based. > > This change is only build compile

Re: [PATCH v3] ARM: zynq: DT: Add USB to device tree

2015-01-26 Thread Andreas Färber
+ linux-gpio, linux-usb, Felipe Balbi Am 26.01.2015 um 19:44 schrieb Sören Brinkmann: > On Mon, 2015-01-26 at 08:23AM -0800, Sören Brinkmann wrote: >> On Mon, 2015-01-26 at 05:21PM +0100, Andreas Färber wrote: >>> Am 26.01.2015 um 16:50 schrieb Sören Brinkmann: On Mon, 2015-01-26 at 10:35AM +

Re: Fatal Exception on device when Hotsyncing Palm in linux

2015-01-26 Thread Dan Williams
On Mon, 2015-01-26 at 23:33 +0100, Henri Manson wrote: > From lsusb: > > Bus 008 Device 013: ID 0830:0002 Palm, Inc. m505 I've blacklisted anything driven by 'visor' upstream in ModemManager, since most of those appear to be non-phone devices. Yes, 3 are phones (Samsung and Acer) but they are so

Re: Fatal Exception on device when Hotsyncing Palm in linux

2015-01-26 Thread Henri Manson
>From lsusb: Bus 008 Device 013: ID 0830:0002 Palm, Inc. m505 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Fatal Exception on device when Hotsyncing Palm in linux

2015-01-26 Thread Dan Williams
On Mon, 2015-01-26 at 22:49 +0100, Henri Manson wrote: > Indeed /usr/sbin/ModemManager (Ubuntu 14.04) or > /usr/sbin/modem-manager (Ubuntu 10.04) is the program that is started > when a Palm is connected and is causing the 'Fatal Exception' on the > Palm m505. Moving it out of the way is the soluti

[PATCH 1/2] usb: musb: cppi41: correct the macro name EP_MODE_AUTOREG_*

2015-01-26 Thread Bin Liu
The macro EP_MODE_AUTOREG_* should be called EP_MODE_AUTOREQ_*, as they are used for register AUTOREQ. Signed-off-by: Bin Liu --- drivers/usb/musb/musb_cppi41.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/usb/musb/musb_cppi41.c b/drivers/usb/musb/musb

[PATCH 2/2] usb: musb: cppi41: improve rx channel abort routine

2015-01-26 Thread Bin Liu
1. set AUTOREQ to NONE at the beginning of teardown; 2. add delay for dma pipeline to drain; 3. Do not set USB_TDOWN bit for RX teardown. The CPPI hw has an issue that when tearing down a RX channel, if another RX channel is receiving data, the CPPI will lockup. To workaround the issue, d

Re: Control message failures kill entire XHCI stack

2015-01-26 Thread Alistair Grant
I've come across what appears to be another xHCI issue - attempting to format a disk with gparted is causing a kernel Oops. This may not be related to the issue you're currently investigating, but wanted to pass it on in case it is (if it isn't let me know and I'll either keep quiet or raise it se

Re: Fatal Exception on device when Hotsyncing Palm in linux

2015-01-26 Thread Henri Manson
Indeed /usr/sbin/ModemManager (Ubuntu 14.04) or /usr/sbin/modem-manager (Ubuntu 10.04) is the program that is started when a Palm is connected and is causing the 'Fatal Exception' on the Palm m505. Moving it out of the way is the solution. How can I update the blacklist myself? On Mon, Jan 26, 201

[PATCH v2] usb: Retry port status check on resume to work around RH bugs

2015-01-26 Thread Julius Werner
The EHCI controller on the RK3288 SoC is violating basic parts of the USB spec and thereby unable to properly resume a suspended port. It does not start SOF generation within 3ms of finishing resume signaling, so the attached device will drop off the bus again. This is a particular problem with run

Re: [PATCH] usb: Retry port status check on resume to work around RH bugs

2015-01-26 Thread Julius Werner
> You should use a sleeping function call, not a delay. Whoops... yes, of course. Guess too much firmware work made me forget what multithreading is there for a moment. Will send a v2. -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vge

Re: Fatal Exception on device when Hotsyncing Palm in linux

2015-01-26 Thread Dan Williams
On Mon, 2015-01-26 at 19:17 +0100, Johan Hovold wrote: > On Mon, Jan 26, 2015 at 04:00:26PM +0100, Henri Manson wrote: > > Hello, > > > > I performed the test using VirtualBox and live cd iso images, so > > mixing different version of kernel and user-space programs does not > > happen. > > You'd

Re: [PATCH 2/2] Fix force effect modifications for the Microsoft Sidewinder Force Feedback Pro 2 joystick

2015-01-26 Thread Jiri Kosina
On Sat, 24 Jan 2015, Jim Keir wrote: > Yes, confirmed. The description below still holds. Could you please therefore fix this patch so that it contains proper changelog on proper place, and resubmit? Also, the Subject line looks rather strange to me ... to my understanding, this isn't really s

Re: [PATCH 1/2] Fix initialisation for the Microsoft Sidewinder Force Feedback Pro 2 joystick

2015-01-26 Thread Jiri Kosina
On Fri, 23 Jan 2015, Benjamin Tissoires wrote: > With the changes above (or if you fix my typos), the patch is > Reviewed-by: Benjamin.tissoires > > Jiri, could you amend the commit with the above so that Jim won't be > desperate by submitting a patch? Done and applied this one. Jim, please mak

Re: [PATCH 6/8] usb: dwc3: add ULPI interface support

2015-01-26 Thread Felipe Balbi
On Mon, Jan 26, 2015 at 01:46:10PM +0200, Heikki Krogerus wrote: > On Fri, Jan 23, 2015 at 10:24:43AM -0600, Felipe Balbi wrote: > > On Fri, Jan 23, 2015 at 05:12:56PM +0200, Heikki Krogerus wrote: > > > +int dwc3_ulpi_init(struct dwc3 *dwc) > > > +{ > > > + u32 reg; > > > + > > > + /* First check

Re: [PATCH 8/8] phy: add driver for TI TUSB1210 ULPI PHY

2015-01-26 Thread David Cohen
Hi Heikki, On Mon, Jan 26, 2015 at 02:55:03PM +0200, Heikki Krogerus wrote: > Hi David, > > On Sat, Jan 24, 2015 at 03:58:11PM -0800, David Cohen wrote: > > > +static int tusb1210_power_on(struct phy *phy) > > > +{ > > > + struct tusb1210 *tusb = phy_get_drvdata(phy); > > > + > > > + gpiod_set_va

Re: [PATCH] usb: gadget: f_fs: Fix loop variable

2015-01-26 Thread Felipe Balbi
On Mon, Jan 26, 2015 at 07:46:42AM +0100, Robert Baldyga wrote: > On 01/23/2015 10:18 PM, Mario Schuknecht wrote: > > Use if-loop variable 'epfile' instead of start variable 'epfiles'. Now the > > correct endpoint file name is stored. > > > > Signed-off-by: Mario Schuknecht > > --- > > drivers/u

Re: [PATCH] usb: gadget: Fix os desc test

2015-01-26 Thread Felipe Balbi
On Mon, Jan 26, 2015 at 01:26:19PM +0100, Andrzej Pietrasiewicz wrote: > W dniu 26.01.2015 o 12:47, Mario Schuknecht pisze: > >USB vendor type is encoded in field bmRequestType. Make test USB_TYPE_VENDOR > >with bRequestType instead of bRequest. > > > >Signed-off-by: Mario Schuknecht > > Acked-by

Re: [PATCH v1] ehci-pci: disable for Intel MID platforms

2015-01-26 Thread Alan Stern
On Mon, 26 Jan 2015, Andy Shevchenko wrote: > On Mon, 2015-01-26 at 09:21 -0800, Greg KH wrote: > > On Mon, Jan 26, 2015 at 07:10:42PM +0200, Andy Shevchenko wrote: > > > On some Intel MID platforms the ChipIdea USB controller is used. The EHCI > > > PCI > > > is in conflict with the proper drive

Re: Fatal Exception on device when Hotsyncing Palm in linux

2015-01-26 Thread Johan Hovold
On Mon, Jan 26, 2015 at 04:00:26PM +0100, Henri Manson wrote: > Hello, > > I performed the test using VirtualBox and live cd iso images, so > mixing different version of kernel and user-space programs does not > happen. You'd probably need to compile your own kernel (e.g. test an old kernel on yo

Re: [PATCH v1] ehci-pci: disable for Intel MID platforms

2015-01-26 Thread Andy Shevchenko
On Mon, 2015-01-26 at 09:21 -0800, Greg KH wrote: > On Mon, Jan 26, 2015 at 07:10:42PM +0200, Andy Shevchenko wrote: > > On some Intel MID platforms the ChipIdea USB controller is used. The EHCI > > PCI > > is in conflict with the proper driver. The patch makes a quick fix to get > > Intel > > Me

Re: [PATCH v1] chipidea: pci: register nop PHY

2015-01-26 Thread Shevchenko, Andriy
On Fri, 2014-11-28 at 14:42 +0200, Andy Shevchenko wrote: > On Mon, 2014-11-17 at 09:46 +0800, Peter Chen wrote: [] > > Rebase my next tree where antoine's generic phy support for chipidea > > driver in it, and for usb phy, the "phy" changes to "usb_phy". > > Okay, I'm going to change the name i

Re: [PATCH v1] ehci-pci: disable for Intel MID platforms

2015-01-26 Thread Greg KH
On Mon, Jan 26, 2015 at 07:10:42PM +0200, Andy Shevchenko wrote: > On some Intel MID platforms the ChipIdea USB controller is used. The EHCI PCI > is in conflict with the proper driver. The patch makes a quick fix to get > Intel > Medfield platforms work back. > > One would make a proper patch to

[PATCH v1] ehci-pci: disable for Intel MID platforms

2015-01-26 Thread Andy Shevchenko
On some Intel MID platforms the ChipIdea USB controller is used. The EHCI PCI is in conflict with the proper driver. The patch makes a quick fix to get Intel Medfield platforms work back. One would make a proper patch to address the issue. Fixes: adfa79d1c06a (USB: EHCI: make ehci-pci a separate

Re: USB autosuspend causing trouble with bluetooth

2015-01-26 Thread Kirill Elagin
Things just got way worse with this hotplug thing. When the host power/control is set to `auto`, as soon as I insert the Unifying receiver one of kworkers starts eating 100% of one of the cores, according to `htop`. As soon as I `echo on` to power/control of the relevant USB hub the kworker stops

Re: [PATCH v2 1/7] extcon: usb-gpio: Introduce gpio usb extcon driver

2015-01-26 Thread Roger Quadros
Hi Chanwoo, All your comments are valid. Need some clarification on one comment. On 26/01/15 15:56, Chanwoo Choi wrote: > Hi Roger, > > This patch looks good to me. But I add some comment. > If you modify some comment, I'll apply this patch on 3.21 queue. > > On Mon, Jan 26, 2015 at 9:15 PM, Ro

Re: [PATCH 2/2] usb: musb: try a race-free wakeup

2015-01-26 Thread Bin Liu
Hi Sebastian, On Mon, Jan 26, 2015 at 2:57 AM, Sebastian Andrzej Siewior wrote: > On 01/21/2015 06:06 PM, Bin Liu wrote: >> Hi Sebastian, > > Hi Bin, > >> With this patch, hubs stop working on TI AM335x EVMs when autosuspend >> is enabled. >> >> I booted the board, connected a hub to the USB1 hos

usb_debug serial driver protocol

2015-01-26 Thread Michael Zimmermann
Hi, I want to use the usb_debug serial driver as a UART shell on my (embedded) device, because I just want to use it as a console(without a complex protocol so I can easily use putchar and getchar functions). This seems to work pretty good except for two things. Once upon establishing a connectio

Re: [PATCH] USB: cp210x: add ID for RUGGEDCOM USB Serial Console

2015-01-26 Thread Lennart Sorensen
On Mon, Jan 26, 2015 at 01:40:34PM +0100, Johan Hovold wrote: > On Wed, Jan 21, 2015 at 03:24:27PM -0500, Lennart Sorensen wrote: > > Added the USB serial console device ID for Siemens Ruggedcom devices > > which have a USB port for their serial console. > > > > Signed-off-by: Len Sorensen > > --

Re: Seagate Expansion external drive, still problems

2015-01-26 Thread Alan Stern
On Fri, 23 Jan 2015 pras...@anche.no wrote: > Hi. The device in question is the external usb hdd Seagate Expansion 1TB. > It claims to be usb 3.0 and also to be usable on usb 2.0 systems. > Vendor and device ids are 0bc2 and 2312. > > I have tested it on the fresh 3.18.3 from kernel.org, on a lap

Re: Fatal Exception on device when Hotsyncing Palm in linux

2015-01-26 Thread Henri Manson
Hello, I performed the test using VirtualBox and live cd iso images, so mixing different version of kernel and user-space programs does not happen. In 9.04 there is no usb communication until pilot-xfer is started (a user-space program), in 10.04 usb communication happens directly after hotsyncing

Re: [PATCH] Revert "usb: Reset USB-3 devices on USB-3 link bounce"

2015-01-26 Thread Hans de Goede
Hi, On 26-01-15 16:30, Zhuang Jin Can wrote: This revert a82b76f7fa6154e8ab2d8071842a3e38b9c0d0ff. The commit causes an extra reset in remote wakeup as described in: http://www.spinics.net/lists/linux-usb/msg119080.html Signed-off-by: Zhuang Jin Can No objection from me (*) against revertin

[PATCH] Revert "usb: Reset USB-3 devices on USB-3 link bounce"

2015-01-26 Thread Zhuang Jin Can
This revert a82b76f7fa6154e8ab2d8071842a3e38b9c0d0ff. The commit causes an extra reset in remote wakeup as described in: http://www.spinics.net/lists/linux-usb/msg119080.html Signed-off-by: Zhuang Jin Can --- drivers/usb/core/hub.c | 34 +- 1 file changed, 9 in

Re: [PATCH v2 1/7] extcon: usb-gpio: Introduce gpio usb extcon driver

2015-01-26 Thread Chanwoo Choi
Hi Roger, This patch looks good to me. But I add some comment. If you modify some comment, I'll apply this patch on 3.21 queue. On Mon, Jan 26, 2015 at 9:15 PM, Roger Quadros wrote: > This driver observes the USB ID pin connected over a GPIO and > updates the USB cable extcon states accordingly.

Re: Fatal Exception on device when Hotsyncing Palm in linux

2015-01-26 Thread Johan Hovold
On Mon, Jan 19, 2015 at 05:08:07PM +0100, Henri Manson wrote: > Apparently on 9.04 USB communications happen after invoking pilot-link > while in 10.04 it happens directly when Hotsync is activated on the > device. Enclosed the 9.04 syslog file and MenuExample.prc which is > sent using: > > pilot-

Re: [PATCH 8/8] phy: add driver for TI TUSB1210 ULPI PHY

2015-01-26 Thread Heikki Krogerus
Hi David, On Sat, Jan 24, 2015 at 03:58:11PM -0800, David Cohen wrote: > > +static int tusb1210_power_on(struct phy *phy) > > +{ > > + struct tusb1210 *tusb = phy_get_drvdata(phy); > > + > > + gpiod_set_value_cansleep(tusb->gpio_reset, 1); > > + gpiod_set_value_cansleep(tusb->gpio_cs, 1); >

Re: [PATCH] usb: gadget: f_fs: Fix loop variable

2015-01-26 Thread Michal Nazarewicz
On 01/23/2015 10:18 PM, Mario Schuknecht wrote: > Use if-loop variable 'epfile' instead of start variable 'epfiles'. Now the > correct endpoint file name is stored. > > Signed-off-by: Mario Schuknecht > --- > drivers/usb/gadget/function/f_fs.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 del

Re: [PATCH] USB: cp210x: add ID for RUGGEDCOM USB Serial Console

2015-01-26 Thread Johan Hovold
On Wed, Jan 21, 2015 at 03:24:27PM -0500, Lennart Sorensen wrote: > Added the USB serial console device ID for Siemens Ruggedcom devices > which have a USB port for their serial console. > > Signed-off-by: Len Sorensen > --- > drivers/usb/serial/cp210x.c |1 + > 1 file changed, 1 insertion(+

Re: [PATCH] usb: gadget: Fix os desc test

2015-01-26 Thread Andrzej Pietrasiewicz
W dniu 26.01.2015 o 12:47, Mario Schuknecht pisze: USB vendor type is encoded in field bmRequestType. Make test USB_TYPE_VENDOR with bRequestType instead of bRequest. Signed-off-by: Mario Schuknecht Acked-by: Andrzej Pietrasiewicz --- drivers/usb/gadget/composite.c | 2 +- 1 file change

[PATCH v2 2/7] usb: extcon: Fix USB-Host cable name

2015-01-26 Thread Roger Quadros
The recommended name for USB-Host cable state is "USB-Host" and not "USB-HOST" as per drivers/extcon/extcon-class.c extcon_cable_name. Change all instances of "USB-HOST" to "USB-Host". Signed-off-by: Roger Quadros Reviewed-by: Felipe Balbi Acked-by: Felipe Balbi --- drivers/extcon/extcon-palm

[PATCH v2 6/7] ARM: dts: am57xx-beagle-x15: Fix USB2 mode

2015-01-26 Thread Roger Quadros
On this board USB2 is meant to be used as peripheral only. The ID pin for USB2 is hardwired HIGH. Signed-off-by: Roger Quadros --- arch/arm/boot/dts/am57xx-beagle-x15.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/am57xx-beagle-x15.dts b/arch/arm/boot/dts/am57xx-b

[PATCH v2 0/7] extcon: usb: Introduce USB GPIO extcon driver. Fix DRA7 & AM57xx USB.

2015-01-26 Thread Roger Quadros
Hi, Still hoping this can make into 3.20 else we have USB peripheral mode broken on DRA7-evm, DRA72-evm and AM57xx-beagle-x15. On DRA7 and AM57xx EVMs the USB ID pin is connected to a GPIO line. The USB drivers (dwc3 + dwc3-omap) depend on extcon framework to get the USB cable state (USB or USB-H

[PATCH v2 4/7] ARM: dts: dra72-evm: Add extcon nodes for USB

2015-01-26 Thread Roger Quadros
On this EVM, the USB cable state has to be determined via the ID pin tied to a GPIO line. We use the gpio-usb-extcon driver to read the ID pin and the extcon framework to forward the USB cable state information to the USB driver so the controller can be configured in the right mode (host/peripheral

[PATCH v2 3/7] ARM: dts: dra7-evm: Add extcon nodes for USB

2015-01-26 Thread Roger Quadros
On this EVM, the USB cable state has to be determined via the ID pin tied to a GPIO line. We use the gpio-usb-extcon driver to read the ID pin and the extcon framework to forward the USB cable state information to the USB driver so the controller can be configured in the right mode (host/peripheral

[PATCH v2 5/7] ARM: dts: am57xx-beagle-x15: Add extcon nodes for USB

2015-01-26 Thread Roger Quadros
On this EVM, the USB cable state has to be determined via the ID pin tied to a GPIO line. We use the gpio-usb-extcon driver to read the ID pin and the extcon framework to forward the USB cable state information to the USB driver so the controller can be configured in the right mode (host/peripheral

[PATCH v2 7/7] ARM: omap2plus_defconfig: Enable EXTCON_GPIO_USB

2015-01-26 Thread Roger Quadros
This driver is needed for USB cable type detection on dra7-evm, dra72-evm and am57xx-beagle-x15. Signed-off-by: Roger Quadros --- arch/arm/configs/omap2plus_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig

[PATCH v2 1/7] extcon: usb-gpio: Introduce gpio usb extcon driver

2015-01-26 Thread Roger Quadros
This driver observes the USB ID pin connected over a GPIO and updates the USB cable extcon states accordingly. The existing GPIO extcon driver is not suitable for this purpose as it needs to be taught to understand USB cable states and it can't handle more than one cable per instance. For the USB

Re: Control message failures kill entire XHCI stack

2015-01-26 Thread Mathias Nyman
On 26.01.2015 05:37, Devin Heitmueller wrote: > Hi Mathias, > > Here's an interesting development: as a result of a related thread on > linux-media, I came across a patch they are distributing in openelec: > > https://github.com/OpenELEC/OpenELEC.tv/commit/b636927dec20652ff020e54ed7838a2e9be51e0

Re: [PATCH 6/8] usb: dwc3: add ULPI interface support

2015-01-26 Thread Heikki Krogerus
On Fri, Jan 23, 2015 at 10:24:43AM -0600, Felipe Balbi wrote: > On Fri, Jan 23, 2015 at 05:12:56PM +0200, Heikki Krogerus wrote: > > +int dwc3_ulpi_init(struct dwc3 *dwc) > > +{ > > + u32 reg; > > + > > + /* First check USB2 PHY interface type */ > > + switch (DWC3_GHWPARAMS3_HSPHY_IFC(dwc->h

Re: [PATCH] usb: gadget: os desc fix

2015-01-26 Thread Andrzej Pietrasiewicz
Hi Mario, W dniu 23.01.2015 o 21:52, Mario Schuknecht pisze: Add missing case USB_EXT_PROP_UNICODE_MULTI to fill_ext_prop. Type vendor is coded in bRequestType. Compare USB_TYPE_VENDOR with bRequestType instead of bRequest. The above seem to be unrelated changes. Please split into two separa

Re: Control message failures kill entire XHCI stack

2015-01-26 Thread Alistair Grant
On Mon, Jan 26, 2015 at 4:37 AM, Devin Heitmueller wrote: > Hi Mathias, > > Here's an interesting development: as a result of a related thread on > linux-media, I came across a patch they are distributing in openelec: > > https://github.com/OpenELEC/OpenELEC.tv/commit/b636927dec20652ff020e54ed783

Re: [PATCH net-next 1/7] r8152: adjust rx_bottom

2015-01-26 Thread Scott Feldman
On Mon, Jan 19, 2015 at 6:48 PM, Hayes Wang wrote: > David Miller [mailto:da...@davemloft.net] >> Sent: Tuesday, January 20, 2015 5:14 AM > [...] >> >> - r8152_submit_rx(tp, agg, GFP_ATOMIC); >> >> + if (!ret) { >> >> + ret = r8152_submit_rx(tp, a

Re: [PATCH 2/2] usb: musb: try a race-free wakeup

2015-01-26 Thread Sebastian Andrzej Siewior
On 01/21/2015 06:06 PM, Bin Liu wrote: > Hi Sebastian, Hi Bin, > With this patch, hubs stop working on TI AM335x EVMs when autosuspend > is enabled. > > I booted the board, connected a hub to the USB1 host port, it got > enumerated properly, then connected a thumb drive to the hub, but the > dri