Re: [PATCH net-next 5/5] net: phy: microchip_t1 : Add initialization of ptp for lan887x
From: Andrew Lunn
Date: Mon Nov 04 2024 - 09:04:41 EST
> static int lan937x_dsp_workaround(struct phy_device *phydev, u16 ereg, u8 bank)
> @@ -1472,6 +1478,12 @@ static int lan887x_probe(struct phy_device *phydev)
>
> phydev->priv = priv;
>
> + priv->clock = mchp_ptp_probe(phydev, MDIO_MMD_VEND1,
> + MCHP_PTP_LTC_BASE_ADDR,
> + MCHP_PTP_PORT_BASE_ADDR);
In general, PHY interrupts are optional, since phylib will poll the
PHY once per second for changes in link etc. Does mchp_ptp_probe() do
the right thing if the PHY does not have an interrupt?
Andrew