]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0521615f774eb19e56a679416d4ebdb41a0a406d
tree6c8e2e8c0eb2f1808a435c2beb5768e141d1cad0
parent57aae85b5cf7ada5a93622a04739d6d4393f9b22
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