]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ENGR00255359 usb: core: notify disconnection when core detects disconnect
authorPeter Chen <peter.chen@freescale.com>
Thu, 21 Mar 2013 06:56:17 +0000 (14:56 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 16 Jun 2014 16:07:23 +0000 (18:07 +0200)
commit25162979e6441cd0a464c7b47e21316830e294e7
tree123c1cda0644008b99b6bc434d428a149f8024b0
parent524d7d78c62bcf2c543b61ee49392760c66d310f
ENGR00255359 usb: core: notify disconnection when core detects disconnect

It is safe to call notify disconnect when the usb core
thinks the device is disconnected.

This commit also fixes one bug found at below situation:
we have not enabled usb wakeup, we do suspend when there
is an usb device at the port, after suspend, we plug out
the usb device, then plug in device again. At that time,
the nofity disconnect was not called at former code, as
the controller doesn't know the usb device was disconnected
during the suspend, but USB core knows, so to fix this problem,
let the usb core call notify disconnect.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
(cherry picked from commit 54d314b320e8adee0593d1bed045197f134cd9cc)
drivers/usb/core/hub.c