[PATCH v5] usb: dwc2/gadget: rework disconnect event handling

2014-11-17 Thread Marek Szyprowski
This patch adds a call to s3c_hsotg_disconnect() from 'end session' interrupt (GOTGINT_SES_END_DET) to correctly notify gadget subsystem about unplugged usb cable. DISCONNINT interrupt cannot be used for this purpose, because it is asserted only in host mode. To avoid reporting disconnect event mo

Re: About wakeup IRQ support in USB core

2014-11-17 Thread Oliver Neukum
On Mon, 2014-11-17 at 13:51 +0800, Wang, Yu wrote: > Hi Roger, > > I saw one old thread about your patch for wakeup IRQ support in USB > core. We need it for Intel platform. And it is work well on intel > platform. > > May I know why this patch haven't get merged so far? I saw everything > was sm

Re: About wakeup IRQ support in USB core

2014-11-17 Thread Wang, Yu
On Mon, Nov 17, 2014 at 10:46:25AM +0100, Oliver Neukum wrote: >On Mon, 2014-11-17 at 13:51 +0800, Wang, Yu wrote: >> Hi Roger, >> >> I saw one old thread about your patch for wakeup IRQ support in USB >> core. We need it for Intel platform. And it is work well on intel >> platform. >> >> May I k

Re: usbserial / ftdi_sio (+ others) bug?

2014-11-17 Thread Johan Hovold
[ +CC: linux-usb] Hi Doug, On Mon, Nov 17, 2014 at 12:23:05AM -0500, Douglas Gilbert wrote: > Hi, > I just ran into the "lots ** of spurious zeros on read" problem > with a XBee reader adapter (for USB) from Sparkfun. It is really > annoying. Looked around and your name popped up on a linux-usb >

Re: [PATCH v7 08/13] usb: chipidea: add a usb2 driver for ci13xxx

2014-11-17 Thread Antoine Tenart
Felipe, On Fri, Nov 14, 2014 at 03:13:34PM -0600, Felipe Balbi wrote: > On Fri, Nov 14, 2014 at 10:10:52PM +0100, Antoine Tenart wrote: > > On Fri, Nov 14, 2014 at 03:08:32PM -0600, Felipe Balbi wrote: > > > On Fri, Nov 14, 2014 at 04:25:58PM +0100, Antoine Tenart wrote: > > > > Add a USB2 ChipIde

Re: About wakeup IRQ support in USB core

2014-11-17 Thread Oliver Neukum
On Mon, 2014-11-17 at 17:47 +0800, Wang, Yu wrote: > On Mon, Nov 17, 2014 at 10:46:25AM +0100, Oliver Neukum wrote: > >On Mon, 2014-11-17 at 13:51 +0800, Wang, Yu wrote: > >> Hi Roger, > >> > >> I saw one old thread about your patch for wakeup IRQ support in USB > >> core. We need it for Intel pla

Re: About wakeup IRQ support in USB core

2014-11-17 Thread Wang, Yu
On Mon, Nov 17, 2014 at 11:20:01AM +0100, Oliver Neukum wrote: >On Mon, 2014-11-17 at 17:47 +0800, Wang, Yu wrote: >> On Mon, Nov 17, 2014 at 10:46:25AM +0100, Oliver Neukum wrote: >> >On Mon, 2014-11-17 at 13:51 +0800, Wang, Yu wrote: >> >> Hi Roger, >> >> >> >> I saw one old thread about your pa

Re: About wakeup IRQ support in USB core

2014-11-17 Thread Roger Quadros
Hi Yu, On 11/17/2014 07:51 AM, Wang, Yu wrote: > Hi Roger, > > I saw one old thread about your patch for wakeup IRQ support in USB > core. We need it for Intel platform. And it is work well on intel > platform. > > May I know why this patch haven't get merged so far? I saw everything > was smoot

Re: [PATCHv4 2/6] phy: improved lookup method

2014-11-17 Thread Vivek Gautam
On Fri, Nov 14, 2014 at 7:45 PM, Heikki Krogerus wrote: > Hi Vivek, > > On Thu, Nov 13, 2014 at 07:03:01PM +0530, Vivek Gautam wrote: >> Hi Heikki, Kishon, >> >> How about adding the change in attached patch [1] on top of this patch. >> Just introduced the phy pointer in "phy_lookup" structure, an

[PATCH] usb: dwc2: resume root hub when device detect with suspend state

2014-11-17 Thread Kever Yang
After we implement the bus_suspend/resume, auto suspend id enabled. The root hub will be auto suspend if there is no device connected, we need to resume the root hub when a device connect detect. This patch tested on rk3288. Signed-off-by: Roy Li Signed-off-by: Kever Yang --- drivers/usb/dwc2

