Re: [PATCH 3/8] usb: dwc3: core: Skip setting event buffers for host only controllers

From: Sergei Shtylyov
Date: Sun Mar 12 2023 - 05:34:30 EST


On 3/10/23 7:34 PM, Krishna Kurapati wrote:

> On some SoC's like SA8295P where the teritiary controller is host-only

Likewise, tertiary. :-)

> capable, GEVTADDRHI/LO, GEVTSIZ, GEVTCOUNT registers are not accessible.
> Trying to setup them up during core_init leads to a crash.
>
> For DRD/Peripheral supported controllers, event buffer setup is done
> again in gadget_pullup. Skip setup or cleanup of event buffers if
> controller is host-only capable.
>
> Signed-off-by: Krishna Kurapati <quic_kriskura@xxxxxxxxxxx>
[...]

MBR, Sergey