Home
last modified time | relevance | path

Searched hist:"0534 d40160cb9505073b0ecf5e7210daee319a66" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/usb/gadget/udc/
H A Dtegra-xudc.cdiff 0534d40160cb9505073b0ecf5e7210daee319a66 Fri Apr 17 12:05:37 CDT 2020 Thierry Reding <treding@nvidia.com> usb: gadget: tegra-xudc: Fix idle suspend/resume

When the XUDC device is idle (i.e. powergated), care must be taken not
to access any registers because that would lead to a crash.

Move the call to tegra_xudc_device_mode_off() into the same conditional
as the tegra_xudc_powergate() call to make sure we only force device
mode off if the XUDC is actually powered up.

Fixes: 49db427232fe ("usb: gadget: Add UDC driver for tegra XUSB device mode controller")
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>