reset_control_assert(9)
β¨ NAME β¨
reset_control_assert β asserts the reset line π
πΈ SYNOPSIS πΈ
int reset_control_assert (struct reset_control *rstc );
π¦ ARGUMENTS π¦
rstcβ the reset controller, bestie. that's your whole vibe check right there π
π DESCRIPTION π
okay so real talk, here's the tea β:
Calling this on an exclusive reset controller guarantees that the reset will be asserted. periodt, no cap, it's locked in π₯
But when you call it on a shared reset controller? mm, the line may still be deasserted, as long as other users keep it that way. it's giving "you're not the main character here" energy π. shared means shared, babes.
For shared reset controls, a driver cannot expect the hw's registers and internal state to be reset β but it MUST be prepared for this to happen. like, be ready for anything, keep that guard up π.
β οΈ also, consumers must not usereset_control_reseton shared reset lines whenreset_control_(de)asserthas been used. that's a hard no, don't do it, i'm literally begging π«Ά
and if rstc is NULL? it's an optional reset, and the function will just return 0. slay, no drama, it just vibes on by β¨
π SEE ALSO π
the kernel file ./drivers/reset/core.c plus all these icons, go read them, iykwim π:
struct reset_control(9)struct reset_control_array(9)struct reset_gpio_lookup(9)fwnode_reset_simple_xlate(9)reset_controller_register(9)reset_controller_unregister(9)devm_reset_controller_register(9)reset_control_reset(9)reset_control_bulk_reset(9)reset_control_rearm(9)reset_control_bulk_assert(9)reset_control_deassert(9)reset_control_bulk_deassert(9)reset_control_status(9)reset_control_acquire(9)reset_control_bulk_acquire(9)reset_control_release(9)reset_control_bulk_release(9)reset_control_put(9)reset_control_bulk_put(9)__device_reset(9)fwnode_reset_control_get_count(9)fwnode_reset_control_array_get(9)devm_reset_control_array_get(9)reset_control_get_count(9)
k bye bestie, go assert those lines responsibly π β¨
this lil page came from ./drivers/reset, dated October 2026 β mwah, stay iconic ππ§
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms