[PATCH v2] ARM64: dts: meson-gxbb-odroidc2: Enable USB Nodes

2016-10-04 Thread Brian Kim
Enable both gxbb USB controller and add a 5V regulator for the OTG port VBUS Signed-off-by: Brian Kim --- This patch was written on Kevin Hilman's repository[1] and branch[2]: [1] https://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-amlogic.git [2] v4.8/integ Chnages since v1: - rename

Re: [PATCH] Revert "usb: dwc3: gadget: use allocated/queued reqs for LST bit"

2016-10-04 Thread Felipe Balbi
Hi again, Felipe Balbi writes: > ville.syrj...@linux.intel.com writes: >> From: Ville Syrjälä >> >> This reverts commit 55a0237f8f47957163125e20ee9260538c5c341c. >> >> commit 55a0237f8f47 ("usb: dwc3: gadget: use allocated/queued reqs for >> LST bit") causes my BYT FFRD8 with g_ether to behave

Re: USB will randomly stop working

2016-10-04 Thread Greg KH
A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Mon, Oct 03, 2016 at 01:

[RESEND PATCH v3 2/2] usb: dwc3: Wait for control tranfer completed when stopping gadget

2016-10-04 Thread Baolin Wang
When we change the USB function with configfs dynamically, we possibly met this situation: one core is doing the control transfer, another core is trying to unregister the USB gadget from userspace, we must wait for completing this control tranfer, or it will hang the controller to set the DEVCTRLH

[RESEND PATCH v3 1/2] usb: dwc3: gadget: Add disconnect checking when changing function dynamically

2016-10-04 Thread Baolin Wang
When system has stpped the gadget, we should avoid queuing any requests which will cause tranfer failed. Thus adding some disconnect checking to avoid this situation. Signed-off-by: Baolin Wang --- Changes since v2: - Move disconnect checking into dwc3_send_gadget_ep_cmd(). - Rename completion

Re: [PATCH v6 1/3] usb: ohci-da8xx: Remove code that references mach

