diff options
author | Prasanna S. Panchamukhi <prasannax.s.panchamukhi@intel.com> | 2010-04-13 19:36:33 -0400 |
---|---|---|
committer | Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> | 2010-05-11 17:09:04 -0400 |
commit | 7ef9f9a4ee47b8d8ab9519647ba02fc700473be8 (patch) | |
tree | 42c4527bc421354024ac9c2c4c86608ebdab6fe2 /drivers | |
parent | 8a3a1b65eeecd18357ac0cc941f43df153d4f271 (diff) |
wimax/i2400m: USB specific TX queue's minimum buffer room required for new message
This patch specifies the TX queue's buffer room required by the
USB bus driver while allocating header space for a new message.
Please refer the documentation in the code.
Signed-off-by: Prasanna S. Panchamukhi <prasannax.s.panchamukhi@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wimax/i2400m/usb.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wimax/i2400m/usb.c b/drivers/net/wimax/i2400m/usb.c index d8c4d6497fdf..6fd8cf541d08 100644 --- a/drivers/net/wimax/i2400m/usb.c +++ b/drivers/net/wimax/i2400m/usb.c | |||
@@ -467,6 +467,13 @@ int i2400mu_probe(struct usb_interface *iface, | |||
467 | usb_set_intfdata(iface, i2400mu); | 467 | usb_set_intfdata(iface, i2400mu); |
468 | 468 | ||
469 | i2400m->bus_tx_block_size = I2400MU_BLK_SIZE; | 469 | i2400m->bus_tx_block_size = I2400MU_BLK_SIZE; |
470 | /* | ||
471 | * Room required in the Tx queue for USB message to accommodate | ||
472 | * a smallest payload while allocating header space is 16 bytes. | ||
473 | * Adding this room for the new tx message increases the | ||
474 | * possibilities of including any payload with size <= 16 bytes. | ||
475 | */ | ||
476 | i2400m->bus_tx_room_min = I2400MU_BLK_SIZE; | ||
470 | i2400m->bus_pl_size_max = I2400MU_PL_SIZE_MAX; | 477 | i2400m->bus_pl_size_max = I2400MU_PL_SIZE_MAX; |
471 | i2400m->bus_setup = NULL; | 478 | i2400m->bus_setup = NULL; |
472 | i2400m->bus_dev_start = i2400mu_bus_dev_start; | 479 | i2400m->bus_dev_start = i2400mu_bus_dev_start; |