drivers:misc: ti-st: fix hci-ll on wake_ind collision
authorPavan Savoy <pavan_savoy@ti.com>
Fri, 4 Feb 2011 08:23:14 +0000 (02:23 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 4 Feb 2011 20:41:21 +0000 (12:41 -0800)
commit6d71ba2105a1d8c1712cdfcf46fc6040e4707cb9
tree193b01abd397a5ebf5bcbdb6a02e51f8757582a2
parentef04d121f030329aae0c2d3ec22beea0c5cbcfd3
drivers:misc: ti-st: fix hci-ll on wake_ind collision

Where file-transfer stops/pauses in between, is
result of a HCI-LL anamoly in ST LL driver.
ST LL did not copy the contents of WaitQ into the TxQ, when a WAKEUP_IND
collision happened.
Make also sure, that the copying mechanism is safe, by wrapping it around
spin locks inside st_int_recv().
This was easily reproduced when the sleep timeout was reduced to 100ms
for HCI-LL.

Signed-off-by: Pavan Savoy <pavan_savoy@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/misc/ti-st/st_core.c