ice_tspll_cfg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ice_tspll_cfg(9) β€” the kernel API manual, bestie edition πŸŽ€

okay so this is ice_tspll_cfg, straight out of the Kernel API Manual (section 9, driver-land, we love her) ✨


✨ NAME ✨

ice_tspll_cfg β€” configure the Clock Generation Unit TSPLL πŸ‘‘

Like, she sets up the whole clock thing. Main character energy fr.


πŸ¦‹ SYNOPSIS πŸ¦‹

int ice_tspll_cfg (struct ice_hw *hw , enum ice_tspll_freq clk_freq ,
enum ice_clk_src clk_src );

three args, one int back, no cap πŸ’–


🌸 ARGUMENTS 🌸

  • hw β€” pointer to the HW struct. yes bestie, the hardware one. give her a real pointer, not a vibe πŸ™ˆ
  • clk_freq β€” the clock frequency you wanna program in. pick one, she's not guessing πŸ•
  • clk_src β€” which clock source to select: TIME_REF, or TCXO. that's the whole menu, iykyk πŸ’…

πŸ’œ DESCRIPTION πŸ’œ

so basically she configures the Clock Generation Unit with the clock frequency and time reference you asked for, and enables the TSPLL β€” which is the icon that drives the PTP hardware clock πŸ”₯ literally the whole reason your timing works. no TSPLL, no PTP, no slay πŸ’€


⭐ RETURN ⭐

  • 0 β€” success! we ate πŸ“
  • -ERANGE β€” that MAC type is unsupported, sorry babe 😭
  • other negative error codes β€” she tried to configure the CGU and it did not go well πŸ™ˆ

🌈 SEE ALSO 🌈

kernel file ./drivers/net/ethernet/intel/ice/ice_tspll.c aka the source of truth bestie 🫢

and the whole friend group:


lowkey reminder: -ERANGE is a real answer, not a glitch. unsupported MAC = unsupported MAC πŸ’€

and that's the page!! brought to you by ./drivers/net/ethernet/intel/ice, dated October 2026 β€” mwah, go configure something iconic πŸ§šβ€β™€οΈπŸ’–βœ¨

πŸ“¦ where this page comes from