On Tue, Apr 16, 2019 at 05:48:08PM +0100, Jon Hunter wrote: > Commit 8df127456f29 ("soc/tegra: pmc: Enable XUSB partitions on boot") > was added as a workaround to ensure that the XUSB powergates or domains > were turned on early during boot because as this time the Tegra XHCI > driver did not handle the power domains at all. Now that the Tegra XHCI > driver has been updated to properly managed the power domains, the > workaround to enable the XUSB power domain early has been removed. This > also means that we can now move the initialisation of the powergates > into the PMC driver probe. Therefore, move the powergate initialisation > into the PMC driver probe and return any errors detected. To handle any > errors, functions to cleanup and remove any power-domains registered > with the generic power-domain framework have been added. > > Finally the initialisation of the 'powergates_available' bitmask is kept > in the PMC early init function to allow the legacy PMC powergate APIs to > be called during early boot for enabling secondary CPUs on 32-bit Tegra > devices. > > Signed-off-by: Jon Hunter <jonathanh@xxxxxxxxxx> > --- > Changes since V1: > - None > > drivers/soc/tegra/pmc.c | 83 ++++++++++++++++++++++++++++++++++++++++--------- > 1 file changed, 68 insertions(+), 15 deletions(-) Applied to for-5.2/soc, thanks. Thierry
Attachment:
signature.asc
Description: PGP signature