patch-2.4.0-test11 linux/drivers/usb/net1080.c
Next file: linux/drivers/usb/ov511.c
Previous file: linux/drivers/usb/microtek.c
Back to the patch index
Back to the overall index
- Lines: 53
- Date:
Tue Nov 14 23:36:01 2000
- Orig file:
v2.4.0-test10/linux/drivers/usb/net1080.c
- Orig date:
Tue Oct 31 12:42:27 2000
diff -u --recursive --new-file v2.4.0-test10/linux/drivers/usb/net1080.c linux/drivers/usb/net1080.c
@@ -11,7 +11,9 @@
* The IP-over-USB protocol here may be of interest. Embedded devices
* could implement it at the cost of two bulk endpoints, and whatever
* other system resources the desired IP-based applications need.
- * Some Linux palmtops could support that today.
+ * Some Linux palmtops could support that today. (Devices that don't
+ * support the TTL-driven data mangling of the net1080 chip won't need
+ * the header/trailer support though.)
*
* STATUS:
*
@@ -22,6 +24,15 @@
* should handle static and dynamic ("pump") setups.
*
* RX/TX queue sizes currently fixed at one due to URB unlink problems.
+ *
+ * 10-oct-2000
+ * usb_device_id table created.
+ *
+ * 28-oct-2000
+ * misc fixes; mostly, discard more TTL-mangled rx packets.
+ *
+ * 01-nov-2000
+ * usb_device_id table support added by Adam J. Richter <adam@yggdrasil.com>.
*
*-------------------------------------------------------------------------*/
@@ -642,6 +653,7 @@
dbg ("waited for %d urb completions", temp);
}
dev->wait = 0;
+ current->state = TASK_RUNNING;
remove_wait_queue (&unlink_wakeup, &wait);
mutex_unlock (&dev->mutex);
@@ -989,7 +1001,7 @@
// precondition: never called in_interrupt
static void *
-net1080_bind (struct usb_device *udev, unsigned ifnum, const struct usb_device_id *prod)
+net1080_probe (struct usb_device *udev, unsigned ifnum, const struct usb_device_id *prod)
{
struct net1080 *dev;
struct net_device *net;
@@ -1073,7 +1085,7 @@
static struct usb_driver net1080_driver = {
name: "net1080",
id_table: products,
- bind: net1080_bind,
+ probe: net1080_probe,
disconnect: net1080_disconnect,
};
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)