[PATCH v8 00/13] ARM: berlin: USB support

2014-11-17 Thread Antoine Tenart
This series adds the support for ChipIdea USB2 (ci13xxx) controllers, the USB PHYs of the Marvell Berlin SoCs and also adds a reset controller for these SoCs. The reset controller is used by the PHY driver and shares the existing chip controller node with the clocks and one pin controller. The Ma

[PATCH v8 10/13] ARM: dts: berlin: add BG2Q nodes for USB support

2014-11-17 Thread Antoine Tenart
Adds nodes describing the Marvell Berlin BG2Q USB PHY and USB. The BG2Q SoC has 3 USB host controller, compatible with ChipIdea. Signed-off-by: Antoine Tenart --- arch/arm/boot/dts/berlin2q.dtsi | 55 + 1 file changed, 55 insertions(+) diff --git a/arch/a

[PATCH v8 12/13] ARM: dts: berlin: add BG2CD nodes for USB support

2014-11-17 Thread Antoine Tenart
From: Sebastian Hesselbarth Adds nodes describing the Marvell Berlin BG2CD USB PHY and USB. The BG2CD SoC has 2 USB ChipIdea controllers, with usb0 host-only and usb1 dual-role capable. Signed-off-by: Sebastian Hesselbarth Signed-off-by: Antoine Tenart --- arch/arm/boot/dts/berlin2cd.dtsi | 3

[PATCH v8 08/13] usb: chipidea: add a usb2 driver for ci13xxx

2014-11-17 Thread Antoine Tenart
Add a USB2 ChipIdea driver for ci13xxx, with optional PHY, clock and DMA mask, to support USB2 ChipIdea controllers that don't need specific functions. Tested on the Marvell Berlin SoCs USB controllers. Signed-off-by: Antoine Tenart Tested-by: Soren Brinkmann --- drivers/usb/chipidea/Makefile

[PATCH v8 13/13] ARM: dts: berlin: enable USB on the Google Chromecast

2014-11-17 Thread Antoine Tenart
From: Sebastian Hesselbarth Enable usb1 on Google Chromecast which is connected to micro-USB plug used for external power supply, too. Signed-off-by: Sebastian Hesselbarth Signed-off-by: Antoine Tenart --- arch/arm/boot/dts/berlin2cd-google-chromecast.dts | 4 1 file changed, 4 insertion

[PATCH v8 09/13] Documentation: bindings: add doc for the USB2 ChipIdea USB driver

2014-11-17 Thread Antoine Tenart
Document the USB2 ChipIdea driver (ci13xxx) bindings. Signed-off-by: Antoine Tenart Acked-by: Peter Chen --- .../devicetree/bindings/usb/ci-hdrc-usb2.txt | 24 ++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/ci-hdrc-usb2.tx

[PATCH v8 11/13] ARM: dts: Berlin: enable USB on the BG2Q DMP

2014-11-17 Thread Antoine Tenart
Enable the 2 available USB PHY and USB nodes on the Marvell Berlin BG2Q DMP. Signed-off-by: Antoine Tenart --- arch/arm/boot/dts/berlin2q-marvell-dmp.dts | 53 ++ 1 file changed, 53 insertions(+) diff --git a/arch/arm/boot/dts/berlin2q-marvell-dmp.dts b/arch/arm/boo

[PATCH v8 01/13] reset: add the Berlin reset controller driver

2014-11-17 Thread Antoine Tenart
Add a reset controller for Marvell Berlin SoCs which is used by the USB PHYs drivers (for now). Signed-off-by: Antoine Tenart Signed-off-by: Sebastian Hesselbarth Acked-by: Philipp Zabel --- drivers/reset/Makefile | 1 + drivers/reset/reset-berlin.c | 131 ++

[PATCH v8 07/13] usb: chipidea: fix phy handling

2014-11-17 Thread Antoine Tenart
The generic plaftorm device for ChipIdea drivers is probed by calling ci_hdrc_probe. The device structure used is not the one of the specific ChipIdea driver but the one of the generic ChipIdea platform device. This results in not being able to probe the PHYs as we're not using the right device st

[PATCH v8 05/13] phy: add the Berlin USB PHY driver

2014-11-17 Thread Antoine Tenart
Add the driver driving the Marvell Berlin USB PHY. This allows to initialize the PHY and to use it from the USB driver later. Signed-off-by: Antoine Tenart --- drivers/phy/Kconfig | 7 ++ drivers/phy/Makefile | 1 + drivers/phy/phy-berlin-usb.c | 224

[PATCH v8 06/13] Documentation: bindings: add doc for the Berlin USB PHY

