]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00173378-1 usb: device: Change judgement condition for resume occurrence
authorPeter Chen <peter.chen@freescale.com>
Tue, 31 Jan 2012 05:34:20 +0000 (13:34 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:33:53 +0000 (08:33 +0200)
commit7eeb47338a658b1d19099ae25d02735b5280b687
treea82594459e7dcfe088a3475fb8f87188305b730d
parent37d9e1a967eeabb3c03ee1b92ee01e703857489d
ENGR00173378-1 usb: device: Change judgement condition for resume occurrence

At former code, it uses portsc.fpr to indicate if the host sends
resume signal to device, but it has some limitations that if the code
can't be executed before the resume signal finishes, the portsc.fpr
will be cleared automatically.
Now, it uses usbsts.pci to judge host resume signal, this bit
will not be cleared before the non-wakeup interrupt handler is called,
and the wakeup code is executed before non-wakeup interrupt handler.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
arch/arm/mach-mx6/usb_dr.c