ufshcd_update_tx_eq_params(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ufshcd_update_tx_eq_params(9) πŸ’–

okay so this is a page straight out of the Kernel API Manual, bestie β€” it's the glow-up guide for ufshcd_update_tx_eq_params, and honestly? she's lowkey the main character of TX Equalization bookkeeping. let's get into it πŸŽ€


✨ NAME ✨

ufshcd_update_tx_eq_params β€” Update TX Equalization params 🌸


✨ SYNOPSIS ✨

void ufshcd_update_tx_eq_params (struct ufshcd_tx_eq_params *params ,
struct ufs_pa_layer_attr *pwr_mode , struct ufshcd_tx_eqtr_data
*eqtr_data );

like, three pointers walk into a function. no return value. void. she just does the thing and leaves πŸ’…


✨ ARGUMENTS ✨

  • params β€” the TX EQ parameters data structure 🫢 this is where the good stuff lives
  • pwr_mode β€” the target power mode, and yes she's carrying both the gear and the rate, iconic
  • eqtr_data β€” the TX EQTR data structure, aka the receipts πŸ“‹

✨ DESCRIPTION ✨

so the whole vibe here: you update the TX Equalization params using the results that came out of the TX EQTR data. that's the assignment, and she ate πŸ”₯

also β€” and this is the part you cannot skip β€” check the TX EQTR FOM value for every single TX lane inside the TX EQTR data. every one. no cherry-picking.

and if a TX lane got a FOM value of 0? 😭 that lane is not okay. so you restore the TX Equalization settings from the last known valid TX Equalization params β€” and specifically for that specific TX lane, not the whole squad. per-lane rescue mission, periodt πŸ‘‘

ngl, don't sleep on the FOM 0 check. that's the whole safety net 🧚

✨ SEE ALSO ✨

kernel file ./drivers/ufs/core/ufs-txeq.c πŸ’œ plus the entire friend group:

like, that's a whole group chat right there πŸ’€


and that's the page bestie!! πŸ¦‹ this little number lives in ./drivers/ufs/core, dated October 2026, and it's literally titled ufshcd_update_tx_eq_params(9). go forth and equalize βœ¨πŸ’–πŸŽ€

πŸ“¦ where this page comes from