USB: sl811-hcd: Fix device disconnect
authorMichael Hennerich <michael.hennerich@analog.com>
Wed, 28 Apr 2010 21:31:36 +0000 (17:31 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 30 Apr 2010 16:25:12 +0000 (09:25 -0700)
commit8a3461e2cdb719ae4796feb70054f1597005af28
tree6c8e2e8c0eb2f1808a435c2beb5768e141d1cad0
parent869aa98c1d6a03dd2078f8f8257a0bcc343cb8b9
USB: sl811-hcd: Fix device disconnect

A while ago I provided a patch that fixed device detection after device
removal (USB: sl811-hcd: Fix device disconnect).
Chris Brissette pointed out that the detection/removal counter method
to distinguish insert or remove my fail under certain conditions.
Latest SL811HS datasheet (Document 38-08008 Rev. *D) indicates that
bit 6 (SL11H_INTMASK_RD) of the Interrupt Status Register together with
bit 5 (SL11H_INTMASK_INSRMV) can be used to determine whether a device
has been inserted or removed.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/sl811-hcd.c