The netdev-ai review of this patch [1] raised two points beyond what I
answered on the sashiko.dev review (NVMEM=n, and the delay flags where
the lines are left alone), which v3 will fix as said there. I tested
both on a GL-SFT1200, changing its device tree for each case.
> These flags are set whenever the calibration parses, and
> plat_dat->phy_interface is never checked. Does this make probe fail for
> any phy-mode other than rgmii-id?
Yes. v3 will leave the delay lines alone for modes other than RGMII,
and bypass the RX line unless phy-mode asks for an RX delay. With that,
rgmii-txid passes traffic with the calibration given. rgmii and
rgmii-rxid cannot work, since the TX line has no bypass, and the binding
will limit phy-mode to gmii, mii, rgmii-id, rgmii-txid and rmii.
> The binding describes byp_ref as the "RGMII transmit reference clock".
> Here the clock is enabled, but the handle is dropped and never stored
> in plat_dat->clk_tx_i. No set_clk_tx_rate or fix_mac_speed hook is
> installed either.
The SoC divides it itself. With the link to the switch forced to 100
and 10 Mb/s, both run at line rate (93 and 9.3 Mb/s) with byp_ref at
125 MHz. Setting byp_ref to 25 MHz stops the 100 Mb/s link, so v3 will
keep leaving its rate alone, and the commit message will say why.
[1] https://netdev-ai.bots.linux.dev/sashiko/#/message/2026…%40telaak.dev
Thanks,
Joseph