]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: xhci: tegra: Prepare for adding runtime PM support
authorJon Hunter <jonathanh@nvidia.com>
Wed, 16 May 2018 13:48:53 +0000 (14:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 May 2018 16:23:02 +0000 (18:23 +0200)
commitf468b55cb72ddd69b08ecfc791046a6db5fde7b0
tree45612f87480a83d530c9c580141a096aec3797c8
parentca7d9515d0e6825351ce106066cea1f60e40b1c8
usb: xhci: tegra: Prepare for adding runtime PM support

When adding runtime PM support to the Tegra XHCI driver, it is desirable
to move the function calls to enable the clocks, regulators and PHY from
the tegra_xusb_probe into the runtime PM handlers. Currently, the
clocks, regulators and PHY are all enabled before we call
usb_create_hcd() in tegra_xusb_probe(), however, we cannot call
pm_runtime_get_sync() at this point because the platform device data is
not yet initialised. Fortunately, the function usb_create_hcd() can be
called before we enable the clocks, regulators and PHY and so prepare
for adding runtime PM support, by moving the call to usb_create_hcd()
before we enable the hardware.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-tegra.c