Re: commit 4b61b4f205eabfc9f863f805858aa5b32deb3de5 - usb: add HAS_IOMEM dependency to USB_APPLEDISPLAY

2016-02-22 Thread Oliver Neukum
On Sat, 2016-02-20 at 14:50 -0800, Greg Kroah-Hartman wrote: > On Sat, Feb 20, 2016 at 11:44:38PM +0100, Vegard Nossum wrote: > > On 02/20/2016 11:22 PM, Greg Kroah-Hartman wrote: > > >On Tue, Feb 16, 2016 at 05:43:32PM +0100, Oliver Neukum wrote: > > >>On Tue, 2016-02-16 at 13:12 +0100, Vegard Nos

Re: [PATCH 1/2] usb: dwc3: drop FIFO resizing logic

2016-02-22 Thread Kishon Vijay Abraham I
Hi Felipe, On Wednesday 10 February 2016 03:47 PM, Kishon Vijay Abraham I wrote: > Hi, > > On Wednesday 10 February 2016 03:43 PM, Felipe Balbi wrote: >> >> Hi, >> >> Kishon Vijay Abraham I writes: >>> Hi Felipe, >>> >>> On Thursday 04 February 2016 05:48 PM, Felipe Balbi wrote: That FIFO r

[PATCH] usb: dwc2: Use kmem_cache_free()

2016-02-22 Thread Amitoj Kaur Chawla
Here, free memory is allocated using kmem_cache_zalloc. So, use kmem_cache_free instead of kfree. This is done using Coccinelle and semantic patch used is as follows: // @@ expression x,E,c; @@ x = \(kmem_cache_alloc\|kmem_cache_zalloc\|kmem_cache_alloc_node\)(c,...) ... when != x = E whe

Re: Nokia N900: musb is in wrong state after boot

2016-02-22 Thread Pali Rohár
On Monday 22 February 2016 09:31:50 Felipe Balbi wrote: > Pali Rohár writes: > > > On Tuesday 26 January 2016 18:26:32 Tony Lindgren wrote: > >> * Pali Rohár [160126 06:35]: > >> > On Thursday 21 January 2016 12:30:13 Tony Lindgren wrote: > >> > > * joerg Reisenweber [160121 11:35]: > >> > > >

Re: [PATCH 1/2] usb: dwc3: drop FIFO resizing logic

2016-02-22 Thread Felipe Balbi
Hi, Kishon Vijay Abraham I writes: On Thursday 04 February 2016 05:48 PM, Felipe Balbi wrote: > That FIFO resizing logic was added to support OMAP5 > ES1.0 which had a bogus default FIFO size. I can't > remember the exact size of default FIFO, but it was > less than one bulk

Re: [HELP] USB 3.0 PCI Endpoint problem

2016-02-22 Thread Felipe Balbi
Hi, Joao Pinto writes: > Hi to all! > I am testing a PCIe Root Complex prototyping setup in which I have a USB 3.0 > host as a PCI Endpoint. > Running in an ARC CPU platform it works well, but when running in an emulated > ARM64 (this is done by a Synopsys virtualization tool) the endpoint > ini

Re: Nokia N900: musb is in wrong state after boot

2016-02-22 Thread Felipe Balbi
Hi, Pali Rohár writes: > On Monday 22 February 2016 09:31:50 Felipe Balbi wrote: >> Pali Rohár writes: >> >> > On Tuesday 26 January 2016 18:26:32 Tony Lindgren wrote: >> >> * Pali Rohár [160126 06:35]: >> >> > On Thursday 21 January 2016 12:30:13 Tony Lindgren wrote: >> >> > > * joerg Reisen

Re: Nokia N900: musb is in wrong state after boot

2016-02-22 Thread Felipe Balbi
Hi, Pali Rohár writes: > On Monday 22 February 2016 09:31:50 Felipe Balbi wrote: >> Pali Rohár writes: >> >> > On Tuesday 26 January 2016 18:26:32 Tony Lindgren wrote: >> >> * Pali Rohár [160126 06:35]: >> >> > On Thursday 21 January 2016 12:30:13 Tony Lindgren wrote: >> >> > > * joerg Reisen

[PATCH v3] usb: host: Host drivers relying on DMA should depend on HAS_DMA

2016-02-22 Thread Geert Uytterhoeven
If NO_DMA=y: ERROR: "bad_dma_ops" [drivers/usb/host/xhci-plat-hcd.ko] undefined! ERROR: "bad_dma_ops" [drivers/usb/host/xhci-mtk.ko] undefined! ERROR: "dma_pool_destroy" [drivers/usb/host/xhci-hcd.ko] undefined! ERROR: "bad_dma_ops" [drivers/usb/host/xhci-hcd.ko] undefined! ERR

Re: [PATCH] usb: chipidea: Configure DMA properties and ops from DT

2016-02-22 Thread Srinivas Kandagatla
On 22/02/16 05:32, Bjorn Andersson wrote: On certain platforms (e.g. ARM64) the dma_ops needs to be explicitly set to be able to do DMA allocations, so use the of_dma_configure() helper to populate the dma properties and assign an appropriate dma_ops. Signed-off-by: Bjorn Andersson --- driv

