Re: [PATCH net-next v4 5/6] net: phy: mediatek: add calibration logic for AN7581

From
Benjamin Larsson <hidden>
Date
2026-11-04 22:39:05
Also in
linux-arm-kernel, linux-mediatek, lkml
Reply to
Andrew Lunn, 2026-11-04
Hi.

On 04/11/2026 21:51, Andrew Lunn wrote:
quoted
It's safe in the measure that the worst is that link goes down during the
calibration... I will rework the function to assign the base address to the
default address for port 0 (it's hardcoded by the SoC) and use the lock and
read/write helper instead.
Are there multiple PHYs in the package? What happens if both are doing
calibration at the same time?

PHY #0                            PHY #1


phy_modify_mmd(phydev, devad, regnum, mask, cal_val);

		       	      	  phy_modify_mmd(phydev, devad, regnum, mask, cal_val);
				  ret = mtk_cal_cycle_wait(phydev_p0);

ret = mtk_cal_cycle_wait(phydev_p0);

     Andrew
There are 4 phys in total, only the phy with mdio address 9 has the calibration capability. Thus only one phy at the time can perform the calibration sequence.

MvH
Benjamin Larsson
Thread (17 messages) 17 messages, 3 authors, last reply 10d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help