Loading drivers/usb/gadget/function/f_qdss.c +12 −1 Original line number Diff line number Diff line Loading @@ -374,7 +374,7 @@ static int qdss_bind(struct usb_configuration *c, struct usb_function *f) struct usb_gadget *gadget = c->cdev->gadget; struct f_qdss *qdss = func_to_qdss(f); struct usb_ep *ep; int iface; int iface, id; pr_debug("qdss_bind\n"); Loading @@ -392,6 +392,12 @@ static int qdss_bind(struct usb_configuration *c, struct usb_function *f) qdss_data_intf_desc.bInterfaceNumber = iface; qdss->data_iface_id = iface; id = usb_string_id(c->cdev); if (id < 0) return id; qdss_string_defs[QDSS_DATA_IDX].id = id; qdss_data_intf_desc.iInterface = id; if (qdss->debug_inface_enabled) { /* Allocate ctrl I/F */ iface = usb_interface_id(c, f); Loading @@ -401,6 +407,11 @@ static int qdss_bind(struct usb_configuration *c, struct usb_function *f) } qdss_ctrl_intf_desc.bInterfaceNumber = iface; qdss->ctrl_iface_id = iface; id = usb_string_id(c->cdev); if (id < 0) return id; qdss_string_defs[QDSS_CTRL_IDX].id = id; qdss_ctrl_intf_desc.iInterface = id; } ep = usb_ep_autoconfig_ss(gadget, &qdss_ss_data_desc, Loading Loading
drivers/usb/gadget/function/f_qdss.c +12 −1 Original line number Diff line number Diff line Loading @@ -374,7 +374,7 @@ static int qdss_bind(struct usb_configuration *c, struct usb_function *f) struct usb_gadget *gadget = c->cdev->gadget; struct f_qdss *qdss = func_to_qdss(f); struct usb_ep *ep; int iface; int iface, id; pr_debug("qdss_bind\n"); Loading @@ -392,6 +392,12 @@ static int qdss_bind(struct usb_configuration *c, struct usb_function *f) qdss_data_intf_desc.bInterfaceNumber = iface; qdss->data_iface_id = iface; id = usb_string_id(c->cdev); if (id < 0) return id; qdss_string_defs[QDSS_DATA_IDX].id = id; qdss_data_intf_desc.iInterface = id; if (qdss->debug_inface_enabled) { /* Allocate ctrl I/F */ iface = usb_interface_id(c, f); Loading @@ -401,6 +407,11 @@ static int qdss_bind(struct usb_configuration *c, struct usb_function *f) } qdss_ctrl_intf_desc.bInterfaceNumber = iface; qdss->ctrl_iface_id = iface; id = usb_string_id(c->cdev); if (id < 0) return id; qdss_string_defs[QDSS_CTRL_IDX].id = id; qdss_ctrl_intf_desc.iInterface = id; } ep = usb_ep_autoconfig_ss(gadget, &qdss_ss_data_desc, Loading