Loading drivers/usb/gadget/ci13xxx_udc.c +2 −0 Original line number Diff line number Diff line Loading @@ -2405,6 +2405,7 @@ static int _gadget_stop_activity(struct usb_gadget *gadget) udc->configured = 0; spin_unlock_irqrestore(udc->lock, flags); gadget->xfer_isr_count = 0; gadget->b_hnp_enable = 0; gadget->a_hnp_support = 0; gadget->host_request = 0; Loading Loading @@ -3817,6 +3818,7 @@ static irqreturn_t udc_irq(void) isr_statistics.uei++; if (USBi_UI & intr) { isr_statistics.ui++; udc->gadget.xfer_isr_count++; isr_tr_complete_handler(udc); } if (USBi_SLI & intr) { Loading include/linux/usb/gadget.h +5 −3 Original line number Diff line number Diff line Loading @@ -519,6 +519,7 @@ struct usb_gadget_ops { * @usb_core_id: Identifies the usb core controlled by this usb_gadget. * Used in case of more then one core operates concurrently. * @streaming_enabled: Enable streaming mode with usb core. * @xfer_isr_count: UI (transfer complete) interrupts count * * Gadgets have a mostly-portable "gadget driver" implementing device * functions, handling all usb configurations and interfaces. Gadget Loading Loading @@ -564,6 +565,7 @@ struct usb_gadget { bool streaming_enabled; bool remote_wakeup; void *private; u32 xfer_isr_count; }; #define work_to_gadget(w) (container_of((w), struct usb_gadget, work)) Loading Loading
drivers/usb/gadget/ci13xxx_udc.c +2 −0 Original line number Diff line number Diff line Loading @@ -2405,6 +2405,7 @@ static int _gadget_stop_activity(struct usb_gadget *gadget) udc->configured = 0; spin_unlock_irqrestore(udc->lock, flags); gadget->xfer_isr_count = 0; gadget->b_hnp_enable = 0; gadget->a_hnp_support = 0; gadget->host_request = 0; Loading Loading @@ -3817,6 +3818,7 @@ static irqreturn_t udc_irq(void) isr_statistics.uei++; if (USBi_UI & intr) { isr_statistics.ui++; udc->gadget.xfer_isr_count++; isr_tr_complete_handler(udc); } if (USBi_SLI & intr) { Loading
include/linux/usb/gadget.h +5 −3 Original line number Diff line number Diff line Loading @@ -519,6 +519,7 @@ struct usb_gadget_ops { * @usb_core_id: Identifies the usb core controlled by this usb_gadget. * Used in case of more then one core operates concurrently. * @streaming_enabled: Enable streaming mode with usb core. * @xfer_isr_count: UI (transfer complete) interrupts count * * Gadgets have a mostly-portable "gadget driver" implementing device * functions, handling all usb configurations and interfaces. Gadget Loading Loading @@ -564,6 +565,7 @@ struct usb_gadget { bool streaming_enabled; bool remote_wakeup; void *private; u32 xfer_isr_count; }; #define work_to_gadget(w) (container_of((w), struct usb_gadget, work)) Loading