usb: dwc_otg: add condition judgement to filter invalid
authorlyz <lyz@rock-chips.com>
Tue, 27 Jan 2015 07:53:53 +0000 (15:53 +0800)
committerlyz <lyz@rock-chips.com>
Thu, 12 Feb 2015 02:53:39 +0000 (10:53 +0800)
commit3d2090f53528758b8bc021441973d648943507da
tree012d799ebf7d2bc024e5071e65b39d92fda98205
parent1424301f3b3c15a80dd1bbadd62069d5a9bb3d23
usb: dwc_otg: add condition judgement to filter invalid
disconnect interrupt

In some case, we disconnect a usb device, then usb controller
will trigger more the one disconnect interrupt, so check port
enable change bit in hprt0 to make sure just one disconnect
interrupt be handled.
here to

Signed-off-by: lyz <lyz@rock-chips.com>
drivers/usb/dwc_otg_310/dwc_otg_hcd.c