2014-11-17 Thread Antoine Tenart
Document the bindings of the Marvell Berlin USB PHY driver. Signed-off-by: Antoine Tenart --- Documentation/devicetree/bindings/phy/berlin-usb-phy.txt | 16 1 file changed, 16 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/berlin-usb-phy.txt diff --git

[PATCH v8 02/13] Documentation: bindings: add reset bindings docs for Marvell Berlin SoCs

2014-11-17 Thread Antoine Tenart
Add the reset binding documentation to the SoC binding documentation as the reset driver in Marvell Berlin SoC is part of the chip/system control registers. This patch adds the required properties to configure the reset controller. Signed-off-by: Antoine Tenart Acked-by: Philipp Zabel --- Docum

[PATCH v8 03/13] ARM: Berlin: select the reset controller

2014-11-17 Thread Antoine Tenart
The Marvell Berlin SoCs now has a reset controller. Add the needed configuration. Signed-off-by: Antoine Tenart --- arch/arm/mach-berlin/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-berlin/Kconfig b/arch/arm/mach-berlin/Kconfig index 24f85be71671..5803f773a065 1006

[PATCH v8 04/13] ARM: dts: berlin: add a required reset property in the chip controller node

2014-11-17 Thread Antoine Tenart
The chip controller node now also describes the Marvell Berlin reset controller. Add the required 'reset-cells' property. Signed-off-by: Antoine Tenart Acked-by: Philipp Zabel --- arch/arm/boot/dts/berlin2.dtsi | 1 + arch/arm/boot/dts/berlin2cd.dtsi | 1 + arch/arm/boot/dts/berlin2q.dtsi |

Re: [PATCH v3] usb: dwc2: add bus suspend/resume for dwc2

2014-11-17 Thread Kever Yang
On 11/14/2014 11:55 PM, Alan Stern wrote: On Thu, 13 Nov 2014, Julius Werner wrote: Another thing might be that the port connect interrupt does not correctly resume the root hub. I don't really know many details about how that works, and it seems pretty complicated. But I can see that all othe

RE: [PATCHv2 1/4] xhci: don't start a halted endpoint before its new dequeue is set

2014-11-17 Thread David Laight
From: Mathias Nyman > A halted endpoint ring must first be reset, then move the ring > dequeue pointer past the problematic TRB. If we start the ring too > early after reset, but before moving the dequeue pointer we > will end up executing the same problematic TRB again. > > As we always issue a s

RE: [PATCH 4/4] usb: xhci: rework root port wake bits if controller isn't allowed to wakeup

2014-11-17 Thread David Laight
From: Felipe Balbi > > On Fri, Nov 14, 2014 at 07:23:52PM +0200, Mathias Nyman wrote: > > From: Lu Baolu > > > > When system is being suspended, if host device is not allowed to do wakeup, > > xhci_suspend() needs to clear all root port wake on bits. Otherwise, some > > platforms may generate spu

[PATCH V2 5/5] mfd: tc6387xb: prepare/unprepare clocks

2014-11-17 Thread Dmitry Eremin-Solenikov
Change clk_enable/disable() calls to clk_prepare_enable() and clk_disable_unprepare(). Signed-off-by: Dmitry Eremin-Solenikov --- drivers/mfd/tc6387xb.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/mfd/tc6387xb.c b/drivers/mfd/tc6387xb.c index e71f880..8

[PATCH V2 1/5] serial: pxa: prepare/unprepare clocks

2014-11-17 Thread Dmitry Eremin-Solenikov
Change clk_enable/disable() calls to clk_prepare_enable() and clk_disable_unprepare(). Signed-off-by: Dmitry Eremin-Solenikov --- drivers/tty/serial/pxa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/pxa.c b/drivers/tty/serial/pxa.c index 21b7d8b8..2

[PATCH V2 3/5] usb: gadget: pxa25x_udc: prepare/unprepare clocks in pxa-ssp

2014-11-17 Thread Dmitry Eremin-Solenikov
Change clk_enable/disable() calls to clk_prepare_enable() and clk_disable_unprepare(). Signed-off-by: Dmitry Eremin-Solenikov --- drivers/usb/gadget/udc/pxa25x_udc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/gadget/udc/pxa25x_udc.c b/drivers/usb/gad

[PATCH V2 4/5] mfd: t7l66xb: prepare/unprepare clocks

2014-11-17 Thread Dmitry Eremin-Solenikov
Change clk_enable/disable() calls to clk_prepare_enable() and clk_disable_unprepare(). Signed-off-by: Dmitry Eremin-Solenikov --- drivers/mfd/t7l66xb.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/mfd/t7l66xb.c b/drivers/mfd/t7l66xb.c index 9e04a74..

[PATCH V2 2/5] i2c: pxa: prepare/unprepare clocks

