speedtch usbatm.c,1.32,1.33
Duncan Sands
duncan at infradead.org
Tue May 3 10:06:23 EDT 2005
Update of /home/cvs/speedtch
In directory phoenix.infradead.org:/tmp/cvs-serv1016
Modified Files:
usbatm.c
Log Message:
Allow for drivers that modify usbatm->driver in their bind call.
Index: usbatm.c
===================================================================
RCS file: /home/cvs/speedtch/usbatm.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- usbatm.c 3 May 2005 13:57:32 -0000 1.32
+++ usbatm.c 3 May 2005 14:06:20 -0000 1.33
@@ -989,12 +989,6 @@
instance->usb_dev = usb_dev;
instance->usb_intf = intf;
- instance->rx_channel.endpoint = usb_rcvbulkpipe(usb_dev, driver->in);
- instance->tx_channel.endpoint = usb_sndbulkpipe(usb_dev, driver->out);
- instance->rx_channel.stride = ATM_CELL_SIZE + driver->rx_padding;
- instance->tx_channel.stride = ATM_CELL_SIZE + driver->tx_padding;
- instance->rx_channel.buf_size = rcv_buf_size * instance->rx_channel.stride;
- instance->tx_channel.buf_size = snd_buf_size * instance->tx_channel.stride;
buf = instance->description;
length = sizeof(instance->description);
@@ -1039,6 +1033,12 @@
tasklet_init(&instance->tx_channel.tasklet, usbatm_tx_process, (unsigned long)instance);
usbatm_init_channel(&instance->rx_channel);
usbatm_init_channel(&instance->tx_channel);
+ instance->rx_channel.endpoint = usb_rcvbulkpipe(usb_dev, driver->in);
+ instance->tx_channel.endpoint = usb_sndbulkpipe(usb_dev, driver->out);
+ instance->rx_channel.stride = ATM_CELL_SIZE + driver->rx_padding;
+ instance->tx_channel.stride = ATM_CELL_SIZE + driver->tx_padding;
+ instance->rx_channel.buf_size = rcv_buf_size * instance->rx_channel.stride;
+ instance->tx_channel.buf_size = snd_buf_size * instance->tx_channel.stride;
instance->rx_channel.usbatm = instance->tx_channel.usbatm = instance;
skb_queue_head_init(&instance->sndqueue);
More information about the Usbatm-commits
mailing list