Re: [PATCH net-next v3 3/3] net: phy: dp83td510: disable cable test support for 1Vpp PHYs

From: Andrew Lunn
Date: Sat Jun 11 2022 - 11:16:31 EST


> static int dp83td510_cable_test_start(struct phy_device *phydev)
> {
> - int ret;
> + struct dp83td510_priv *priv = phydev->priv;
> + int ret, cfg = 0;
> +
> + /* Generate 2.4Vpp pulse if HW is allowed to do so */
> + if (priv->allow_v2_4_mode) {
> + cfg |= DP83TD510E_TDR_TX_TYPE;
> + } else {
> + /* This PHY do not provide usable results with 1Vpp pulse.

s/do/does


> + * Potentially different dp83td510_tdr_init() values are
> + * needed.
> + */
> + return -EOPNOTSUPP;
> + }

I don't remember the details for v2.4. Is it possible to change up
from 1v to 2.4v for the duration of the cable test? Is there a danger
to damage the link peer? I guess not, since you need to pass EMC
testing which zaps it with 100Kv or something. So is this more a local
supply issue?

Andrew