mbox series

[0/9] usb: dwc2: device: Add service interval support

Message ID cover.1535561828.git.tovmasya@synopsys.com (mailing list archive)
Headers show
Series usb: dwc2: device: Add service interval support | expand

Message

Grigor Tovmasyan Aug. 29, 2018, 4:58 p.m. UTC
This patch set  adds Service Interval support for device mode.

When this mode is enabled core is able to send data any u(f) in current
service interval.

Also in this mode core is able to accept L1 tokens for ISOC IN endpoints.

Reference clock was added in the core to track SOF number internally.
Because of some inaccuracies of reference clock new interrupt was added
to initiate remote wake up and keep sync with the host frame number.

The new interrupt register were added GINTSTS2 for that interrupt.
 


Grigor Tovmasyan (9):
  usb: dwc2: Update registers definitions to support service interval
  usb: dwc2: Add core parameter for service interval support
  usb: dwc2: Add dwc2_gadget_dec_frame_num_by_one() function
  usb: dwc2: Update target (u)frame calculation
  usb: dwc2: Add definitions for new registers
  usb: dwc2: gadget: Add parameters for GREFCLK register
  usb: dwc2: gadget: Program GREFCLK register
  usb: dwc2: gadget: enable WKUP_ALERT interrupt
  usb: dwc2: gadget: Add handler for WkupAlert interrupt

 drivers/usb/dwc2/core.h    | 29 +++++++++++++++
 drivers/usb/dwc2/debugfs.c |  1 +
 drivers/usb/dwc2/gadget.c  | 91 ++++++++++++++++++++++++++++++++++++++++++++++
 drivers/usb/dwc2/hw.h      | 15 ++++++++
 drivers/usb/dwc2/params.c  |  6 +++
 5 files changed, 142 insertions(+)

Comments

Minas Harutyunyan Sept. 3, 2018, 8:15 a.m. UTC | #1
On 8/29/2018 8:58 PM, Grigor Tovmasyan wrote:
> This patch set  adds Service Interval support for device mode.
> 
> When this mode is enabled core is able to send data any u(f) in current
> service interval.
> 
> Also in this mode core is able to accept L1 tokens for ISOC IN endpoints.
> 
> Reference clock was added in the core to track SOF number internally.
> Because of some inaccuracies of reference clock new interrupt was added
> to initiate remote wake up and keep sync with the host frame number.
> 
> The new interrupt register were added GINTSTS2 for that interrupt.
>   
> 
> 
> Grigor Tovmasyan (9):
>    usb: dwc2: Update registers definitions to support service interval
>    usb: dwc2: Add core parameter for service interval support
>    usb: dwc2: Add dwc2_gadget_dec_frame_num_by_one() function
>    usb: dwc2: Update target (u)frame calculation
>    usb: dwc2: Add definitions for new registers
>    usb: dwc2: gadget: Add parameters for GREFCLK register
>    usb: dwc2: gadget: Program GREFCLK register
>    usb: dwc2: gadget: enable WKUP_ALERT interrupt
>    usb: dwc2: gadget: Add handler for WkupAlert interrupt
> 
>   drivers/usb/dwc2/core.h    | 29 +++++++++++++++
>   drivers/usb/dwc2/debugfs.c |  1 +
>   drivers/usb/dwc2/gadget.c  | 91 ++++++++++++++++++++++++++++++++++++++++++++++
>   drivers/usb/dwc2/hw.h      | 15 ++++++++
>   drivers/usb/dwc2/params.c  |  6 +++
>   5 files changed, 142 insertions(+)
> 

Acked-by: Minas Harutyunyan <hminas@synopsys.com>