Re: Driver problem with USB chipset VIA VL812-B2

2015-03-09 Thread Warren Severin
Have just tested 4.0-rc3 and the problem persists as before. Unable to get desktop environment and so unable to use gnome-system-monitor for names of processes and %cpu, but command line utility htop says it's almost totally ksoftirqd thread(s) and not so much kworker thread(s). Still, 25% of total

Re: [PATCH 4/7] usb: chipidea: udc: add OTG status request handling

2015-03-09 Thread Peter Chen
On Mon, Mar 09, 2015 at 10:09:20AM +0800, Li Jun wrote: > From: Li Jun > > Peripheral answers OTG status selector request from host according to > host_request_flag of gadget, length is 1. > > Signed-off-by: Li Jun > --- > drivers/usb/chipidea/udc.c | 28 +++- > 1 fil

Re: [PATCH 5/7] usb: chipidea: otg_fsm: add HNP polling support

2015-03-09 Thread Peter Chen
On Mon, Mar 09, 2015 at 10:09:21AM +0800, Li Jun wrote: > From: Li Jun > > Add a dedicataed normal timer for HNP polling since it's cyclical, while > in peripheral mode, change a/b_bus_req to be 1 will make it response > to host request flag with 1, then role switch will be started. use a_bus_re

Re: [PATCH] Remove deprecated IRQF_DISABLED flag entirely

