ENUM SVSB_PHASE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ enum svsb_phase(9) ✨

okay bestie, so this one lives in the Kernel API Manual and it's literally just a little baby enum β€” but it's the enum that runs the whole svs bank phase situation, so like, respect it πŸ’…

🌸 NAME 🌸

enum svsb_phase β€” the svs bank phase enumeration, aka the glow-up timeline of an svs bank πŸ¦‹

πŸŽ€ SYNOPSIS πŸŽ€

enum svsb_phase {
    SVSB_PHASE_ERROR ,
    SVSB_PHASE_INIT01 ,
    SVSB_PHASE_INIT02 ,
    SVSB_PHASE_MON ,
    SVSB_PHASE_MAX

};

⭐ Constants ⭐

  • SVSB_PHASE_ERROR β€” the "help something went sideways" era 😭 β€” this is what you get when an svs bank encounters an unexpected condition.
  • SVSB_PHASE_INIT01 β€” the basic init era for data calibration ✨ like, the first-day-of-school phase.
  • SVSB_PHASE_INIT02 β€” the glow-up continues: now the svs bank can provide voltages to the opp table πŸ’–
  • SVSB_PHASE_MON β€” the main character phase πŸ‘‘ the svs bank can provide voltages with thermal effect now. it's giving fully realized.
  • SVSB_PHASE_MAX β€” the total number of svs bank phases (debug purpose only, no cap πŸ™ˆ)

πŸ’œ Description πŸ’œ

So here's the tea: each svs bank has its own independent phase, and we enable each svs bank by running their phases orderly β€” one after another, no skipping, no chaos, okay? 🫢

But lowkey, when an svs bank encounters an unexpected condition, it will fire an irq (PHASE_ERROR) to inform the svs software. so yeah, the error phase is literally the 911 call πŸ’€

the svs bank general phase-enabled order is, and I quote, exactly this:

SVSB_PHASE_INIT01 -> SVSB_PHASE_INIT02 -> SVSB_PHASE_MON

like, that's the whole arc. iconic. periodt πŸ”₯

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/soc/mediatek/mtk-svs.c, plus the whole friend group ✨: enum svsb_sw_id(9), enum svsb_type(9), struct svs_platform(9), struct svs_bank_pdata(9), struct svs_bank(9)


and that's a wrap bestie 🌈 this masterpiece comes to you from ./drivers/soc/mediatek, dated October 2026 β€” go read the kernel source, ily, bye πŸŽ€πŸ’–

πŸ“¦ where this page comes from