ti_sci_set_clock_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 ti_sci_set_clock_state β€” the clock-state glow-up helper 🌸

okay bestie, welcome to the Kernel API Manual πŸ’– this is the page for ti_sci_set_clock_state(9), aka the little helper that sets a clock's state for you. it's giving "tiny function, big responsibilities" ✨


✨ NAME ✨

ti_sci_set_clock_state β€” Set clock state helper πŸ•πŸ’…

like, that's literally the whole job. it's a helper. it helps. no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

int ti_sci_set_clock_state (const struct ti_sci_handle *handle , u32
dev_id , u32 clk_id , u32 flags , u8 state );

she returns an int, she takes five params, she's booked and busy πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

okay so here's the cast of characters, and yes every single one matters:

  • handle β€” pointer to the TI SCI handle 🫢 literally your entry ticket, the connection to the TI SCI world.
  • dev_id β€” Device identifier this request is for. it's the "which device tho" answer ✨
  • clk_id β€” Clock identifier for the device for this request. Each device has it's own set of clock inputs. This indexes which clock input to modify. πŸ•°οΈ so like, every device has its own little menu of clock inputs and this is the index picking which one you're messing with. iykyk.
  • flags β€” Header flags as needed 🚩 whatever flags the header needs, bestie, you bring 'em.
  • state β€” State to request for the clock. πŸ‘‘ the actual vibe you're requesting. this is the main character of the whole call ngl.

πŸ”₯ RETURN πŸ”₯

0 if all went well β€” slay, ate, no notes πŸ’–

else returns appropriate error value 😭 so like, if it's not 0, something went sideways and the error value will tell you what's up.


🌈 SEE ALSO 🌈

okay this list is long long, but every single one is here because i would never do you dirty like that 🫢 go read them, they're all in the kernel file ./drivers/firmware/ti_sci.c:


🫢 friendly reminder bestie: handle comes from the TI SCI handle crew β€” go peek at ti_sci_get_handle(9) and friends in the list above if you need the lore.

and that's the whole page, periodt πŸ’… this dropped from ./drivers/firmware, dated October 2026, and it's filed under ti_sci_set_clock_state(9) β€” mwah, love u, go set some clock states πŸŽ€βœ¨

πŸ“¦ where this page comes from