mtk_xfi_tphy_probe(9)
β¨ mtk_xfi_tphy_probe(9) β¨
okay so bestie, welcome to the Kernel API Manual π
today we're looking at mtk_xfi_tphy_probe β the little probe function that sets up your XFI T-PHY instance from Device Tree. it's giving "first day of school, gotta meet everybody" energy fr fr π
πΈ NAME πΈ
mtk_xfi_tphy_probe β probe the phy instance from Device Tree. yes that's the whole vibe. she finds out what she needs to know about the hardware and gets set up. π¦
β¨ SYNOPSIS β¨
int mtk_xfi_tphy_probe (struct platform_device *pdev );
π ARGUMENTS π
pdevβ the matching platform device. that's her buddy, her plus-one, the device she's probing π«Ά
π DESCRIPTION π
so like, the probe function literally goes to the Device Tree and gets all the essentials: the IO resource, the clocks, the reset controller, and whether the DA work-around for 10GBase-R is required. π§
then she allocates memory to hold all that info in a struct mtk_xfi_tphy. iconic. she has a whole little organizer for her data and honestly? we love to see it π
π₯ RETURN π₯
0β OK, we slayed, everything's good π-ENODEVβ missing associated Device Tree node. and likeβ¦ that should never happen π key word should, bestie-ENOMEMβ out of memory. π tragic, but she's honest about it- any error value which
devm_platform_ioremap_resource,devm_clk_bulk_get,devm_reset_control_get_exclusive,devm_phy_createordevm_of_phy_provider_registermay return. yeah any of them. they all got a say π
π¦ SEE ALSO π¦
- Kernel file
./drivers/phy/mediatek/phy-mtk-xfi-tphy.c struct mtk_xfi_tphy(9)mtk_xfi_tphy_setup(9)mtk_xfi_tphy_set_mode(9)mtk_xfi_tphy_reset(9)mtk_xfi_tphy_power_on(9)mtk_xfi_tphy_power_off(9)
go read those too, iykyk πβ¨
ok that's the whole page bestie, no cap. go forth and probe responsibly π πΈ
βΏ with love from ./drivers/phy/mediatek, October 2026, Kernel API Manual βΏ πβπ
π¦ 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