ufshcd_parse...ngs_for_gear(9)
π 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 lilstruct ufs_hbaand 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-gNtxeq-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 π
- Kernel file
./drivers/ufs/host/ufshcd-pltfrm.cπ (go read the source, iykyk) ufshcd_parse_regulator_info(9)ufshcd_parse_clock_min_max_freq(9)ufshcd_negotiate_pwr_params(9)ufshcd_parse_gear_limits(9)ufshcd_pltfrm_init(9)ufshcd_pltfrm_remove(9)
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
- 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