Re: [PATCH 1/2] usb: dwc3: drop FIFO resizing logic

2016-02-22 Thread Kishon Vijay Abraham I
Hi, On Monday 22 February 2016 02:07 PM, Felipe Balbi wrote: > > Hi, > > Kishon Vijay Abraham I writes: > On Thursday 04 February 2016 05:48 PM, Felipe Balbi wrote: >> That FIFO resizing logic was added to support OMAP5 >> ES1.0 which had a bogus default FIFO size. I can't >> re

Re: [PATCH 1/2] usb: dwc3: drop FIFO resizing logic

2016-02-22 Thread Felipe Balbi
Hi, Kishon Vijay Abraham I writes: >> Kishon Vijay Abraham I writes: >> On Thursday 04 February 2016 05:48 PM, Felipe Balbi wrote: >>> That FIFO resizing logic was added to support OMAP5 >>> ES1.0 which had a bogus default FIFO size. I can't >>> remember the exact size of defaul

Re: [PATCH] Support HP lt4114 LTE Module (Huawei ME206V-561)

2016-02-22 Thread Lars Melin
On 2016-02-21 10:09, Daniel Johnson wrote: On Fri, Feb 19, 2016 at 12:27 AM, Bjørn Mork wrote: One of them is likely a QCDM port if this is really a Qualcomm based device. The other might be an inactive NMEA port. Serial doesn't necessarily imply AT commands... I found the FCC ID for the de

Re: USB oops regression caused by -stable patch

2016-02-22 Thread Tony Battersby
Thanks, that fixes it. Tested on 4.5.0-rc5 and 3.18.27. Just to be clear, I tested it *without* reverting d8f00cd685f5. So this patch is in addition to d8f00cd685f5 instead of replacing it. Tested-by: Tony Battersby On 02/21/2016 09:27 PM, Du, Changbin wrote: > Thanks for reporting, Tony. It

Re: Nokia N900: musb is in wrong state after boot

2016-02-22 Thread Bin Liu
Hi, On Mon, Feb 22, 2016 at 10:54:21AM +0200, Felipe Balbi wrote: > > Hi, > > Pali Rohár writes: > > On Monday 22 February 2016 09:31:50 Felipe Balbi wrote: > >> Pali Rohár writes: > >> > >> > On Tuesday 26 January 2016 18:26:32 Tony Lindgren wrote: > >> >> * Pali Rohár [160126 06:35]: > >>

Re: Nokia N900: musb is in wrong state after boot

2016-02-22 Thread Adam Ford
For what it's worth, I tried running the MUSB via the twl4030 on Linux-Next (I don't remember which snapshot), and it was broken for me on a DM3730 (OMAP 3630), but Kernel 4.4.2 worked. Are you using Linux-Next or one of the stable kernels? I can try again later this week with a newer linux-next

Re: [PATCH] usb: move usb_calc_bus_time into common code

2016-02-22 Thread Doug Anderson
John, On Fri, Feb 19, 2016 at 6:55 PM, John Youn wrote: > On 2/19/2016 2:48 PM, Doug Anderson wrote: >> Hi, >> >> On Fri, Feb 19, 2016 at 1:52 PM, Alan Stern >> wrote: >>> On Fri, 19 Feb 2016, Arnd Bergmann wrote: >>> The dwc2 dual-role USB controller driver has started calling usb_ca

Re: driver migration

2016-02-22 Thread Greg KH
On Mon, Feb 22, 2016 at 07:34:08AM +, tilman wrote: > > Hello > > > You can use ftrace to help you watch the flow of your driver before it > > crashes, or just printk, as you have found out, is the best way to debug > > things. > Thanks for the hints. I will give ftrace a go. > It takes me a

Re: [PATCH] Support HP lt4114 LTE Module (Huawei ME206V-561)

2016-02-22 Thread Dan Williams
On Mon, 2016-02-22 at 18:03 +0700, Lars Melin wrote: > On 2016-02-21 10:09, Daniel Johnson wrote: > > On Fri, Feb 19, 2016 at 12:27 AM, Bjørn Mork wrote: > > > One of them is likely a QCDM port if this is really a Qualcomm > > > based > > > device.  The other might be an inactive NMEA port.  Seria

Re: [PATCH] Support HP lt4114 LTE Module (Huawei ME206V-561)

2016-02-22 Thread Dan Williams
On Sun, 2016-02-21 at 12:44 +0700, Lars Melin wrote: > On 2016-02-20 03:34, Dan Williams wrote: > > On Fri, 2016-02-19 at 18:21 +0100, Bjørn Mork wrote: > > > Dan Williams writes: > > > > On Fri, 2016-02-19 at 21:20 +0700, Lars Melin wrote: > > > > > > > > > cfg #1 > > > > > MI_00 HP Mobile Conne

Re: "reset full-speed USB device number 6 using ehci-pci" with Dell Inspiron 15R 5537

