Hi,
this exports the input layer's device mutex. This will allow a simple
fix for the common race condition between opening an input device
and USB suspend.
Regards
Oliver
Signed-off-by: Oliver Neukum <[EMAIL PROTECTED]>
--- current/drivers/input/input.c 2006-09-20 05:42:06.000000000 +0200
+++ linux-2.6.18/drivers/input/input.c 2006-10-03 14:53:39.000000000 +0200
@@ -296,6 +296,18 @@
}
EXPORT_SYMBOL(input_close_device);
+void input_lock_device(struct input_dev *dev)
+{
+ mutex_lock(&dev->mutex);
+}
+EXPORT_SYMBOL(input_lock_device);
+
+void input_unlock_device(struct input_dev *dev)
+{
+ mutex_unlock(&dev->mutex);
+}
+EXPORT_SYMBOL(input_unlock_device);
+
static void input_link_handle(struct input_handle *handle)
{
list_add_tail(&handle->d_node, &handle->dev->h_list);
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel