Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5210c4d authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "USB: ci13xxx_udc: Add support for UI interrupts counting"

parents 7127232a eab5f6f8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
@@ -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) {
+5 −3
Original line number Diff line number Diff line
@@ -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
@@ -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))