usb: dwc3: Support EBC feature of DWC_usb31
authorManan Aurora <maurora@google.com>
Tue, 31 Oct 2023 03:46:41 +0000 (03:46 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Jan 2024 15:00:41 +0000 (16:00 +0100)
commit398aa9a7e77cf23c2a6f882ddd3dcd96f21771dc
tree1f876a8eabac27cd13b1eb1384482a9591c6c7ae
parentcd099cde4ed264403b434d8344994f97ac2a4349
usb: dwc3: Support EBC feature of DWC_usb31

Support configuration and use of bulk endpoints in the so-called EBC
mode described in the DBC_usb31 databook (appendix E)

Added a bit fifo_mode to usb_ep to indicate to the UDC driver that a
specific endpoint is to operate in the EBC (or equivalent) mode when
enabled

Added macros for bits 15 and 14 of DEPCFG parameter 1 to indicate EBC
mode and write back behaviour. These bits will be set to 1 when
configuring an EBC endpoint as described in the programming guide

Signed-off-by: Manan Aurora <maurora@google.com>
Link: https://lore.kernel.org/r/20231031034641.660606-1-maurora@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c
drivers/usb/dwc3/gadget.h
include/linux/usb/gadget.h