OSDN Git Service

drm/tegra: sor: Implement acquire/release for reset
authorThierry Reding <treding@nvidia.com>
Mon, 18 Feb 2019 16:01:54 +0000 (17:01 +0100)
committerThierry Reding <treding@nvidia.com>
Fri, 22 Mar 2019 13:20:07 +0000 (14:20 +0100)
commit11c632e1cfd3dcb49f2d04625d31c818a4c3b426
tree2a6e4a504d86bf9df2788a4e87ca7731b6b59f47
parentee222c5dfeca39f1d26ef1c0995657f5e8ac32fd
drm/tegra: sor: Implement acquire/release for reset

By implementing the acquire/release protocol, the SOR reset can be
shared with other drivers that also adhere to this protocol, such as the
PMC driver that uses the same reset as part of the powergate and -ungate
implementation using generic power domains.

Runtime PM makes sure that the operations are executed in the right
order, and the reset core has error handling and WARNs in place to make
sure the acquire/release protocol is followed.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/sor.c