]> git.baikalelectronics.ru Git - kernel.git/commit
reset: Add reset_control_get_count()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 13 Nov 2018 12:47:44 +0000 (13:47 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 7 Jan 2019 15:38:26 +0000 (16:38 +0100)
commit659fa34d3bfd4a95046f3e4ba955865e308a46bc
tree73558bd411854718af939759af7fb5a561abaf57
parent5e76bc0432dd083fb58eea65b2146bd4dc8359f1
reset: Add reset_control_get_count()

Currently the reset core has internal support for counting the number of
resets for a device described in DT.  Generalize this to devices using
lookup resets, and export it for public use.

This will be used by generic drivers that need to be sure a device is
controlled by a single, dedicated reset line (e.g. vfio-platform).

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
[p.zabel@pengutronix.de: fixed a typo in reset_control_get_count comment]
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/core.c
include/linux/reset.h