2014-11-17 Thread Dmitry Eremin-Solenikov
Change clk_enable/disable() calls to clk_prepare_enable() and clk_disable_unprepare(). Signed-off-by: Dmitry Eremin-Solenikov --- drivers/i2c/busses/i2c-pxa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c index

USB OTG doesn't work in HOST mode on OMAP3 processor on 3.18-rc5

2014-11-17 Thread Enric Balletbo Serra
Hi all, I'm trying to use the USB OTG driver of OMAP3 processor in HOST mode when it's configured in dual role mode (CONFIG_USB_MUSB_DUAL_ROLE=y) The test case that I'm trying to solve is as follows. 1) Boot the board. 2) Put the USB ID pin to ground 3) Connect a pendrive. In such case doesn't

Re: [PATCH] usb: dwc2: resume root hub when device detect with suspend state

2014-11-17 Thread Kever Yang
This patch is no complete, Sorry for that, I will upload a new version tomorrow. - Kever On 11/17/2014 09:14 PM, Kever Yang wrote: After we implement the bus_suspend/resume, auto suspend id enabled. The root hub will be auto suspend if there is no device connected, we need to resume the root h

Re: [PATCHv4 2/6] phy: improved lookup method

2014-11-17 Thread Heikki Krogerus
On Thu, Nov 13, 2014 at 07:03:01PM +0530, Vivek Gautam wrote: > How about adding the change in attached patch [1] on top of this patch. > Just introduced the phy pointer in "phy_lookup" structure, and > modified phy_find() accordingly. I would be fine if we used the phy pointer to match, but if we

Re: [PATCH V2 2/5] i2c: pxa: prepare/unprepare clocks

2014-11-17 Thread Russell King - ARM Linux
On Mon, Nov 17, 2014 at 06:07:40PM +0300, Dmitry Eremin-Solenikov wrote: > Change clk_enable/disable() calls to clk_prepare_enable() and > clk_disable_unprepare(). > > Signed-off-by: Dmitry Eremin-Solenikov > --- > drivers/i2c/busses/i2c-pxa.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 delet

Re: [PATCH V2 1/5] serial: pxa: prepare/unprepare clocks

2014-11-17 Thread Russell King - ARM Linux
On Mon, Nov 17, 2014 at 06:07:39PM +0300, Dmitry Eremin-Solenikov wrote: > Change clk_enable/disable() calls to clk_prepare_enable() and > clk_disable_unprepare(). NAK. Console writes can be called from IRQs-off regions. clk_prepare() can sleep. Sleeping is not permitted with IRQs off. -- FTT

Re: [PATCH v7 1/2] usb: host: xhci-plat: Get PHYs for xhci's hcds

2014-11-17 Thread Sergei Shtylyov
Hello. On 11/17/2014 9:36 AM, Vivek Gautam wrote: The host controller by itself may sometimes need to handle PHY and re-initialize it to re-configure some of the PHY parameters to get full support out of the PHY controller. Therefore, facilitate getting the two possible PHYs, viz. USB 2.0 type

Re: [PATCH 4/4] usb: xhci: rework root port wake bits if controller isn't allowed to wakeup

2014-11-17 Thread gre...@linuxfoundation.org
On Mon, Nov 17, 2014 at 02:57:05PM +, David Laight wrote: > From: Felipe Balbi > > > > On Fri, Nov 14, 2014 at 07:23:52PM +0200, Mathias Nyman wrote: > > > From: Lu Baolu > > > > > > When system is being suspended, if host device is not allowed to do > > > wakeup, > > > xhci_suspend() needs

Re: USB OTG doesn't work in HOST mode on OMAP3 processor on 3.18-rc5

2014-11-17 Thread Tony Lindgren
* Enric Balletbo Serra [141117 07:15]: > Hi all, > > I'm trying to use the USB OTG driver of OMAP3 processor in HOST mode > when it's configured in dual role mode (CONFIG_USB_MUSB_DUAL_ROLE=y) > > The test case that I'm trying to solve is as follows. > > 1) Boot the board. > 2) Put the USB ID

Re: [PATCH] usb: dwc2: resume root hub when device detect with suspend state

2014-11-17 Thread Sergei Shtylyov
Hello. On 11/17/2014 04:14 PM, Kever Yang wrote: After we implement the bus_suspend/resume, auto suspend id enabled. The root hub will be auto suspend if there is no device connected, we need to resume the root hub when a device connect detect. This patch tested on rk3288. Signed-off-by:

Re: [PATCH V2 2/5] i2c: pxa: prepare/unprepare clocks

2014-11-17 Thread Wolfram Sang
On Mon, Nov 17, 2014 at 06:07:40PM +0300, Dmitry Eremin-Solenikov wrote: > Change clk_enable/disable() calls to clk_prepare_enable() and > clk_disable_unprepare(). You describe what is done but we can see that from the patch. Please describe here why the change is needed. > > Signed-off-by: Dmit

