diff options
author | David Brownell <david-b@pacbell.net> | 2006-05-12 22:24:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-21 18:04:08 -0400 |
commit | f44f725f7d635e8b9786eef13f836dc1a2851495 (patch) | |
tree | b9059a88ce6123ee093422b3ba47174534555ddb /drivers/usb/net | |
parent | 86478944eba887f149e151bacc023ae4b2d23ea6 (diff) |
[PATCH] USB: usbnet, zaurus mtu fixup
This includes an MTU fixup which could affect larger packets with newer
Zaurii, described as http://bugzilla.kernel.org/show_bug.cgi?id=6286;
plus minor whitespace cleanup.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/net')
-rw-r--r-- | drivers/usb/net/zaurus.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/drivers/usb/net/zaurus.c b/drivers/usb/net/zaurus.c index f7ac9d6b9856..bf2035d329f4 100644 --- a/drivers/usb/net/zaurus.c +++ b/drivers/usb/net/zaurus.c | |||
@@ -109,7 +109,7 @@ static const struct driver_info zaurus_sl5x00_info = { | |||
109 | .check_connect = always_connected, | 109 | .check_connect = always_connected, |
110 | .bind = zaurus_bind, | 110 | .bind = zaurus_bind, |
111 | .unbind = usbnet_cdc_unbind, | 111 | .unbind = usbnet_cdc_unbind, |
112 | .tx_fixup = zaurus_tx_fixup, | 112 | .tx_fixup = zaurus_tx_fixup, |
113 | }; | 113 | }; |
114 | #define ZAURUS_STRONGARM_INFO ((unsigned long)&zaurus_sl5x00_info) | 114 | #define ZAURUS_STRONGARM_INFO ((unsigned long)&zaurus_sl5x00_info) |
115 | 115 | ||
@@ -119,7 +119,7 @@ static const struct driver_info zaurus_pxa_info = { | |||
119 | .check_connect = always_connected, | 119 | .check_connect = always_connected, |
120 | .bind = zaurus_bind, | 120 | .bind = zaurus_bind, |
121 | .unbind = usbnet_cdc_unbind, | 121 | .unbind = usbnet_cdc_unbind, |
122 | .tx_fixup = zaurus_tx_fixup, | 122 | .tx_fixup = zaurus_tx_fixup, |
123 | }; | 123 | }; |
124 | #define ZAURUS_PXA_INFO ((unsigned long)&zaurus_pxa_info) | 124 | #define ZAURUS_PXA_INFO ((unsigned long)&zaurus_pxa_info) |
125 | 125 | ||
@@ -129,7 +129,7 @@ static const struct driver_info olympus_mxl_info = { | |||
129 | .check_connect = always_connected, | 129 | .check_connect = always_connected, |
130 | .bind = zaurus_bind, | 130 | .bind = zaurus_bind, |
131 | .unbind = usbnet_cdc_unbind, | 131 | .unbind = usbnet_cdc_unbind, |
132 | .tx_fixup = zaurus_tx_fixup, | 132 | .tx_fixup = zaurus_tx_fixup, |
133 | }; | 133 | }; |
134 | #define OLYMPUS_MXL_INFO ((unsigned long)&olympus_mxl_info) | 134 | #define OLYMPUS_MXL_INFO ((unsigned long)&olympus_mxl_info) |
135 | 135 | ||
@@ -228,6 +228,11 @@ bad_detail: | |||
228 | detail->bDetailData[2]); | 228 | detail->bDetailData[2]); |
229 | goto bad_desc; | 229 | goto bad_desc; |
230 | } | 230 | } |
231 | |||
232 | /* same extra framing as for non-BLAN mode */ | ||
233 | dev->net->hard_header_len += 6; | ||
234 | dev->rx_urb_size = dev->net->hard_header_len | ||
235 | + dev->net->mtu; | ||
231 | break; | 236 | break; |
232 | } | 237 | } |
233 | next_desc: | 238 | next_desc: |
@@ -258,7 +263,7 @@ static const struct driver_info bogus_mdlm_info = { | |||
258 | .description = "pseudo-MDLM (BLAN) device", | 263 | .description = "pseudo-MDLM (BLAN) device", |
259 | .flags = FLAG_FRAMING_Z, | 264 | .flags = FLAG_FRAMING_Z, |
260 | .check_connect = always_connected, | 265 | .check_connect = always_connected, |
261 | .tx_fixup = zaurus_tx_fixup, | 266 | .tx_fixup = zaurus_tx_fixup, |
262 | .bind = blan_mdlm_bind, | 267 | .bind = blan_mdlm_bind, |
263 | }; | 268 | }; |
264 | 269 | ||
@@ -367,13 +372,13 @@ static struct usb_driver zaurus_driver = { | |||
367 | 372 | ||
368 | static int __init zaurus_init(void) | 373 | static int __init zaurus_init(void) |
369 | { | 374 | { |
370 | return usb_register(&zaurus_driver); | 375 | return usb_register(&zaurus_driver); |
371 | } | 376 | } |
372 | module_init(zaurus_init); | 377 | module_init(zaurus_init); |
373 | 378 | ||
374 | static void __exit zaurus_exit(void) | 379 | static void __exit zaurus_exit(void) |
375 | { | 380 | { |
376 | usb_deregister(&zaurus_driver); | 381 | usb_deregister(&zaurus_driver); |
377 | } | 382 | } |
378 | module_exit(zaurus_exit); | 383 | module_exit(zaurus_exit); |
379 | 384 | ||