drm/tegra: sor: Fully initialize SOR before registration
authorThierry Reding <treding@nvidia.com>
Thu, 1 Apr 2021 15:41:05 +0000 (17:41 +0200)
committerThierry Reding <treding@nvidia.com>
Mon, 17 May 2021 10:31:05 +0000 (12:31 +0200)
commit5dea42759bcef74b0802ea64b904409bc37f9045
treeffb455cbb0f69981600d42b2c3abdb90f8fe8df1
parent0cfe5a6e758fb20be8ad3e8f10cb087cc8033eeb
drm/tegra: sor: Fully initialize SOR before registration

Before registering the SOR host1x client, make sure that it is fully
initialized. This avoids a potential race condition between the SOR's
probe and the host1x device initialization in cases where the SOR is
the final sub-device to register to a host1x instance.

Reported-by: Jonathan Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/sor.c