Skip to content

Commit 6b37540

Browse files
Patrice ChotardpH5
authored andcommitted
reset: Add devm_reset_control_array_get_exclusive_released()
Add the released variant of devm_reset_control_array_get_exclusive(). Needed by spi-smt32-ospi driver as same reset line is ulso used by stm32-omm driver. Signed-off-by: Patrice Chotard <[email protected]> Reviewed-by: Philipp Zabel <[email protected]> Link: https://lore.kernel.org/r/20250411-b4-upstream_ospi_reset_update-v2-1-4de7f5dd2a91@foss.st.com Signed-off-by: Philipp Zabel <[email protected]>
1 parent 4a65326 commit 6b37540

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/linux/reset.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,12 @@ devm_reset_control_array_get_exclusive(struct device *dev)
10041004
return devm_reset_control_array_get(dev, RESET_CONTROL_EXCLUSIVE);
10051005
}
10061006

1007+
static inline struct reset_control *
1008+
devm_reset_control_array_get_exclusive_released(struct device *dev)
1009+
{
1010+
return devm_reset_control_array_get(dev, RESET_CONTROL_EXCLUSIVE_RELEASED);
1011+
}
1012+
10071013
static inline struct reset_control *
10081014
devm_reset_control_array_get_shared(struct device *dev)
10091015
{

0 commit comments

Comments
 (0)