Re: some questions about PM enable with usb driver

2016-03-23 Thread Alan Stern
On Wed, 23 Mar 2016, yoma sophian wrote: > hi Alan: > 2016-03-04 23:25 GMT+08:00 Alan Stern : > > On Fri, 4 Mar 2016, yoma sophian wrote: > > > >> BTW, when I disable BH support in hcd driver. > >> I get below recursion of spin lock sometimes. > >> Did I missing anything once disable BH? > > > > Y

Re: some questions about PM enable with usb driver

2016-03-23 Thread yoma sophian
hi Alan: 2016-03-04 23:25 GMT+08:00 Alan Stern : > On Fri, 4 Mar 2016, yoma sophian wrote: > >> BTW, when I disable BH support in hcd driver. >> I get below recursion of spin lock sometimes. >> Did I missing anything once disable BH? > > Yes, you missed a very important fact: ehci-hcd _requires_ BH

Re: some questions about PM enable with usb driver

2016-03-04 Thread Alan Stern
On Fri, 4 Mar 2016, yoma sophian wrote: > hi Alan and Peter: > >> > >> Backtrace: > >> [] (ehci_handle_start_intr_unlinks [ehci_hcd]) from > >> [] (ehci_bus_suspend+0x388/0x464 [ehci_hcd]) > > > > Since there aren't any devices registered on the USB bus yet, > > ehci_handle_start_intr_unlink() sho

Re: some questions about PM enable with usb driver

2016-03-04 Thread yoma sophian
hi Alan and Peter: >> >> Backtrace: >> [] (ehci_handle_start_intr_unlinks [ehci_hcd]) from >> [] (ehci_bus_suspend+0x388/0x464 [ehci_hcd]) > > Since there aren't any devices registered on the USB bus yet, > ehci_handle_start_intr_unlink() should do nothing. It iterates over > ehci->intr_unlink, bu

Re: some questions about PM enable with usb driver

2016-03-04 Thread Peter Chen
On Thu, Mar 03, 2016 at 11:16:11PM +0800, yoma sophian wrote: > hi all: > When I porting my platform ehci driver on kernel v4.1, > I get back trace like below without plug in any device and just insert > usb-common.ko, usbcore.ko and ehci-hcd.ko. > (and detail is show in the attachment) > > It see

Re: some questions about PM enable with usb driver

2016-03-03 Thread Alan Stern
On Thu, 3 Mar 2016, yoma sophian wrote: > hi all: > When I porting my platform ehci driver on kernel v4.1, > I get back trace like below without plug in any device and just insert > usb-common.ko, usbcore.ko and ehci-hcd.ko. > (and detail is show in the attachment) > > It seems caused by the PM r

some questions about PM enable with usb driver

2016-03-03 Thread yoma sophian
hi all: When I porting my platform ehci driver on kernel v4.1, I get back trace like below without plug in any device and just insert usb-common.ko, usbcore.ko and ehci-hcd.ko. (and detail is show in the attachment) It seems caused by the PM related thread that is wakened up, even there is no devi