Skip to contentSkip to conversation

usb: dwc2: gadget: ISOC's starting flow improvement

DISCUSSION Felipe Balbi 1 participant 1 message Jul 26, 2018 USB

lore
Share & tools
lore
#0 lore raw

No top posting ;)

Quoted 5 lines · Minas Harutyunyan

Hi Felipe,

This patch should be applied after follow patch from Artur Petrosyan:

"[PATCH] usb: dwc2: Change reading of current frame number flow."

Hasn't this been part of mainline for a while already?

commit c7c24e7a047652c558e7aa4b0f54aae3a61aacc4

Author: Artur Petrosyan <[email protected]>
Date:   Sat May 5 09:46:26 2018 -0400

usb: dwc2: Change reading of current frame number flow.

The current frame_number is read from core for both device and host modes. Reading of the current frame number needs to be performed ASAP due to IRQ latency's. This is why, it is moved to common interrupt handler.

Accordingly updated dwc2_gadget_target_frame_elapsed() function which uses stored frame_number instead of reading frame number.

In cases when target frame value is incremented the frame_number is required to read again.