ufshcd_parse...ngs_for_gear(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ufshcd_parse_tx_eq_settings_for_gear(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” yes it's a real manual page, yes it's from the kernel, and yes we're gonna get through it together. this one's about a little function called ufshcd_parse_tx_eq_settings_for_gear, and honestly? it's giving "quietly doing important UFS work behind the scenes" energy. πŸ¦‹


✨ NAME ✨

ufshcd_parse_tx_eq_settings_for_gear β€” parse static TX EQ DT settings for one gear, no cap

like... it parses. TX EQ settings. from device tree. for exactly one gear. that's the whole job. πŸŽ€


🌸 SYNOPSIS 🌸

void ufshcd_parse_tx_eq_settings_for_gear (struct ufs_hba *hba , int gear );

she takes a hba and a gear, and she returns void β€” as in, she doesn't hand you a value back, she just does the thing and updates stuff internally. main character behaviour fr fr. πŸ‘‘


🫢 ARGUMENTS 🫢

  • hba β€” per adapter instance πŸ’– (each adapter gets its own lil struct ufs_hba and this is that one)
  • gear β€” the target HS gear ⚑ (which gear's settings we're out here parsing, tyvm)

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's what she actually reads, and you're gonna want to write these down because they're very literal property names, not vibes:

  • txeq-preshoot-gN
  • txeq-deemphasis-gN
  • and, only when we're talking G6, tx-precode-enable-g6 🌈

those are the device-tree properties she's out here looking at. and then β€” this is the important part β€” if all present values are valid, she stores them as static TX Equalization settings for the given gear. πŸ’…

note the wording bestie: if all present values are valid. she's not out here storing half-valid garbage, she checks first. validity check first, storing second. that's the order. periodt. ✨

πŸ“ SEE ALSO πŸ“

that's the whole little friend group right there, all hanging out in the same neighbourhood. go say hi. 🧚


and that's the page!! πŸŽ€ this one lives over in ./drivers/ufs/host, dated October 2026, brought to you by the Kernel API Manual β€” so like, star her, bookmark her, whatever, she ate and left no crumbs. πŸ’œβœ¨

πŸ“¦ where this page comes from