[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bluetooth-dev] [PATCH] usb bluetooth driver fix



Hi,

Here's a patch for the usb bluetooth driver that removes the
in_interrupt() check as it's no longer valid for the 2.4.x kernel with
the Axis Bluetooth stack.  It is against 2.4.7-pre3.

thanks,

greg k-h

diff -Nru a/drivers/usb/bluetooth.c b/drivers/usb/bluetooth.c
--- a/drivers/usb/bluetooth.c	Mon Jul  9 10:00:46 2001
+++ b/drivers/usb/bluetooth.c	Mon Jul  9 10:00:46 2001
@@ -1,11 +1,15 @@
 /*
- * bluetooth.c   Version 0.11
+ * bluetooth.c   Version 0.12
  *
  * Copyright (c) 2000, 2001 Greg Kroah-Hartman	<greg@xxxxxxx.com>
  * Copyright (c) 2000 Mark Douglas Corner	<mcorner@xxxxxxx.edu>
  *
  * USB Bluetooth driver, based on the Bluetooth Spec version 1.0B
  * 
+ * (2001/07/09) Version 0.12 gkh
+ *	- removed in_interrupt() call, as it doesn't make sense to do 
+ *	  that anymore.
+ *
  * (2001/06/05) Version 0.11 gkh
  *	- Fixed problem with read urb status saying that we have shutdown,
  *	  and that we shouldn't resubmit the urb.  Patch from unknown.
@@ -114,9 +118,9 @@
 /*
  * Version Information
  */
-#define DRIVER_VERSION "v0.11"
+#define DRIVER_VERSION "v0.12"
 #define DRIVER_AUTHOR "Greg Kroah-Hartman, Mark Douglas Corner"
-#define DRIVER_DESC "USB Bluetooth driver"
+#define DRIVER_DESC "USB Bluetooth tty driver"
 
 /* define this if you have hardware that is not good */
 /*#define	BTBUGGYHARDWARE */
@@ -484,12 +488,6 @@
 		case CMD_PKT:
 			/* dbg(__FUNCTION__ "- Send cmd_pkt len:%d", count);*/
 
-			if (in_interrupt()){
-				printk("cmd_pkt from interrupt!\n");
-				retval = count;
-				goto exit;
-			}
-
 			retval = bluetooth_ctrl_msg (bluetooth, 0x00, 0x00, &current_buffer[1], count-1);
 			if (retval) {
 				goto exit;
@@ -1329,7 +1327,7 @@
 		return -1;
 	}
 
-	info(DRIVER_VERSION ":" DRIVER_DESC);
+	info(DRIVER_DESC " " DRIVER_VERSION);
 
 	return 0;
 }