usb: xhci: tegra: Add shutdown callback for Tegra XUSB
authorHaotien Hsu <haotienh@nvidia.com>
Thu, 27 Jul 2023 07:49:27 +0000 (15:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2023 08:23:35 +0000 (10:23 +0200)
commit3a3be3a1ebf03241bfbfcc93c084b4a2c6a13bdf
treeb90269433f680edf76226e1c38f5de65a1f9599a
parenta85ff0db48c372063988f2072a07bd361ce9c4ef
usb: xhci: tegra: Add shutdown callback for Tegra XUSB

If memory accesses by the Tegra XUSB controller are translated through
the SMMU (System MMU), the hardware may continue accessing memory even
after the SMMU translations have been disabled during the shutdown
process and this can in turn cause unpredictable crashes.
Fix this by adding a shutdown implementation that ensures the hardware
is turned off during system reboot or shutdown.

Signed-off-by: Henry Lin <henryl@nvidia.com>
Signed-off-by: Haotien Hsu <haotienh@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20230727074927.2428611-1-haotienh@nvidia.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-tegra.c