Re: driver migration

2016-02-21 Thread tilman
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 around 5-7 minutes to see the kernel crash, and then reboot, make

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

2016-02-21 Thread Felipe Balbi
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]: >> > > > On

RE: [RESEND PATCH v6 07/10] usb: chipidea: otg: enable HNP polling support for gadget and host

2016-02-21 Thread Felipe Balbi
Hi, Jun Li writes: >> > Li Jun writes: >> > > Enable HNP polling support for chipidea gadget and allocate memory >> > > for host request flag when otg fsm init. >> > > >> > > Acked-by: Peter Chen >> > > Signed-off-by: Li Jun

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

2016-02-21 Thread Bjorn Andersson
On Sun 21 Feb 22:02 PST 2016, Peter Chen wrote: > On Sun, Feb 21, 2016 at 09:32:13PM -0800, 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

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

2016-02-21 Thread Peter Chen
On Sun, Feb 21, 2016 at 09:32:13PM -0800, 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. > >

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

2016-02-21 Thread Bjorn Andersson
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 ---

Re: [PATCH v2 1/3] usb: core: Allow compilation on platforms where NO_DMA=y

2016-02-21 Thread Greg Kroah-Hartman
On Sun, Feb 21, 2016 at 10:46:59PM +0100, Geert Uytterhoeven wrote: > Hi Greg, > > On Sun, Feb 21, 2016 at 5:23 AM, Greg Kroah-Hartman > wrote: > > On Tue, Feb 16, 2016 at 04:10:57PM +0100, Geert Uytterhoeven wrote: > >> Some platforms don't have DMA, but we should

[PATCH] USB: idmouse.c: Put the interface on error

2016-02-21 Thread Junjie Mao
usb_autopm_put_interface() should be called regardless of what idmouse_create_image() returns. Signed-off-by: Junjie Mao --- drivers/usb/misc/idmouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/misc/idmouse.c

RE: USB oops regression caused by -stable patch

2016-02-21 Thread Du, Changbin
Thanks for reporting, Tony. It was remiss of me. There is another BOS free operation in label re_enumerate. This cause a double-free of BOS. USB2 doesn't have BOS desc, so you cannot reproduce it. I am on a travel. It is appreciated if you can help try below fix. Hi, Greg, I will commit a final

Re: [PATCH RESEND] usb: phy: mxs: Suggest passing "usbcore.autosuspend=-1" for mx23/mx28

2016-02-21 Thread Peter Chen
On Fri, Feb 19, 2016 at 11:05 PM, Fabio Estevam wrote: > On Fri, Feb 19, 2016 at 12:13 PM, Felipe Balbi wrote: > >> h, okay. So you have another problem, actually. Seems like ci_hdrc >> just shouldn't call your phy->suspend(), or your phy->suspend() >>

[PATCH 3/3] usb: musb: sunxi: support module autoloading

2016-02-21 Thread Emilio López
From: Emilio López MODULE_DEVICE_TABLE() is missing, so the module isn't auto-loading on sunxi systems using the OTG controller. This commit adds the missing line so it loads automatically when building it as a module and running on a system with an USB OTG port.

[PATCH 2/3] dmaengine: sun4i: support module autoloading

2016-02-21 Thread Emilio López
From: Emilio López MODULE_DEVICE_TABLE() is missing, so the module isn't auto-loading on supported systems. This commit adds the missing line so it loads automatically when building it as a module and running on a system with the early sunxi DMA engine.

[PATCH 1/3] [media] rc: sunxi-cir: support module autoloading

2016-02-21 Thread Emilio López
From: Emilio López MODULE_DEVICE_TABLE() is missing, so the module isn't auto-loading on systems supporting infrared. This commit adds the missing line so it works out of the box when built as a module and running on a sunxi system with an infrared receiver.

Re: [PATCH v2 1/3] usb: core: Allow compilation on platforms where NO_DMA=y

2016-02-21 Thread Geert Uytterhoeven
Hi Greg, On Sun, Feb 21, 2016 at 5:23 AM, Greg Kroah-Hartman wrote: > On Tue, Feb 16, 2016 at 04:10:57PM +0100, Geert Uytterhoeven wrote: >> Some platforms don't have DMA, but we should still be able to build USB >> drivers for these platforms. They could still be

[PATCH v5] usb: devio: Add ioctl to disallow detaching kernel USB drivers.

2016-02-21 Thread Emilio López
From: Reilly Grant The new USBDEVFS_DROP_PRIVILEGES ioctl allows a process to voluntarily relinquish the ability to issue other ioctls that may interfere with other processes and drivers that have claimed an interface on the device. This commit also includes a simple

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

2016-02-21 Thread Lars Melin
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 Connect - PC UI Interface MI_01 HP Mobile Connect - Application Interface MI_02 HP

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

2016-02-21 Thread Pali Rohár
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]: > > > > On Thu 21 January 2016 11:21:13 Tony Lindgren wrote: >