Re: [PATCH v8 10/13] ARM: dts: berlin: add BG2Q nodes for USB support

2014-11-17 Thread Sergei Shtylyov
Hello. On 11/17/2014 04:35 PM, Antoine Tenart wrote: Adds nodes describing the Marvell Berlin BG2Q USB PHY and USB. The BG2Q SoC has 3 USB host controller, compatible with ChipIdea. Signed-off-by: Antoine Tenart --- arch/arm/boot/dts/berlin2q.dtsi | 55

Re: [PATCH V2 3/5] usb: gadget: pxa25x_udc: prepare/unprepare clocks in pxa-ssp

2014-11-17 Thread Robert Jarzmik
Dmitry Eremin-Solenikov writes: > Change clk_enable/disable() calls to clk_prepare_enable() and > clk_disable_unprepare(). > > Signed-off-by: Dmitry Eremin-Solenikov > --- > drivers/usb/gadget/udc/pxa25x_udc.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/driv

Re: [PATCH V2 3/5] usb: gadget: pxa25x_udc: prepare/unprepare clocks in pxa-ssp

2014-11-17 Thread Dmitry Eremin-Solenikov
Hello, 2014-11-17 21:44 GMT+03:00 Robert Jarzmik : > Dmitry Eremin-Solenikov writes: > >> Change clk_enable/disable() calls to clk_prepare_enable() and >> clk_disable_unprepare(). >> >> Signed-off-by: Dmitry Eremin-Solenikov >> --- >> drivers/usb/gadget/udc/pxa25x_udc.c | 8 >> 1 file

Re: [PATCH V2 3/5] usb: gadget: pxa25x_udc: prepare/unprepare clocks in pxa-ssp

2014-11-17 Thread Russell King - ARM Linux
On Tue, Nov 18, 2014 at 12:05:45AM +0400, Dmitry Eremin-Solenikov wrote: > Hello, > > 2014-11-17 21:44 GMT+03:00 Robert Jarzmik : > > Dmitry Eremin-Solenikov writes: > > > >> Change clk_enable/disable() calls to clk_prepare_enable() and > >> clk_disable_unprepare(). > >> > >> Signed-off-by: Dmitr

Re: [PATCH V2 3/5] usb: gadget: pxa25x_udc: prepare/unprepare clocks in pxa-ssp

2014-11-17 Thread Robert Jarzmik
Dmitry Eremin-Solenikov writes: > Hello, > OK, I will take a look. It seems the correct way would be to strip this code > away to a phy, like gpio-vbus or nop phys. Do you have access to lubbock > (or maybe Daniel, Haojian or Russell has?)? Actually Russell kindly gave me his, so I do have one fo

Error in queuecommand_lck: us->srb from usb_stor_control_thread

2014-11-17 Thread Андрей Аладьев
See https://bugzilla.kernel.org/show_bug.cgi?id=88341 I've just bought a new cheap USB flash called "X-G USB 64GB" (http://goo.gl/EkZEdu) and it is able to make a kernel panic. 1. Compile kernel with CONFIG_USB_STORAGE_DEBUG=y 2. Insert flash into USB 2.0 or 3.0 jack ID 1908:1320 GEMBIRD PhotoF

Re: [PATCH] usb: dwc2: resume root hub when device detect with suspend state

2014-11-17 Thread Julius Werner
On Mon, Nov 17, 2014 at 5:14 AM, Kever Yang wrote: > After we implement the bus_suspend/resume, auto suspend id enabled. > The root hub will be auto suspend if there is no device connected, > we need to resume the root hub when a device connect detect. > > This patch tested on rk3288. > > Signed-o

Re: Error in queuecommand_lck: us->srb from usb_stor_control_thread

2014-11-17 Thread Alan Stern
On Mon, 17 Nov 2014, Андрей Аладьев wrote: > See https://bugzilla.kernel.org/show_bug.cgi?id=88341 > > I've just bought a new cheap USB flash called "X-G USB 64GB" > (http://goo.gl/EkZEdu) and it is able to make a kernel panic. > > > 1. Compile kernel with CONFIG_USB_STORAGE_DEBUG=y > 2. Insert

[PATCH] usb: serial: add PIDs for Matrix Orbital products

2014-11-17 Thread Troy Clark
This is a patch to the ftdi_sio_ids.h and ftdi_sio.c files that adds PIDs for new Matrix Orbital GTT series products Signed-off-by: Troy Clark --- drivers/usb/serial/ftdi_sio.c | 33 + drivers/usb/serial/ftdi_sio_ids.h | 39 +++-

[PATCH V5 00/12] Tegra xHCI support

