Merge branch 'usb-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6
* 'usb-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (115 commits) EHCI: fix direction handling for interrupt data toggles USB: serial: add IDs for WinChipHead USB->RS232 adapter USB: OHCI: fix another regression for NVIDIA controllers usb: gadget: m66592-udc: add pullup function usb: gadget: m66592-udc: add function for external controller usb: gadget: r8a66597-udc: add pullup function usb: renesas_usbhs: support multi driver usb: renesas_usbhs: inaccessible pipe is not an error usb: renesas_usbhs: care buff alignment when dma handler USB: PL2303: correctly handle baudrates above 115200 usb: r8a66597-hcd: fixup USB_PORT_STAT_C_SUSPEND shift usb: renesas_usbhs: compile/config are rescued usb: renesas_usbhs: fixup comment-out usb: update email address in ohci-sh and r8a66597-hcd usb: r8a66597-hcd: add function for external controller EHCI: only power off port if over-current is active USB: mon: Allow to use usbmon without debugfs USB: EHCI: go back to using the system clock for QH unlinks ehci: add pci quirk for Ordissimo and RM Slate 100 too ehci: refactor pci quirk to use standard dmi_check_system method ... Fix up trivial conflicts in Documentation/feature-removal-schedule.txt
This commit is contained in:
@@ -428,17 +428,16 @@ static int pn_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
|
||||
spin_lock(&port->lock);
|
||||
__pn_reset(f);
|
||||
if (alt == 1) {
|
||||
struct usb_endpoint_descriptor *out, *in;
|
||||
int i;
|
||||
|
||||
out = ep_choose(gadget,
|
||||
&pn_hs_sink_desc,
|
||||
&pn_fs_sink_desc);
|
||||
in = ep_choose(gadget,
|
||||
&pn_hs_source_desc,
|
||||
&pn_fs_source_desc);
|
||||
usb_ep_enable(fp->out_ep, out);
|
||||
usb_ep_enable(fp->in_ep, in);
|
||||
if (config_ep_by_speed(gadget, f, fp->in_ep) ||
|
||||
config_ep_by_speed(gadget, f, fp->out_ep)) {
|
||||
fp->in_ep->desc = NULL;
|
||||
fp->out_ep->desc = NULL;
|
||||
return -EINVAL;
|
||||
}
|
||||
usb_ep_enable(fp->out_ep);
|
||||
usb_ep_enable(fp->in_ep);
|
||||
|
||||
port->usb = fp;
|
||||
fp->out_ep->driver_data = fp;
|
||||
|
Reference in New Issue
Block a user