2016-02-22 Thread Alan Stern
On Fri, 19 Feb 2016, Alan Stern wrote: > On Fri, 19 Feb 2016, Daniel Fraga wrote: > > > On Fri, 19 Feb 2016 14:13:25 -0500 (EST) > > Alan Stern wrote: > > > > > -22 is -EINVAL, so we need to figure out which of the many possible > > > EINVAL errors you're getting. Try the patch below. > > > >

Re: "reset full-speed USB device number 6 using ehci-pci" with Dell Inspiron 15R 5537

2016-02-22 Thread Daniel Fraga
On Mon, 22 Feb 2016 14:30:32 -0500 (EST) Alan Stern wrote: > Well, I'm still puzzled. I tried running that patch on my system > (under 4.5-rc2) and it worked perfectly. > > So let's try for a little more detail. Please apply this patch instead > of the earlier one. Also, add no_console_suspen

[PATCH 0/9] Change return type of of_clk_get_parent_count() to unsigned

2016-02-22 Thread Stephen Boyd
Russell King recently pointed out that of_clk_get_parent_count() can return a negative number if the "clocks" property isn't present in a node. Upon investigating all the callers of this API, none of the them seem to care about that case, and furthermore some callers are assigning the return value

[PATCH 8/9] usb: dwc3: Remove impossible check for of_clk_get_parent_count() < 0

2016-02-22 Thread Stephen Boyd
The check for < 0 is impossible now that of_clk_get_parent_count() returns an unsigned int. Simplify the code and update the types. Cc: Felipe Balbi Cc: Signed-off-by: Stephen Boyd --- Please ack so this can go through clk tree along with patch 1. drivers/usb/dwc3/dwc3-of-simple.c | 9 +-

Re: "reset full-speed USB device number 6 using ehci-pci" with Dell Inspiron 15R 5537

2016-02-22 Thread Alan Stern
On Mon, 22 Feb 2016, Daniel Fraga wrote: > On Mon, 22 Feb 2016 14:30:32 -0500 (EST) > Alan Stern wrote: > > > Well, I'm still puzzled. I tried running that patch on my system > > (under 4.5-rc2) and it worked perfectly. > > > > So let's try for a little more detail. Please apply this patch in

Re: [PATCH] usb: chipidea: Configure DMA properties and ops from DT

2016-02-22 Thread Bjorn Andersson
On Mon 22 Feb 02:03 PST 2016, Srinivas Kandagatla wrote: > > > On 22/02/16 05:32, Bjorn Andersson wrote: > >On certain platforms (e.g. ARM64) the dma_ops needs to be explicitly set > >to be able to do DMA allocations, so use the of_dma_configure() helper > >to populate the dma properties and ass

Re: "reset full-speed USB device number 6 using ehci-pci" with Dell Inspiron 15R 5537

2016-02-22 Thread Daniel Fraga
On Mon, 22 Feb 2016 16:22:59 -0500 (EST) Alan Stern wrote: > Unfortunately I really need to see the stuff that shows up before the > first couple of pictures. Is there any way you can use a serial > console or network console to capture the log data? Unfortunately no :( > Failing tha

Error While Connecting Pendrive

2016-02-22 Thread Anil Nair
Hi, I am getting following error while connecting my pendrive, [ 3793.220454] scsi 5:0:0:0: Direct-Access Kingston DataTraveler 2.0 1.00 PQ: 0 ANSI: 4 [ 3793.220543] device: 'target5:0:0': device_add [ 3793.220562] bus: 'scsi': add device target5:0:0 [ 3793.220590] PM: Adding info for scsi:ta

Re: [PATCH] usb: chipidea: Configure DMA properties and ops from DT

2016-02-22 Thread Peter Chen
On Mon, Feb 22, 2016 at 02:07:50PM -0800, Bjorn Andersson wrote: > On Mon 22 Feb 02:03 PST 2016, Srinivas Kandagatla wrote: > > > I'm still puzzled to why the chipidea lives as a child device of the msm > device; but as this is a rather common structure I believe this still > needs to be figured

Freezable workqueue blocks non-freezable workqueue during the system resume process

2016-02-22 Thread Peter Chen
Hi Tejun Heo and Florian Mickler, I have a question that during the system resume process, the freezable workqueue can be thawed if there is a non-freezable workqueue is blocked (At uninterruptable state)? My case like below, I have a USB OTG (Micro-AB) cable is at USB Micro-B port, and there is

Re: [PATCH 8/9] usb: dwc3: Remove impossible check for of_clk_get_parent_count() < 0

2016-02-22 Thread Felipe Balbi
Hi, Stephen Boyd writes: > The check for < 0 is impossible now that > of_clk_get_parent_count() returns an unsigned int. Simplify the > code and update the types. > > Cc: Felipe Balbi > Cc: > Signed-off-by: Stephen Boyd > --- > > Please ack so this can go through clk tree along with patch 1.

[GIT PULL] USB fixes for v4.5-rc6

2016-02-22 Thread Felipe Balbi
Hi Greg, here's what I hope to be the last pull request for current -rc cycle. Let me know if you want any changes on the contents. cheers The following changes since commit 18558cae0272f8fd9647e69d3fec1565a7949865: Linux 4.5-rc4 (2016-02-14 13:05:20 -0800) are available in the git reposito