2014-11-17 Thread Andrew Bresticker
This series adds support for xHCI on NVIDIA Tegra SoCs. This includes: - patches 1, 2, and 3: minor cleanups for mailbox framework and xHCI, - patches 4 and 5: adding a driver for the mailbox used to communicate with the xHCI controller's firmware, - patches 6 and 7: extending the XUSB pad c

[PATCH V5 08/12] of: Add NVIDIA Tegra xHCI controller binding

2014-11-17 Thread Andrew Bresticker
Add device-tree binding documentation for the xHCI controller present on Tegra124 and later SoCs. Signed-off-by: Andrew Bresticker Reviewed-by: Stephen Warren --- Changes from v4: - Updated regulator names, as suggested by Thierry. No changes from v3. Changes from v2: - Added mbox-names proper

[PATCH V5 06/12] of: Update Tegra XUSB pad controller binding for USB

2014-11-17 Thread Andrew Bresticker
Add new bindings used for USB support by the Tegra XUSB pad controller. This includes additional PHY types, USB-specific pinconfig properties, etc. Signed-off-by: Andrew Bresticker Acked-by: Linus Walleij Reviewed-by: Stephen Warren --- Changes from v4: - nvidia,usb2-port-num -> nvidia,usb2-po

[PATCH V5 07/12] pinctrl: tegra-xusb: Add USB PHY support

2014-11-17 Thread Andrew Bresticker
In addition to the PCIe and SATA PHYs, the XUSB pad controller also supports 3 UTMI, 2 HSIC, and 2 USB3 PHYs. Each USB3 PHY uses a single PCIe or SATA lane and is mapped to one of the three UTMI ports. The xHCI controller will also send messages intended for the PHY driver, so request and listen

[PATCH V5 09/12] usb: xhci: Add NVIDIA Tegra xHCI host-controller driver

2014-11-17 Thread Andrew Bresticker
Add support for the on-chip xHCI host controller present on Tegra SoCs. The controller requires external firmware which must be loaded before using the controller. This driver loads the firmware, starts the controller, and is able to service host-specific messages sent by the controller's firmware

[PATCH V5 12/12] ARM: tegra: venice2: Add xHCI support

2014-11-17 Thread Andrew Bresticker
Assign ports previously owned by the EHCI controllers to the xHCI controller. There are two external USB ports (UTMI ports 0/2 and USB3 ports 0/1) and an internal USB port (UTMI port 1). PCIe lanes 0 and 1 are used by the USB3 ports. Signed-off-by: Andrew Bresticker Reviewed-by: Stephen Warren

[PATCH V5 10/12] ARM: tegra: Add Tegra124 XUSB mailbox and xHCI controller

2014-11-17 Thread Andrew Bresticker
Add nodes for the Tegra XUSB mailbox and Tegra xHCI controller and add the PHY mailbox channel to the XUSB padctl node. Signed-off-by: Andrew Bresticker Reviewed-by: Stephen Warren --- No changes from v4. No changes from v3. Changes from v2: - Dropped channel specifier from mailbox bindings. -

[PATCH V5 11/12] ARM: tegra: jetson-tk1: Add xHCI support

2014-11-17 Thread Andrew Bresticker
Assign USB ports previously owned by the EHCI controllers to the xHCI controller. There is a mini-PCIe USB port (UTMI port 1) and a USB A connector (UTMI port 2, USB3 port 0). PCIe lane 0 is used for USB3 port 0. Signed-off-by: Andrew Bresticker Reviewed-by: Stephen Warren --- Changes from v4:

[PATCH V5 05/12] mailbox: Add NVIDIA Tegra XUSB mailbox driver

2014-11-17 Thread Andrew Bresticker
The Tegra xHCI controller's firmware communicates requests to the host processor through a mailbox interface. While there is only a single physical channel, messages sent by the controller can be divided into two groups: those intended for the PHY driver and those intended for the host-controller

[PATCH V5 01/12] xhci: Set shared HCD's hcd_priv in xhci_gen_setup

2014-11-17 Thread Andrew Bresticker
xhci_gen_setup() sets the hcd_priv field for the primary HCD, but not for the shared HCD, requiring xHCI host-controller drivers to set it between usb_create_shared_hcd() and usb_add_hcd(). There's no reason xhci_gen_setup() can't set the shared HCD's hcd_priv as well, so move that bit out of the

[PATCH V5 02/12] mailbox: Make struct mbox_controller's ops field const

2014-11-17 Thread Andrew Bresticker
The mailbox controller's channel ops ought to be read-only. Signed-off-by: Andrew Bresticker --- New for v5. --- include/linux/mailbox_controller.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mailbox_controller.h b/include/linux/mailbox_controller.h index d

