spmi_command_reset(9)
π spmi_command_reset β the kernel manual, but make it cute
okay so bestie, welcome to spmi_command_reset(9) from the Kernel API Manual. yes we're reading kernel docs together, this is our bonding time, don't fight it π«Ά
β¨ NAME β¨
spmi_command_reset β sends the RESET command to the specified slave π₯
like, the whole personality of this function is right there in the name, no cap.
πΈ SYNOPSIS πΈ
int spmi_command_reset (struct spmi_device *sdev );
it returns an int, it takes exactly one thing, she's lowkey minimal and I respect it.
π ARGUMENTS π
sdevβ the SPMI device. that's it, that's the whole guest list. one (1) device, and she's the main character π―
π¦ DESCRIPTION π¦
okay so here's the tea β β the Reset command initializes the Slave and forces all registers to their reset values. like a full factory reset moment, everything back to how it was on day one, iconic behavior honestly π
and then, after receiving a Reset command, the Slave shall enter the STARTUP state. so it's not just nuking the registers and dipping, it's actually starting back up fresh afterwards. glow-up arc fr fr β¨
bestie be aware: this is a forced reset of all registers. that's the actual documented behavior, not me being dramatic. everything goes back to reset values, periodt. π
π SEE ALSO π
you want the whole friend group? because the friend group is large and I love that for us π«Ά
Kernel file ./drivers/spmi/spmi.c plus:
spmi_device_add(9)spmi_device_remove(9)spmi_register_read(9)spmi_ext_register_read(9)spmi_ext_register_readl(9)spmi_register_write(9)spmi_register_zero_write(9)spmi_ext_register_write(9)spmi_ext_register_writel(9)spmi_command_sleep(9)spmi_command_wakeup(9)spmi_command_shutdown(9)spmi_find_device_by_of_node(9)spmi_device_alloc(9)spmi_controller_alloc(9)spmi_controller_add(9)spmi_controller_remove(9)__spmi_driver_register(9)
that's eighteen cross-references and every single one of them ate π go read them, iykyk.
mwah π that's the whole page, sourced from ./drivers/spmi, dated October 2026 β go forth and reset responsibly, bestie, and remember: all registers to reset values, then STARTUP state, no exceptions π§ββοΈβ
π¦ 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