]> www.infradead.org Git - users/dwmw2/linux.git/commit
reset: Add devres helpers to request pre-deasserted reset controls
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 25 Sep 2024 16:40:10 +0000 (18:40 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 1 Oct 2024 15:39:53 +0000 (17:39 +0200)
commitd872bed85036f5e60c66b0dd0994346b4ea6470c
tree6a6036a9fe967cdf82931f22c1cfb1e99c24c8d8
parentdad35f7d2fc14e446669d4cab100597a6798eae5
reset: Add devres helpers to request pre-deasserted reset controls

Add devres helpers

 - devm_reset_control_bulk_get_exclusive_deasserted
 - devm_reset_control_bulk_get_optional_exclusive_deasserted
 - devm_reset_control_bulk_get_optional_shared_deasserted
 - devm_reset_control_bulk_get_shared_deasserted
 - devm_reset_control_get_exclusive_deasserted
 - devm_reset_control_get_optional_exclusive_deasserted
 - devm_reset_control_get_optional_shared_deasserted
 - devm_reset_control_get_shared_deasserted

to request and immediately deassert reset controls. During cleanup,
reset_control_assert() will be called automatically on the returned
reset controls.

Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/20240925-reset-get-deasserted-v2-2-b3601bbd0458@pengutronix.de
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/core.c
include/linux/reset.h