[PATCH V5 03/12] mailbox: Fix up error handling in mbox_request_channel()

2014-11-17 Thread Andrew Bresticker
From: Benson Leung mbox_request_channel() currently returns EBUSY in the event the controller is not present or if of_xlate() fails, but in neither case is EBUSY really appropriate. Return EPROBE_DEFER if the controller is not yet present and change of_xlate() to return an ERR_PTR instead of NUL

[PATCH V5 04/12] of: Add NVIDIA Tegra XUSB mailbox binding

2014-11-17 Thread Andrew Bresticker
Add device-tree bindings for the Tegra XUSB mailbox which will be used for communication between the Tegra xHCI controller's firmware and the host processor. Signed-off-by: Andrew Bresticker Reviewed-by: Stephen Warren --- No changes from v3/v4. Changes from v2: - Dropped channel specifier. -

Re: [PATCH V5 01/12] xhci: Set shared HCD's hcd_priv in xhci_gen_setup

2014-11-17 Thread Felipe Balbi
On Mon, Nov 17, 2014 at 02:41:31PM -0800, Andrew Bresticker wrote: > xhci_gen_setup() sets the hcd_priv field for the primary HCD, but not > for the shared HCD, requiring xHCI host-controller drivers to set it > between usb_create_shared_hcd() and usb_add_hcd(). There's no reason > xhci_gen_setup(

Re: [PATCH V5 09/12] usb: xhci: Add NVIDIA Tegra xHCI host-controller driver

2014-11-17 Thread Felipe Balbi
Hi, On Mon, Nov 17, 2014 at 02:41:39PM -0800, Andrew Bresticker wrote: > diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig > index a3ca137..e2415d3 100644 > --- a/drivers/usb/host/Kconfig > +++ b/drivers/usb/host/Kconfig > @@ -50,6 +50,15 @@ config USB_XHCI_RCAR > Say 'Y' to

[PATCH] usb: gadget: USB3 support to the legacy printer driver

2014-11-17 Thread Jorge Ramirez-Ortiz
Hi, This patch adds USB3 support to the legacy gadget printer driver. Applies cleanly on fc14f9c Linux 3.18-rc5. Please could it be considered for inclusion? regards, Jorge >From f46d9b0d2160b30f14dee104657de865e9e2bc38 Mon Sep 17 00:00:00 2001 From: Jorge Ramirez-Ortiz Date: Thu, 25 Sep 201

Re: [PATCH V2 3/5] usb: gadget: pxa25x_udc: prepare/unprepare clocks in pxa-ssp

2014-11-17 Thread Dmitry Eremin-Solenikov
2014-11-17 23:05 GMT+03:00 Dmitry Eremin-Solenikov : > 2014-11-17 21:44 GMT+03:00 Robert Jarzmik : >> Guess what, Russell's remark on i2c and serial made me cross-check. And >> there >> is a case where this will be called in irq context too ... >> >> See : >> -> do_IRQ >> -> lubbock_vbus_irq()

Re: [PATCH V5 09/12] usb: xhci: Add NVIDIA Tegra xHCI host-controller driver

2014-11-17 Thread Andrew Bresticker
Hi Felipe, On Mon, Nov 17, 2014 at 3:12 PM, Felipe Balbi wrote: > Hi, > > On Mon, Nov 17, 2014 at 02:41:39PM -0800, Andrew Bresticker wrote: >> diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig >> index a3ca137..e2415d3 100644 >> --- a/drivers/usb/host/Kconfig >> +++ b/drivers/usb/

Re: [PATCH] usb: gadget: USB3 support to the legacy printer driver