2016-10-04 Thread Kevin Hilman
Hi Greg, On Mon, Sep 5, 2016 at 10:00 PM, David Lechner wrote: > Including mach/* is frowned upon in device drivers, so get rid of it. > > This replaces usb20_clk and code that pokes CFGCHIP2 with a proper phy > driver. > > Signed-off-by: David Lechner > Acked-by: Alan Stern Can you pick up th

[PATCH] phy: nop: Add a new phy driver for No-Op transceiver

2016-10-04 Thread Vivek Gautam
No-Op phy transceiver can be used on platforms that have controllers which themselves provide PHY functionality and there's no separate PHY controller available. This driver provides a basic skeleton for a nop-phy driver. This can be further extended to add required features. Inspired by phy-gene

Re: USB hot-plug not working (ASUS TP301UA-C4028T)

2016-10-04 Thread Mathias Nyman
On 03.10.2016 23:54, Pierre de Villemereuil wrote: Hi Mathias, Just to know: does that mean the firmware from Asus is faulty in here? Do you think I should contact Asus about this? Probably, _S0W, _DSM and XFLT code for xHCI are useless in that ACPI DSDT firmware version. But we still want

Re: PROBLEM: DWC3 USB 3.0 not working on Odroid-XU4 with Exynos 5422

2016-10-04 Thread Vivek Gautam
Hi Michael, On Tue, Oct 4, 2016 at 4:28 PM, Michael Niewöhner wrote: > > > > > > [1.] One line summary of the problem: > > > > > > DWC3 USB 3.0 not working on Odroid-XU4 with Exynos 5422 > > > > > > > > > > > > [2.] Full description of the problem/report: > > > > > > No usb 3.0 devices are bein

Re: [PATCH v6 1/1] USB: serial: cp210x: Adding GPIO support for CP2105

2016-10-04 Thread Linus Walleij
On Sat, Sep 24, 2016 at 12:50 AM, Martyn Welch wrote: > This patch adds support for the GPIO found on the CP2105. > This device supports either push-pull or open-drain modes, it doesn't > provide an explicit input mode, though the state of the GPIO can be read > when used in open-drain mode. Li

Re: [PATCH] Revert "usb: dwc3: gadget: use allocated/queued reqs for LST bit"

2016-10-04 Thread Felipe Balbi
Hi, Ville Syrjälä writes: > On Mon, Oct 03, 2016 at 07:08:43PM +0300, Felipe Balbi wrote: >> >> Hi, >> >> ville.syrj...@linux.intel.com writes: >> > From: Ville Syrjälä >> > >> > This reverts commit 55a0237f8f47957163125e20ee9260538c5c341c. >> > >> > commit 55a0237f8f47 ("usb: dwc3: gadget:

Re: [PATCH] Revert "usb: dwc3: gadget: use allocated/queued reqs for LST bit"

2016-10-04 Thread Ville Syrjälä
On Tue, Oct 04, 2016 at 03:23:12PM +0300, Felipe Balbi wrote: > > Hi, > > Ville Syrjälä writes: > > On Mon, Oct 03, 2016 at 07:08:43PM +0300, Felipe Balbi wrote: > >> > >> Hi, > >> > >> ville.syrj...@linux.intel.com writes: > >> > From: Ville Syrjälä > >> > > >> > This reverts commit 55a0237f

Re: [PATCH v6 1/3] usb: ohci-da8xx: Remove code that references mach

2016-10-04 Thread Greg Kroah-Hartman
On Tue, Oct 04, 2016 at 11:18:03AM +0200, Kevin Hilman wrote: > Hi Greg, > > On Mon, Sep 5, 2016 at 10:00 PM, David Lechner wrote: > > Including mach/* is frowned upon in device drivers, so get rid of it. > > > > This replaces usb20_clk and code that pokes CFGCHIP2 with a proper phy > > driver. >

Re: [PATCH] Revert "usb: dwc3: gadget: use allocated/queued reqs for LST bit"

2016-10-04 Thread Felipe Balbi
Hi, Ville Syrjälä writes: > On Tue, Oct 04, 2016 at 03:23:12PM +0300, Felipe Balbi wrote: >> >> Hi, >> >> Ville Syrjälä writes: >> > On Mon, Oct 03, 2016 at 07:08:43PM +0300, Felipe Balbi wrote: >> >> >> >> Hi, >> >> >> >> ville.syrj...@linux.intel.com writes: >> >> > From: Ville Syrjälä >

Re: USB hot-plug not working (ASUS TP301UA-C4028T)

2016-10-04 Thread Alan Stern
On Tue, 4 Oct 2016, Mathias Nyman wrote: > On 03.10.2016 23:54, Pierre de Villemereuil wrote: > > Hi Mathias, > > > > Just to know: does that mean the firmware from Asus is faulty in here? Do > > you > > think I should contact Asus about this? > > > > Probably, _S0W, _DSM and XFLT code for xHCI

Re: PROBLEM: DWC3 USB 3.0 not working on Odroid-XU4 with Exynos 5422

2016-10-04 Thread Anand Moon
Hi Vivek, On 4 October 2016 at 17:32, Vivek Gautam wrote: > Hi Michael, > > > On Tue, Oct 4, 2016 at 4:28 PM, Michael Niewöhner > wrote: > >> > > > > > [1.] One line summary of the problem: >> > > > > > DWC3 USB 3.0 not working on Odroid-XU4 with Exynos 5422 >> > > > > > >> > > > > > [2.] Full

Re: [PATCH v6 1/3] usb: ohci-da8xx: Remove code that references mach

2016-10-04 Thread David Lechner
On 10/04/2016 08:38 AM, Greg Kroah-Hartman wrote: On Tue, Oct 04, 2016 at 11:18:03AM +0200, Kevin Hilman wrote: Hi Greg, On Mon, Sep 5, 2016 at 10:00 PM, David Lechner wrote: Including mach/* is frowned upon in device drivers, so get rid of it. This replaces usb20_clk and code that pokes CFG

[PATCH] usb: core: remove local_irq_save/restore around urb->complete

2016-10-04 Thread Bin Liu
local_irq_save() disables irq completely on non-SMP which causes the hard interrupt handler unable to serve interrupts, which loses the benefit that the giveback tasklet brings in usb_hcd_giveback_urb(). One example of the issues caused by this disabling local irq is that urb->complete in uvc driv

[PATCH v2] usb: core: remove local_irq_save/restore around urb->complete

2016-10-04 Thread Bin Liu
local_irq_save() disables irq completely on non-SMP which causes the hard interrupt handler unable to serve interrupts, which loses the benefit that the giveback tasklet brings in usb_hcd_giveback_urb(). One example of the issues caused by this disabling local irq is that urb->complete in uvc driv

Re: [PATCH v2] usb: core: remove local_irq_save/restore around urb->complete

2016-10-04 Thread Alan Stern
On Tue, 4 Oct 2016, Bin Liu wrote: > local_irq_save() disables irq completely on non-SMP which causes the > hard interrupt handler unable to serve interrupts, which loses the > benefit that the giveback tasklet brings in usb_hcd_giveback_urb(). It doesn't lose all the benefit. Interrupts are sti

[PATCH] usb/core: Added devspec sysfs entry for devices behind usb hub

2016-10-04 Thread Vijay Kumar
Grub finds incorrect of_node path for devices behind usb hub. Added devspec sysfs entry for devices behind usb hub so that right of_node path is returned during grub sysfs walk for these devices. Signed-off-by: Vijay Kumar --- drivers/usb/core/sysfs.c | 15 +++ 1 files changed, 15

Re: [PATCH] usb/core: Added devspec sysfs entry for devices behind usb hub

2016-10-04 Thread Greg KH
On Tue, Oct 04, 2016 at 12:04:40PM -0700, Vijay Kumar wrote: > Grub finds incorrect of_node path for devices behind usb hub. > Added devspec sysfs entry for devices behind usb hub so that > right of_node path is returned during grub sysfs walk for these > devices. > > Signed-off-by: Vijay Kumar >

Re: [PATCH v6 1/3] usb: ohci-da8xx: Remove code that references mach

2016-10-04 Thread Greg Kroah-Hartman
On Tue, Oct 04, 2016 at 12:30:58PM -0500, David Lechner wrote: > On 10/04/2016 08:38 AM, Greg Kroah-Hartman wrote: > > On Tue, Oct 04, 2016 at 11:18:03AM +0200, Kevin Hilman wrote: > > > Hi Greg, > > > > > > On Mon, Sep 5, 2016 at 10:00 PM, David Lechner > > > wrote: > > > > Including mach/* is

[PATCH v2] hwrng: chaoskey - drop workaround for old hwrng core limitation

2016-10-04 Thread Julien Cristau
The hwrng core used to mask 'quality' with 1023; that has been removed in commit 506bf0c0464ace57169aadcf02ae397999c57bdd ("hwrng: core - allow perfect entropy from hardware devices"), so we can now just set quality to 1024. Signed-off-by: Julien Cristau --- drivers/usb/misc/chaoskey.c | 14 +---

[PATCH] USB: xhci: add port test modes support for USB2

2016-10-04 Thread Guoqing Zhang
For USB2 ports, the port test modes TEST_J_State, Test_K_State, Test_Packet and Test_SE0_NAK can be enabled as described in USB2 spec. Signed-off-by: Guoqing Zhang --- drivers/usb/host/xhci-hub.c | 55 +++-- 1 file changed, 53 insertions(+), 2 deletions(-)

Re: [PATCH v2] usb: core: remove local_irq_save/restore around urb->complete

2016-10-04 Thread Bin Liu
On Tue, Oct 04, 2016 at 02:50:09PM -0400, Alan Stern wrote: > On Tue, 4 Oct 2016, Bin Liu wrote: > > > local_irq_save() disables irq completely on non-SMP which causes the > > hard interrupt handler unable to serve interrupts, which loses the > > benefit that the giveback tasklet brings in usb_hcd

Re: USB will randomly stop working

2016-10-04 Thread Ashton Holmes
On Tue, Oct 4, 2016 at 12:11 AM, Greg KH wrote: > > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing in e-mail? > > A: No. > Q: Should I include quotations after my reply? > > > ht

Re: PROBLEM: DWC3 USB 3.0 not working on Odroid-XU4 with Exynos 5422

2016-10-04 Thread Vivek Gautam
Hi Anand, On Tue, Oct 4, 2016 at 8:39 PM, Anand Moon wrote: > Hi Vivek, > [snip] > > What I feel is that their need to be some reset of usb phy so that > device are assigned to respective bus ports. The phy resets are what we do in the phy-exynos5-usbdrd driver. In addition to what we have cu

Re: USB will randomly stop working

2016-10-04 Thread Greg KH
On Tue, Oct 04, 2016 at 05:15:17PM -0700, Ashton Holmes wrote: > On Tue, Oct 4, 2016 at 12:11 AM, Greg KH wrote: > >> Also my knowledge of git isn't that extensive and I got the source > >> from the download on the site not from the git repo so it tells me > >> there's no .git file but if I can fi

Re: USB will randomly stop working

2016-10-04 Thread Ashton Holmes
On Tue, Oct 4, 2016 at 10:18 PM, Greg KH wrote: > On Tue, Oct 04, 2016 at 05:15:17PM -0700, Ashton Holmes wrote: >> On Tue, Oct 4, 2016 at 12:11 AM, Greg KH wrote: >> >> Also my knowledge of git isn't that extensive and I got the source >> >> from the download on the site not from the git repo so

PROBLEM: am3517 usb-ohci not working

2016-10-04 Thread Łukasz Pułka
Hi, I am trying to make 4.4 kernel working with old am3517 SOM (http://www.dave.eu/products/som/texas_instruments/am3505-am3517_lizard). Most of the peripherals are working know - however I got stuck with usb ohci driver. Both USB HS ports are connected to ISP1105, hardware is working with old 2

Re: USB will randomly stop working

2016-10-04 Thread Greg KH
On Tue, Oct 04, 2016 at 11:07:20PM -0700, Ashton Holmes wrote: > On Tue, Oct 4, 2016 at 10:18 PM, Greg KH wrote: > > On Tue, Oct 04, 2016 at 05:15:17PM -0700, Ashton Holmes wrote: > >> On Tue, Oct 4, 2016 at 12:11 AM, Greg KH > >> wrote: > >> >> Also my knowledge of git isn't that extensive and