aboutsummaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorMicah Dowty <micah@vmware.com>2006-05-19 11:20:11 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2006-06-21 15:04:11 -0700
commite016683d595aacde78b9385aabd0b98c8915d885 (patch)
tree72253a7751eb8568e65b306e3939ca0885f6fac0 /drivers/media
parentb9827e4b29edb4af1481b75efdf9ea2d8a7ffc96 (diff)
[PATCH] USB: Remove 4088-byte limit on usbfs control URBs
This patch removes the artificial 4088-byte limit that usbfs currently places on Control transfers. The USB spec does not specify a strict limit on the size of an entire control transfer. It does, however, state that the data stage "follows the same protocol rules as bulk transfers." (USB 2, 8.5.3) The level of support for large control transfers in real host controllers varies, but it's important to support at least 4K transfers. Windows enforces a maximum control transfer size of 4K, so there exists some hardware that requires a full 4096 byte data stage. Without this patch, we fall short of that by 8 bytes on architectures with a 4K page size, and it becomes impossible to support such hardware with a user-space driver. Since any limit placed on control transfers by usbfs would be arbitrary, this patch replaces the PAGE_SIZE limit with the same arbitrary limit used by bulk transfers. Signed-off-by: Micah Dowty <micah@vmware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/media')
0 files changed, 0 insertions, 0 deletions