diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-12-30 12:18:24 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-12-30 12:19:38 -0800 |
commit | c2b27ef672992a206e5b221b8676972dd840ffa5 (patch) | |
tree | db7123379c12cda9659929b4c6e4897e088e9545 /drivers/input/joystick/iforce/iforce-usb.c | |
parent | 70f944139084c4f297ac90b3af4cb67a8a68b2cf (diff) | |
download | kernel_samsung_smdk4412-c2b27ef672992a206e5b221b8676972dd840ffa5.zip kernel_samsung_smdk4412-c2b27ef672992a206e5b221b8676972dd840ffa5.tar.gz kernel_samsung_smdk4412-c2b27ef672992a206e5b221b8676972dd840ffa5.tar.bz2 |
Input: iforce - wait for command completion when closing the device
We need to wait for the command to disable FF effects to complete before
continuing with closing the device.
Tested-by: Johannes Ebke <johannes.ebke@physik.uni-muenchen.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/joystick/iforce/iforce-usb.c')
-rw-r--r-- | drivers/input/joystick/iforce/iforce-usb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/joystick/iforce/iforce-usb.c b/drivers/input/joystick/iforce/iforce-usb.c index c0ad883..b41303d 100644 --- a/drivers/input/joystick/iforce/iforce-usb.c +++ b/drivers/input/joystick/iforce/iforce-usb.c @@ -109,6 +109,7 @@ static void iforce_usb_out(struct urb *urb) struct iforce *iforce = urb->context; if (urb->status) { + clear_bit(IFORCE_XMIT_RUNNING, iforce->xmit_flags); dbg("urb->status %d, exiting", urb->status); return; } |