Re: [PATCH] xhci: Hard reset controller on shutdown.

2017-10-31 Thread wenxiong
On 2017-10-21 10:04, Alan Stern wrote: On Fri, 20 Oct 2017, Brian King wrote: On 10/19/2017 12:04 PM, Alan Stern wrote: > On Thu, 19 Oct 2017, Mathias Nyman wrote: > >> Current shutdown routine just forces the host controller to stop, it clears the >> run bit and polls the "halted" status for

Re: [PATCH] usb: "USB Host halt failed, -110" error when rebooting system

2017-10-20 Thread wenxiong
On 2017-10-19 12:04, Alan Stern wrote: On Thu, 19 Oct 2017, Mathias Nyman wrote: Current shutdown routine just forces the host controller to stop, it clears the run bit and polls the "halted" status for 16ms. Apparently we don't see the halted bit within 16ms. Spec say that the correct way

[PATCH] usb: "USB Host halt failed, -110" error when rebooting system

2017-10-17 Thread wenxiong
From: Wen Xiong We saw "Host halt failed, -110" error when rebooting system/ shutdowning system/kexec constantly. This patch called usb_disconnect() before calling xhci_halt(). usb_disconnect()disconnect the parent and all of its children, clean up hardware state