2014-11-17 Thread Felipe Balbi
Hi, On Mon, Nov 17, 2014 at 06:19:54PM -0500, Jorge Ramirez-Ortiz wrote: > Hi, > > This patch adds USB3 support to the legacy gadget printer driver. > Applies cleanly on fc14f9c Linux 3.18-rc5. > > Please could it be considered for inclusion? sure, if you send it properly (see Documentation/Sub

Re: [PATCH V5 09/12] usb: xhci: Add NVIDIA Tegra xHCI host-controller driver

2014-11-17 Thread Felipe Balbi
Hi, On Mon, Nov 17, 2014 at 03:51:29PM -0800, Andrew Bresticker wrote: > >> +static const struct { > >> + const char *name; > >> + unsigned int num; > >> +} tegra_xhci_phy_types[] = { > >> + { > >> + .name = "usb3", > >> + .num = TEGRA_XUSB_USB3_PHYS, > >> +

Re: [PATCH] usb: gadget: USB3 support to the legacy printer driver

2014-11-17 Thread Greg KH
On Mon, Nov 17, 2014 at 06:30:28PM -0600, Felipe Balbi wrote: > Hi, > > On Mon, Nov 17, 2014 at 06:19:54PM -0500, Jorge Ramirez-Ortiz wrote: > > Hi, > > > > This patch adds USB3 support to the legacy gadget printer driver. > > Applies cleanly on fc14f9c Linux 3.18-rc5. > > > > Please could it be

Re: [PATCH] usb: dwc2: resume root hub when device detect with suspend state

2014-11-17 Thread Kever Yang
Hi Julius, On 11/18/2014 05:21 AM, Julius Werner wrote: On Mon, Nov 17, 2014 at 5:14 AM, Kever Yang wrote: After we implement the bus_suspend/resume, auto suspend id enabled. The root hub will be auto suspend if there is no device connected, we need to resume the root hub when a device connect

Re: [PATCH] usb: gadget: USB3 support to the legacy printer driver

2014-11-17 Thread Jorge Ramirez-Ortiz
On 11/17/2014 07:54 PM, Greg KH wrote: > On Mon, Nov 17, 2014 at 06:30:28PM -0600, Felipe Balbi wrote: >> Hi, >> >> On Mon, Nov 17, 2014 at 06:19:54PM -0500, Jorge Ramirez-Ortiz wrote: >>> Hi, >>> >>> This patch adds USB3 support to the legacy gadget printer driver. >>> Applies cleanly on fc14f9c L

[PATCH v2] usb: dwc2: resume root hub when device detect with suspend state

2014-11-17 Thread Kever Yang
After we implement the bus_suspend/resume, auto suspend id enabled. The root hub will be auto suspend if there is no device connected, we need to resume the root hub when a device connect detect. This patch tested on rk3288. Signed-off-by: Roy Li Signed-off-by: Kever Yang --- Changes in v2: -

Re: About wakeup IRQ support in USB core

2014-11-17 Thread Wang, Yu
On Mon, Nov 17, 2014 at 01:36:19PM +0200, Roger Quadros wrote: Hi Roger, >Hi Yu, > >On 11/17/2014 07:51 AM, Wang, Yu wrote: >> Hi Roger, >> >> I saw one old thread about your patch for wakeup IRQ support in USB >> core. We need it for Intel platform. And it is work well on intel >> platform. >>

Re: [PATCH v2] usb: dwc2: resume root hub when device detect with suspend state

2014-11-17 Thread Doug Anderson
Kever, On Mon, Nov 17, 2014 at 5:21 PM, Kever Yang wrote: > After we implement the bus_suspend/resume, auto suspend id enabled. > The root hub will be auto suspend if there is no device connected, > we need to resume the root hub when a device connect detect. > > This patch tested on rk3288. > >

Re: [PATCH v2] usb: dwc2: resume root hub when device detect with suspend state

2014-11-17 Thread Felipe Balbi
On Tue, Nov 18, 2014 at 09:21:24AM +0800, Kever Yang wrote: > After we implement the bus_suspend/resume, auto suspend id enabled. > The root hub will be auto suspend if there is no device connected, > we need to resume the root hub when a device connect detect. > > This patch tested on rk3288. >

Re: [PATCHv4 2/6] phy: improved lookup method

2014-11-17 Thread Kishon Vijay Abraham I
Hi, On Monday 17 November 2014 09:10 PM, Heikki Krogerus wrote: > On Thu, Nov 13, 2014 at 07:03:01PM +0530, Vivek Gautam wrote: >> How about adding the change in attached patch [1] on top of this patch. >> Just introduced the phy pointer in "phy_lookup" structure, and >> modified phy_find() accord

Re: [PATCH v8 07/13] usb: chipidea: fix phy handling

2014-11-17 Thread Peter Chen
On Mon, Nov 17, 2014 at 02:35:41PM +0100, Antoine Tenart wrote: > The generic plaftorm device for ChipIdea drivers is probed by calling > ci_hdrc_probe. The device structure used is not the one of the specific > ChipIdea driver but the one of the generic ChipIdea platform device. > > This results

Re: [PATCH v8 00/13] ARM: berlin: USB support

2014-11-17 Thread Peter Chen
On Mon, Nov 17, 2014 at 02:35:34PM +0100, Antoine Tenart wrote: > This series adds the support for ChipIdea USB2 (ci13xxx) controllers, > the USB PHYs of the Marvell Berlin SoCs and also adds a reset > controller for these SoCs. > > The reset controller is used by the PHY driver and shares the > e

Huawei E173 USB modem

2014-11-17 Thread Jesse van der Berg
Hi, uname -a Linux Firen4ALL 3.17.3-031703-generic #201411141335 SMP Fri Nov 14 18:36:40 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Gives me the following in the syslog when I attach a Huawei E173 3G USB modem to my computer. I don't know if it's relevant but the modem supports storage though there