usb: gadget: tegra-xudc: Support multiple device modes
authorNagarjuna Kristam <nkristam@nvidia.com>
Mon, 10 Feb 2020 08:11:38 +0000 (13:41 +0530)
committerThierry Reding <treding@nvidia.com>
Thu, 19 Mar 2020 13:18:57 +0000 (14:18 +0100)
commitb4e19931c98a088fbd80b5c3f892261c9a0e6c23
tree89510d66125251495c1fb1b4c72c3a0c7c6d8758
parentb9c9fd4a36f27a1c7d202aed5449c0c700cff9f2
usb: gadget: tegra-xudc: Support multiple device modes

This change supports limited multiple device modes by:
- At most 4 ports contains OTG/Device capability.
- One port run as device mode at a time.

Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Acked-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/usb/gadget/udc/tegra-xudc.c