reset: add acquired/released state for exclusive reset controls
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 21 Feb 2019 15:25:53 +0000 (16:25 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 20 Mar 2019 10:16:55 +0000 (11:16 +0100)
commitc84b0326d5e4fe08d493f6fff245da2ad473f4ae
treeaa1f13278664569396e621650b10fe67d30cc551
parent9e98c678c2d6ae3a17cb2de55d17f69dddaa231b
reset: add acquired/released state for exclusive reset controls

There are cases where a driver needs explicit control over a reset line
that is exclusively conneted to its device, but this control has to be
temporarily handed over to the power domain controller to handle reset
requirements during power transitions.
Allow multiple exclusive reset controls to be requested in 'released'
state for the same physical reset line, only one of which can be
acquired at the same time.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/reset/core.c
include/linux/reset.h