2015-03-09 Thread Valentin Rothberg
On Fri, Mar 6, 2015 at 8:41 PM, Dmitry Torokhov wrote: > On Thu, Mar 5, 2015 at 5:11 AM, Hannes Reinecke wrote: >> On 03/05/2015 01:59 PM, Valentin Rothberg wrote: >>> The IRQF_DISABLED is a NOOP and has been scheduled for removal since >>> Linux v2.6.36 by commit 6932bf37bed4 ("genirq: Remove IR

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

2015-03-09 Thread Mathias Nyman
On 06.03.2015 21:05, Aleksander Morgado wrote: > On Fri, Mar 6, 2015 at 7:08 PM, Sergei Shtylyov > wrote: >> Hello. >> >> On 03/06/2015 06:14 PM, Mathias Nyman wrote: >> >>> From: Aleksander Morgado >> >> >>> When a control transfer has a short data stage, the xHCI controller >>> generates >>> tw

Re: EHCI/xHCI port switching issue

2015-03-09 Thread Adrian-Ken Rueegsegger
Hello, On 01/23/2015 12:54 PM, Mathias Nyman wrote: > I don't know what will happend if we try to write to xhci portswitching > registers > on platforms with xhci only, so just removing the ehci check is a bit risky > considering future platforms. > > I need to ask around internally and see if

[linux-usb] [UAC2] How to route pcm stream for UAC2 virtual sound card for lowest latency?

2015-03-09 Thread Xuebing Wang
Hi Community, I am developing a commercial product based on Freescale iMX6SL + UAC2. I can get UAC2 working for below command. 'hw:1,0' is the virtual sound card. 'hw:0,0' is the physical sound card. export RATE=44100; arecord -D hw:1,0 -c 2 -r $RATE -f S16_LE | aplay -c 2 -r $RATE -f S16_LE &

[PATCH v2] dwc3: make LPM configurable in DT

2015-03-09 Thread Robert Baldyga
This patch removes "Enable USB3 LPM Capability" option from Kconfig and adds snps,usb3_lpm_capable devicetree property instead of it. USB3 LPM (Link Power Management) capability is hardware property, and it's platform dependent, so if our hardware supports this feature, we want rather to configure

Re: [PATCH] usb gadget: remove size limitation for storage cdrom

2015-03-09 Thread Alan Stern
On Mon, 9 Mar 2015, Dave Young wrote: > On 03/08/15 at 11:29am, Alan Stern wrote: > > On Sun, 8 Mar 2015, Dave Young wrote: > > > > > I used usb cdrom emulation to play video dvd for my daughter, but I got > > > below > > > error: > > > > > > [dave@darkstar tmp]$ cat /mnt/sr1/VIDEO_TS/VTS_01_5.

Re: [linux-usb] [UAC2] How to route pcm stream for UAC2 virtual sound card for lowest latency?

2015-03-09 Thread Alan Stern
On Mon, 9 Mar 2015, Xuebing Wang wrote: > Hi Community, > > I am developing a commercial product based on Freescale iMX6SL + UAC2. > > I can get UAC2 working for below command. 'hw:1,0' is the virtual sound > card. 'hw:0,0' is the physical sound card. > export RATE=44100; arecord -D hw:1,0 -c 2

Re: [PATCH] usb gadget: remove size limitation for storage cdrom

2015-03-09 Thread Alan Stern
On Mon, 9 Mar 2015, Alan Stern wrote: > > They are both iso9660 images, aren't they? So from data image point > > of view there's no difference, it is not worth to create another mode > > for dvd data. > > There's more to emulation than just the image. We have to emulate the > hardware's respon

[PATCH 14/19] usb: dwc2: host: register handle to the phy

2015-03-09 Thread Mian Yousaf Kaukab
If phy driver is present register hcd handle to it. Signed-off-by: Mian Yousaf Kaukab --- drivers/usb/dwc2/hcd.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c index 908fc8a..a88a5df 100644 --- a/drivers/usb/dwc2/hcd.c +++ b/drivers/usb/

[PATCH 18/19] usb: dwc2: host: don't use dma_alloc_coherent with irqs disabled

2015-03-09 Thread Mian Yousaf Kaukab
From: Gregory Herrero Align buffer must be allocated using kmalloc since irqs are disabled. Coherency is handled through dma_map_single which can be used with irqs disabled. Signed-off-by: Gregory Herrero --- drivers/usb/dwc2/hcd.c | 7 --- drivers/usb/dwc2/hcd_intr.c | 10

[PATCH 09/19] usb: dwc2: gadget: ignore pm suspend/resume in L2

2015-03-09 Thread Mian Yousaf Kaukab
From: Gregory Herrero Nothing to be done in pm suspend/resume when controller is in L2. Don't disconnect or reset. State is already saved when putting controller in hibernation and will be restored on USB bus resume. Signed-off-by: Gregory Herrero --- drivers/usb/dwc2/gadget.c | 6 ++ 1 fi

[PATCH 15/19] usb: dwc2: host: add bus_suspend/bus_resume callback

2015-03-09 Thread Mian Yousaf Kaukab
From: Gregory Herrero Signed-off-by: Gregory Herrero --- drivers/usb/dwc2/hcd.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c index a88a5df..fd02b43 100644 --- a/drivers/usb/dwc2/hcd.c +++ b/drivers/usb/dwc2/hcd.c @@ -23

[PATCH 02/19] usb: dwc2: debugfs: add support for complete register dump

2015-03-09 Thread Mian Yousaf Kaukab
Dump all registers to take a complete snapshot of dwc2 state. Code is inspired by dwc3/debugfs.c Signed-off-by: Mian Yousaf Kaukab --- drivers/usb/dwc2/core.h| 1 + drivers/usb/dwc2/debugfs.c | 356 + 2 files changed, 357 insertions(+) diff --gi

[PATCH 12/19] usb: dwc2: gadget: enable otg flag in dual role configuration

2015-03-09 Thread Mian Yousaf Kaukab
From: Gregory Herrero Signed-off-by: Gregory Herrero --- drivers/usb/dwc2/gadget.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index bb83826..2e27bfd 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c @@ -3524,

[PATCH 03/19] usb: dwc2: add controller hibernation support

2015-03-09 Thread Mian Yousaf Kaukab
From: Gregory Herrero When suspending usb bus, phy driver may disable controller power. In this case, registers need to be saved on suspend and restored on resume. Signed-off-by: Gregory Herrero --- drivers/usb/dwc2/core.c | 376 drivers/usb/dwc

[PATCH 00/19] usb: third series of updates for dwc2 driver

2015-03-09 Thread Mian Yousaf Kaukab
Hi, This patchset consists of some bug fixes and feature enhancements for the dwc2 driver. All the patches are verified on dwc2 v3.0a with dedicated fifos. Main focus of testing was with dma enabled. Although basic testing without dma was also done. This is based on testing/next branch in Felipe's

[PATCH 19/19] usb: dwc2: host: implement test mode

2015-03-09 Thread Mian Yousaf Kaukab
From: Jingwu Lin Add support for SetPortFeature(PORT_TEST) for root port. Signed-off-by: Jingwu Lin --- drivers/usb/dwc2/hcd.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c index 7ebf6cc..c46b863 100644 --- a/drivers/usb/dwc2/hcd.c

[PATCH 16/19] usb: dwc2: host: resume root hub on port connect

2015-03-09 Thread Mian Yousaf Kaukab
From: Gregory Herrero Once hub is runtime suspended, dwc2 must resume it on port connect event. Else, roothub will stay in suspended state and will not resume transfers. Signed-off-by: Gregory Herrero --- drivers/usb/dwc2/hcd_intr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/driver

[PATCH 10/19] usb: dwc2: gadget: prevent new request submission during suspend

2015-03-09 Thread Mian Yousaf Kaukab
From: Gregory Herrero If usb controller is in partial power down, any write to registers may cause unpredictable behavior. Thus, prevent any new request submission once controller is in partial power down. Signed-off-by: Gregory Herrero --- drivers/usb/dwc2/gadget.c | 7 +++ 1 file changed

[PATCH 07/19] usb: dwc2: set parameter values in probe function

2015-03-09 Thread Mian Yousaf Kaukab
So the parameters can be used in both host and gadget modes. Signed-off-by: Mian Yousaf Kaukab --- drivers/usb/dwc2/core.h | 3 +-- drivers/usb/dwc2/hcd.c | 18 +- drivers/usb/dwc2/hcd.h | 3 +-- drivers/usb/dwc2/pci.c | 17 - drivers/usb/dwc2

[PATCH 01/19] usb: dwc2: move debugfs code to a separate file

2015-03-09 Thread Mian Yousaf Kaukab
Prepare to add more debug code. Moreover, don't save dentry * for each file in struct dwc2_hsotg as clean up is done with debugfs_remove_recursive(). s3c_hsotg_delete_debug() is removed altogether for the same reason. Signed-off-by: Mian Yousaf Kaukab --- drivers/usb/dwc2/Makefile | 4 + dri

[PATCH 17/19] usb: dwc2: host: spinlock urb_enqueue

2015-03-09 Thread Mian Yousaf Kaukab
From: Gregory Herrero During urb_enqueue, if the urb can't be queued to the endpoint, the urb is freed without any spinlock protection. This leads to memory corruption when concurrent urb_dequeue try to free same urb->hcpriv. Thus, ensure the whole urb_enqueue in spinlocked. Signed-off-by: Grego

[PATCH 04/19] usb: dwc2: implement hibernation during bus suspend/resume

2015-03-09 Thread Mian Yousaf Kaukab
From: Gregory Herrero Allow controller to enter in hibernation during usb bus suspend and inform both phy and gadget about the suspended state. While in hibernation, the controller can't detect the resume condition. An external mechanism must call usb_phy_set_suspend on resume. Exit hibernation w

[PATCH 11/19] usb: dwc2: gadget: powerup controller if needed

2015-03-09 Thread Mian Yousaf Kaukab
From: Gregory Herrero During vbus session, usb controller needs to exit hibernation if it was previously in suspend state. Since controller will be resetted and configured, there is no need to restore registers. Signed-off-by: Gregory Herrero --- drivers/usb/dwc2/gadget.c | 8 1 file

[PATCH 13/19] usb: dwc2: gadget: remove s3c_hsotg_ep_disable_force

2015-03-09 Thread Mian Yousaf Kaukab
Force argument is not used anymore. Clean up leftovers from https://lkml.org/lkml/2014/12/9/283 Signed-off-by: Mian Yousaf Kaukab --- drivers/usb/dwc2/gadget.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index 2e2

[PATCH 08/19] usb: dwc2: gadget: use reset detect interrupt

2015-03-09 Thread Mian Yousaf Kaukab
From: Gregory Herrero ResetDet interrupt is used to detect a reset of the bus while the controller is suspended. This may happens for example when using Command Verifier. Signed-off-by: Gregory Herrero --- drivers/usb/dwc2/gadget.c | 19 --- 1 file changed, 16 insertions(+), 3

[PATCH 05/19] usb: dwc2: controller must update lx_state before releasing lock

2015-03-09 Thread Mian Yousaf Kaukab
From: Gregory Herrero During suspend, there could a race condition between ep_queue and suspend interrupt if lx_state is updated after releasing spinlock in call_gadget(hsotg, suspend). Signed-off-by: Gregory Herrero --- drivers/usb/dwc2/core_intr.c | 11 --- 1 file changed, 8 insertio

[PATCH 06/19] usb: dwc2: add external_id_pin_ctl core parameter

2015-03-09 Thread Mian Yousaf Kaukab
From: Gregory Herrero This is required due to an Intel specific hardware issue. Where id- pin setup causes glitches on the interrupt line when CONIDSTSCHG interrupt is enabled. Specify external_id_pin_ctl when an external driver (for example phy) can handle id change, so that CONIDSTSCHG interru

Re: [PATCH] drivers: usb: gadget: udc: Fix NULL dereference

2015-03-09 Thread Felipe Balbi
On Wed, Mar 04, 2015 at 09:11:19AM +0800, Peter Chen wrote: > On Tue, Mar 03, 2015 at 06:28:42PM +0530, Tapasweni Pathak wrote: > > This patch fixes multiple instances of null pointer dereference in this > > code. > > > > ep->udc is assigned to udc. ep is just an offset from _ep. _ep is then > >

Re: [PATCH] dma: cppi41: add missing directions bitfield

2015-03-09 Thread Felipe Balbi
On Wed, Mar 04, 2015 at 06:13:23PM +0530, Vinod Koul wrote: > On Wed, Feb 25, 2015 at 04:54:02PM -0600, Felipe Balbi wrote: > > Without those we will see a kernel WARN() > > when loading musb on am335x devices. > > > > Signed-off-by: Felipe Balbi > > --- > > drivers/dma/cppi41.c | 1 + > > 1 fil

Re: [PATCH v2] usb: isp1760: add peripheral/device controller chip id

2015-03-09 Thread Felipe Balbi
On Wed, Mar 04, 2015 at 03:56:12PM +, Sudeep Holla wrote: > > > On 26/02/15 18:53, Laurent Pinchart wrote: > >Hi Sudeep, > > > >Thank you for the patch. > > > >On Thursday 26 February 2015 11:47:57 Sudeep Holla wrote: > >>As per the SAF1761 data sheet[0], the DcChipID register represents > >>

Re: [PATCH v2] usb: isp1760: add peripheral/device controller chip id

2015-03-09 Thread Sudeep Holla
Hi Filipe, On 09/03/15 15:49, Felipe Balbi wrote: On Wed, Mar 04, 2015 at 03:56:12PM +, Sudeep Holla wrote: On 26/02/15 18:53, Laurent Pinchart wrote: Hi Sudeep, Thank you for the patch. On Thursday 26 February 2015 11:47:57 Sudeep Holla wrote: As per the SAF1761 data sheet[0], the Dc

Re: [PATCH v2] extcon: otg_gpio: add driver for USB OTG port controlled by GPIO(s)

2015-03-09 Thread Felipe Balbi
On Sat, Mar 07, 2015 at 09:06:22PM +0100, Linus Walleij wrote: > On Fri, Feb 20, 2015 at 8:17 PM, David Cohen > wrote: > > On Fri, Feb 20, 2015 at 10:53:44AM +0100, Linus Walleij wrote: > > >> I would put this adjacent to the phy driver somewhere in drivers/usb/* > >> and make the actual USB-driv

Re: [PATCH v2] usb: isp1760: add peripheral/device controller chip id

2015-03-09 Thread Felipe Balbi
On Mon, Mar 09, 2015 at 03:58:06PM +, Sudeep Holla wrote: > Hi Filipe, > > On 09/03/15 15:49, Felipe Balbi wrote: > >On Wed, Mar 04, 2015 at 03:56:12PM +, Sudeep Holla wrote: > >> > >> > >>On 26/02/15 18:53, Laurent Pinchart wrote: > >>>Hi Sudeep, > >>> > >>>Thank you for the patch. > >>>

RE: [PATCH v3] usb: dwc2: gadget reuse ahbcfg assigned from platform

2015-03-09 Thread Kaukab, Yousaf
> -Original Message- > From: John Youn [mailto:john.y...@synopsys.com] > Sent: Tuesday, February 24, 2015 3:27 AM > To: zhangfei; John Youn; ba...@ti.com; Kaukab, Yousaf > Cc: linux-usb@vger.kernel.org > Subject: Re: [PATCH v3] usb: dwc2: gadget reuse ahbcfg assigned from platform > > On

Re: [PATCH v2] Remove deprecated IRQF_DISABLED flag entirely

2015-03-09 Thread Felipe Balbi
Hi, On Thu, Mar 05, 2015 at 03:23:08PM +0100, Valentin Rothberg wrote: > The IRQF_DISABLED is a NOOP and has been scheduled for removal since > Linux v2.6.36 by commit 6932bf37bed4 ("genirq: Remove IRQF_DISABLED from > core code"). > > According to commit e58aa3d2d0cc ("genirq: Run irq handlers w

Re: [PATCH v2] Remove deprecated IRQF_DISABLED flag entirely

2015-03-09 Thread Valentin Rothberg
On Mon, Mar 9, 2015 at 5:52 PM, Felipe Balbi wrote: > Hi, > > On Thu, Mar 05, 2015 at 03:23:08PM +0100, Valentin Rothberg wrote: >> The IRQF_DISABLED is a NOOP and has been scheduled for removal since >> Linux v2.6.36 by commit 6932bf37bed4 ("genirq: Remove IRQF_DISABLED from >> core code"). >> >>

Re: [PATCH v2] Remove deprecated IRQF_DISABLED flag entirely

2015-03-09 Thread Felipe Balbi
On Mon, Mar 09, 2015 at 06:24:29PM +0100, Valentin Rothberg wrote: > On Mon, Mar 9, 2015 at 5:52 PM, Felipe Balbi wrote: > > Hi, > > > > On Thu, Mar 05, 2015 at 03:23:08PM +0100, Valentin Rothberg wrote: > >> The IRQF_DISABLED is a NOOP and has been scheduled for removal since > >> Linux v2.6.36 b

Re: [PATCH 0/5] Rename regulator_set_optimum_mode

2015-03-09 Thread Mark Brown
On Wed, Feb 11, 2015 at 07:35:26PM -0800, Bjorn Andersson wrote: > Changing the name of the regulator_set_optimum_mode() to > regulator_set_load() better reflects that the API is doing. Applied all, thanks. signature.asc Description: Digital signature

Re: [PATCH v2] extcon: otg_gpio: add driver for USB OTG port controlled by GPIO(s)

2015-03-09 Thread David Cohen
Hi Linus, On Mon, Mar 09, 2015 at 11:16:08AM -0500, Felipe Balbi wrote: > On Sat, Mar 07, 2015 at 09:06:22PM +0100, Linus Walleij wrote: > > On Fri, Feb 20, 2015 at 8:17 PM, David Cohen > > wrote: > > > On Fri, Feb 20, 2015 at 10:53:44AM +0100, Linus Walleij wrote: > > > > >> I would put this ad

[PATCH 00/15] musb: Add support for the Allwinner sunxi musb controller

2015-03-09 Thread Hans de Goede
Hi All, This patch set has been a while in the making, so I'm very happy to present the end result here, and I hope everyone likes it. Before talking about merging this there are 2 things which I would like to point out: a) The musb controller in the sunxi SoCs uses some SRAM which needs to be m

[PATCH 09/15] ARM: dts: sun4i: Add USB Dual Role Controller

2015-03-09 Thread Hans de Goede
Add a node for the otg/drc usb controller to sun4i-a10.dtsi. Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun4i-a10.dtsi | 12 drivers/usb/musb/Kconfig | 1 + 2 files changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a1

[PATCH 05/15] musb: Do not use musb_read[b|w] / _write[b|w] wrappers in generic fifo functions

2015-03-09 Thread Hans de Goede
The generic fifo functions already use non wrapped accesses in various cases through the iowrite#_rep functions, and all platforms which override the default musb_read[b|w] / _write[b|w] functions also provide their own fifo access functions, so we can safely drop the unnecessary indirection from t

[PATCH 08/15] ARM: dts: sunxi: Add syscon node for controlling SRAM mapping

2015-03-09 Thread Hans de Goede
From: Chen-Yu Tsai Allwinner SoCs have a system controller module that controls whether SRAM blocks are mapped to the CPU memory or specific peripherals. Signed-off-by: Chen-Yu Tsai [jensku...@gmail.com: duplicate syscon node to sun4i and sun5i] Signed-off-by: Jens Kuske Signed-off-by: Hans de

[PATCH 04/15] musb: Make busctl_offset an io-op rather then a define

2015-03-09 Thread Hans de Goede
The Allwinner (sunxi) implementation of the musb has its busctl registers indexed by the MUSB_INDEX register rather then in a flat address space. This commit turns MUSB_BUSCTL_OFFSET from a macro into an io-op which can be overridden from the platform ops. Signed-off-by: Hans de Goede --- drive

[PATCH 01/15] ARM: sunxi: Add register bit definitions for SRAM mapping syscon

2015-03-09 Thread Hans de Goede
From: Chen-Yu Tsai Signed-off-by: Chen-Yu Tsai Signed-off-by: Jens Kuske Acked-by: Lee Jones Signed-off-by: Hans de Goede --- include/linux/mfd/syscon/sun4i-sc.h | 42 + 1 file changed, 42 insertions(+) create mode 100644 include/linux/mfd/syscon/sun4i-sc

[PATCH 02/15] phy-sun4i-usb: Add a helper function to update the iscr register

2015-03-09 Thread Hans de Goede
Add sun4i_usb_phy_update_iscr() helper function to allow the otg driver to update the sun4i usb phy0 Interface Status and Control Register. Signed-off-by: Hans de Goede --- drivers/phy/phy-sun4i-usb.c | 13 + include/linux/phy/phy-sun4i-usb.h | 26 ++ 2

[PATCH 10/15] ARM: dts: sun5i: Add USB Dual Role Controller

2015-03-09 Thread Hans de Goede
Add a node for the otg/drc usb controller to sun5i-a1*.dtsi. Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun5i.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/sun5i.dtsi b/arch/arm/boot/dts/sun5i.dtsi index 97b4eb1..cf730d4 100644 --- a/arch/arm/bo

[PATCH 06/15] musb: Fix platform code being unable to override ep access ops

2015-03-09 Thread Hans de Goede
musb-core was setting the ops to the default indexed or flat handlers after checking for platform overrides. Reverse the order of this so that platform overrides actually work. Signed-off-by: Hans de Goede --- drivers/usb/musb/musb_core.c | 13 ++--- 1 file changed, 6 insertions(+), 7 de

[PATCH 11/15] ARM: dts: sun7i: Add USB Dual Role Controller

2015-03-09 Thread Hans de Goede
From: Roman Byshko Add a node for the otg/drc usb controller to sun7i-a20.dtsi Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun7i-a20.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi index fb56a1d..

[PATCH 13/15] ARM: dts: sun5i: Enable USB DRC on UTOO P66

2015-03-09 Thread Hans de Goede
Enable the OTG controller on the UTOO P66 tablet. Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun5i-a13-utoo-p66.dts | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/boot/dts/sun5i-a13-utoo-p66.dts b/arch/arm/boot/dts/sun5i-a13-utoo-p66.dts index d1d4

[PATCH 07/15] musb: Add support for the Allwinner sunxi musb controller

2015-03-09 Thread Hans de Goede
This is based on initial code to get the Allwinner sunxi musb controller supported by Chen-Yu Tsai and Roman Byshko. This adds support for the Allwinner sunxi musb controller in both host only and otg mode. Peripheral only mode is not supported, as no boards use that. This has been tested on a cu

[PATCH 14/15] ARM: dts: sun7i: Enable USB DRC on Cubietruck

2015-03-09 Thread Hans de Goede
From: Roman Byshko Enable the otg/drc usb controller on the cubietruck. Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts b/arch/arm/boot/dts/sun7

[PATCH 15/15] ARM: dts: sun7i: Enable USB DRC on A20-OLinuxIno-Lime

2015-03-09 Thread Hans de Goede
Enable the otg/drc usb controller on the A20-OLinuxIno-Lime. Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun7i-a20-olinuxino-lime.dts | 29 ++ 1 file changed, 29 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime.dts b/arch/arm/boot/dts/sun7i-a

[PATCH 12/15] ARM: dts: sun4i: Enable USB DRC on Chuwi V7 CW0825

2015-03-09 Thread Hans de Goede
Enable the otg/drc usb controller on the Chuwi V7 CW0825 tablet. Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun4i-a10-chuwi-v7-cw0825.dts | 31 + 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10-chuwi-v7-cw0825.dts b/arch/arm/boot/dts/su

[PATCH 03/15] musb: Make musb_write_rxfun* and musb_write_rxhub* work like their tx versions

2015-03-09 Thread Hans de Goede
For some reason the musb_write_rxfun* and musb_write_rxhub* functions had a different function prototype and some extra magic needed on the caller side compared to their tx counterparts, this commit makes them work the same as their tx counterparts. Signed-off-by: Hans de Goede --- drivers/usb/m

[PATCH] phy: Add a driver for dm816x USB PHY

2015-03-09 Thread Tony Lindgren
Add a minimal driver for dm816x USB. Otherwise we can just use the existing musb_am335x and musb_dsps on dm816x. Cc: Brian Hutchinson Cc: Felipe Balbi Signed-off-by: Tony Lindgren --- /dev/null +++ b/Documentation/devicetree/bindings/phy/dm816x-phy.txt @@ -0,0 +1,24 @@ +Device tree binding doc

Re: [PATCH] phy: Add a driver for dm816x USB PHY

2015-03-09 Thread Bin Liu
Hi, On Mon, Mar 9, 2015 at 3:51 PM, Tony Lindgren wrote: > Add a minimal driver for dm816x USB. Otherwise we can just use > the existing musb_am335x and musb_dsps on dm816x. dm816x has the almost identical usbss as that in am335x, we should be able to adopt musb_am335x and musb_dsps for dm816x,

Re: [PATCH] phy: Add a driver for dm816x USB PHY

2015-03-09 Thread Felipe Balbi
On Mon, Mar 09, 2015 at 04:11:28PM -0500, Bin Liu wrote: > Hi, > > On Mon, Mar 9, 2015 at 3:51 PM, Tony Lindgren wrote: > > Add a minimal driver for dm816x USB. Otherwise we can just use > > the existing musb_am335x and musb_dsps on dm816x. > > dm816x has the almost identical usbss as that in am

Re: [PATCH] phy: Add a driver for dm816x USB PHY

2015-03-09 Thread Bin Liu
On Mon, Mar 9, 2015 at 4:13 PM, Felipe Balbi wrote: > On Mon, Mar 09, 2015 at 04:11:28PM -0500, Bin Liu wrote: >> Hi, >> >> On Mon, Mar 9, 2015 at 3:51 PM, Tony Lindgren wrote: >> > Add a minimal driver for dm816x USB. Otherwise we can just use >> > the existing musb_am335x and musb_dsps on dm816

Re: [PATCH] phy: Add a driver for dm816x USB PHY

2015-03-09 Thread Tony Lindgren
* Bin Liu [150309 14:17]: > On Mon, Mar 9, 2015 at 4:13 PM, Felipe Balbi wrote: > > On Mon, Mar 09, 2015 at 04:11:28PM -0500, Bin Liu wrote: > >> Hi, > >> > >> On Mon, Mar 9, 2015 at 3:51 PM, Tony Lindgren wrote: > >> > Add a minimal driver for dm816x USB. Otherwise we can just use > >> > the ex

Re: [PATCH] phy: Add a driver for dm816x USB PHY

2015-03-09 Thread Bin Liu
On Mon, Mar 9, 2015 at 4:26 PM, Tony Lindgren wrote: > * Felipe Balbi [150309 14:21]: >> On Mon, Mar 09, 2015 at 04:17:29PM -0500, Bin Liu wrote: >> > On Mon, Mar 9, 2015 at 4:13 PM, Felipe Balbi wrote: >> > > On Mon, Mar 09, 2015 at 04:11:28PM -0500, Bin Liu wrote: >> > >> Hi, >> > >> >> > >> O

Re: [PATCH] phy: Add a driver for dm816x USB PHY

2015-03-09 Thread Bin Liu
On Mon, Mar 9, 2015 at 4:20 PM, Tony Lindgren wrote: > * Bin Liu [150309 14:17]: >> On Mon, Mar 9, 2015 at 4:13 PM, Felipe Balbi wrote: >> > On Mon, Mar 09, 2015 at 04:11:28PM -0500, Bin Liu wrote: >> >> Hi, >> >> >> >> On Mon, Mar 9, 2015 at 3:51 PM, Tony Lindgren wrote: >> >> > Add a minimal

Re: [PATCH] phy: Add a driver for dm816x USB PHY

2015-03-09 Thread Felipe Balbi
On Mon, Mar 09, 2015 at 04:17:29PM -0500, Bin Liu wrote: > On Mon, Mar 9, 2015 at 4:13 PM, Felipe Balbi wrote: > > On Mon, Mar 09, 2015 at 04:11:28PM -0500, Bin Liu wrote: > >> Hi, > >> > >> On Mon, Mar 9, 2015 at 3:51 PM, Tony Lindgren wrote: > >> > Add a minimal driver for dm816x USB. Otherwise

Re: [PATCH] phy: Add a driver for dm816x USB PHY

2015-03-09 Thread Tony Lindgren
* Felipe Balbi [150309 14:21]: > On Mon, Mar 09, 2015 at 04:17:29PM -0500, Bin Liu wrote: > > On Mon, Mar 9, 2015 at 4:13 PM, Felipe Balbi wrote: > > > On Mon, Mar 09, 2015 at 04:11:28PM -0500, Bin Liu wrote: > > >> Hi, > > >> > > >> On Mon, Mar 9, 2015 at 3:51 PM, Tony Lindgren wrote: > > >> >

Re: [PATCH 00/15] musb: Add support for the Allwinner sunxi musb controller

2015-03-09 Thread Arnd Bergmann
On Monday 09 March 2015 21:40:13 Hans de Goede wrote: > Hi All, > > This patch set has been a while in the making, so I'm very happy to present > the end result here, and I hope everyone likes it. Awesome work! > Before talking about merging this there are 2 things which I would like to > point

Re: [PATCH] phy: Add a driver for dm816x USB PHY

2015-03-09 Thread Tony Lindgren
* Bin Liu [150309 14:35]: > On Mon, Mar 9, 2015 at 4:26 PM, Tony Lindgren wrote: > > * Felipe Balbi [150309 14:21]: > >> On Mon, Mar 09, 2015 at 04:17:29PM -0500, Bin Liu wrote: > >> > On Mon, Mar 9, 2015 at 4:13 PM, Felipe Balbi wrote: > >> > > On Mon, Mar 09, 2015 at 04:11:28PM -0500, Bin Liu

Re: [PATCH 02/15] phy-sun4i-usb: Add a helper function to update the iscr register

2015-03-09 Thread Arnd Bergmann
On Monday 09 March 2015 21:40:15 Hans de Goede wrote: > +void sun4i_usb_phy_update_iscr(struct phy *_phy, u32 clr, u32 set) > +{ > + struct sun4i_usb_phy *phy = phy_get_drvdata(_phy); > + struct sun4i_usb_phy_data *data = to_sun4i_usb_phy_data(phy); > + u32 iscr; > + > + isc

Re: [PATCH 05/15] musb: Do not use musb_read[b|w] / _write[b|w] wrappers in generic fifo functions

2015-03-09 Thread Arnd Bergmann
On Monday 09 March 2015 21:40:18 Hans de Goede wrote: > The generic fifo functions already use non wrapped accesses in various > cases through the iowrite#_rep functions, and all platforms which override > the default musb_read[b|w] / _write[b|w] functions also provide their own > fifo access funct

Re: [PATCH] usb: dwc2: host: fix dwc2 disconnect bug

2015-03-09 Thread Vincent Palatin
On Thu, Mar 5, 2015 at 11:17 PM, Yunzhi Li wrote: > When dwc2 controller detects a disconnect interrupt, > dwc2_hcd_disconnect() should be called immediately to do clean-up > jobs and set port_connect_status_change flag to notify usb hub > driver disconnect status. > > Signed-off-by: Yunzhi Li >

Re: [PATCH 1/7] fsl/otg: Add controller version based ULPI and UTMI phy

2015-03-09 Thread Felipe Balbi
On Wed, Jun 11, 2014 at 06:32:53PM +0530, Ramneek Mehresh wrote: > Add controller version based ULPI and UTMI phy initialization for > otg driver > > Signed-off-by: Shengzhou Liu > Signed-off-by: Ramneek Mehresh > Reviewed-by: Fleming Andrew-AFLEMING > Tested-by: Fleming Andrew-AFLEMING pleas

Re: [linux-sunxi] [PATCH 09/15] ARM: dts: sun4i: Add USB Dual Role Controller

2015-03-09 Thread Julian Calaby
Hi Hans, On Tue, Mar 10, 2015 at 7:40 AM, Hans de Goede wrote: > Add a node for the otg/drc usb controller to sun4i-a10.dtsi. > > Signed-off-by: Hans de Goede > --- > arch/arm/boot/dts/sun4i-a10.dtsi | 12 > drivers/usb/musb/Kconfig | 1 + > 2 files changed, 13 insertions(

[PATCH] phy: twl4030-usb: Remove redundant assignment for twl->linkstat

2015-03-09 Thread Axel Lin
It's pointless to set twl->linkstat twice. Signed-off-by: Axel Lin --- Resend with linux-usb in Cc. drivers/phy/phy-twl4030-usb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/phy/phy-twl4030-usb.c b/drivers/phy/phy-twl4030-usb.c index 8e87f54..bc42d6a 100644 --- a/drivers/phy/phy-t

Re: [PATCH 01/19] usb: dwc2: move debugfs code to a separate file

2015-03-09 Thread John Youn
On 3/9/2015 8:04 AM, Mian Yousaf Kaukab wrote: > + > +int dwc2_debugfs_init(struct dwc2_hsotg *hsotg) > +{ > + int ret; > + > + hsotg->debug_root = debugfs_create_dir(dev_name(hsotg->dev), NULL); > + if (!hsotg->debug_root) { > + ret = -ENOMEM; > +

Re: [PATCH 00/15] musb: Add support for the Allwinner sunxi musb controller

2015-03-09 Thread Chen-Yu Tsai
Hi Arnd, On Tue, Mar 10, 2015 at 5:44 AM, Arnd Bergmann wrote: > On Monday 09 March 2015 21:40:13 Hans de Goede wrote: >> Hi All, >> >> This patch set has been a while in the making, so I'm very happy to present >> the end result here, and I hope everyone likes it. > > Awesome work! > >> Before t

Re: [PATCH 03/19] usb: dwc2: add controller hibernation support

2015-03-09 Thread John Youn
On 3/9/2015 8:04 AM, Mian Yousaf Kaukab wrote: > From: Gregory Herrero > > When suspending usb bus, phy driver may disable controller power. > In this case, registers need to be saved on suspend and restored > on resume. > > Signed-off-by: Gregory Herrero > --- > drivers/usb/dwc2/core.c | 376

RE: [PATCH] drivers: usb: gadget: udc: Fix NULL dereference

2015-03-09 Thread Peter Chen
> > --- a/drivers/usb/gadget/udc/lpc32xx_udc.c > > +++ b/drivers/usb/gadget/udc/lpc32xx_udc.c > > @@ -1803,7 +1803,7 @@ static int lpc32xx_ep_queue(struct usb_ep *_ep, > > req = container_of(_req, struct lpc32xx_request, req); > > ep = container_of(_ep, struct lpc32xx_ep, ep); > > > > -

Re: [PATCH 07/19] usb: dwc2: set parameter values in probe function

2015-03-09 Thread John Youn
On 3/9/2015 8:04 AM, Mian Yousaf Kaukab wrote: > So the parameters can be used in both host and gadget modes. > > Signed-off-by: Mian Yousaf Kaukab > --- > drivers/usb/dwc2/core.h | 3 +-- > drivers/usb/dwc2/hcd.c | 18 +- > drivers/usb/dwc2/hcd.h | 3 +-- > drive

Re: [PATCH] drivers: usb: gadget: udc: Fix NULL dereference

2015-03-09 Thread Felipe Balbi
On Tue, Mar 10, 2015 at 02:02:44AM +, Peter Chen wrote: > > > > --- a/drivers/usb/gadget/udc/lpc32xx_udc.c > > > +++ b/drivers/usb/gadget/udc/lpc32xx_udc.c > > > @@ -1803,7 +1803,7 @@ static int lpc32xx_ep_queue(struct usb_ep *_ep, > > > req = container_of(_req, struct lpc32xx_request, req)

Re: [PATCH 17/19] usb: dwc2: host: spinlock urb_enqueue

2015-03-09 Thread John Youn
On 3/9/2015 8:05 AM, Mian Yousaf Kaukab wrote: > From: Gregory Herrero > > During urb_enqueue, if the urb can't be queued to the endpoint, > the urb is freed without any spinlock protection. > This leads to memory corruption when concurrent urb_dequeue try to free > same urb->hcpriv. > Thus, ensu

RE: [PATCH] drivers: usb: gadget: udc: Fix NULL dereference

2015-03-09 Thread Peter Chen
> On Tue, Mar 10, 2015 at 02:02:44AM +, Peter Chen wrote: > > > > > > --- a/drivers/usb/gadget/udc/lpc32xx_udc.c > > > > +++ b/drivers/usb/gadget/udc/lpc32xx_udc.c > > > > @@ -1803,7 +1803,7 @@ static int lpc32xx_ep_queue(struct usb_ep *_ep, > > > > req = container_of(_req, struct lpc