aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/option.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2012-01-04 23:29:18 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2012-01-12 11:35:28 -0800
commit35e81320ad9953dbcf3cea06d18828ebee3b0468 (patch)
tree141be5bb80b8108cd64911db6ae519ef327f6037 /drivers/usb/serial/option.c
parent766b8a7f7ee006dfd73dbc676addd80f7dbe86ef (diff)
downloadkernel_samsung_smdk4412-35e81320ad9953dbcf3cea06d18828ebee3b0468.zip
kernel_samsung_smdk4412-35e81320ad9953dbcf3cea06d18828ebee3b0468.tar.gz
kernel_samsung_smdk4412-35e81320ad9953dbcf3cea06d18828ebee3b0468.tar.bz2
xhci: Properly handle COMP_2ND_BW_ERR
commit 71d85724bdd947a3b42a88d08af79f290a1a767b upstream. I encountered a result of COMP_2ND_BW_ERR while improving how the pwc webcam driver handles not having the full usb1 bandwidth available to itself. I created the following test setup, a NEC xhci controller with a single TT USB 2 hub plugged into it, with a usb keyboard and a pwc webcam plugged into the usb2 hub. This caused the following to show up in dmesg when trying to stream from the pwc camera at its highest alt setting: xhci_hcd 0000:01:00.0: ERROR: unexpected command completion code 0x23. usb 6-2.1: Not enough bandwidth for altsetting 9 And usb_set_interface returned -EINVAL, which caused my pwc code to not do the right thing as it expected -ENOSPC. This patch makes the xhci driver properly handle COMP_2ND_BW_ERR and makes usb_set_interface return -ENOSPC as expected. This should be backported to stable kernels as old as 2.6.32. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/option.c')
0 files changed, 0 insertions, 0 deletions