@@ -1141,12 +1141,7 @@ static int dp83640_config_init(struct phy_device *phydev)staticintdp83640_ack_interrupt(structphy_device*phydev){-interr=phy_read(phydev,MII_DP83640_MISR);--if(err<0)-returnerr;--return0;+returnphy_read(phydev,MII_DP83640_MISR);}staticintdp83640_config_intr(structphy_device*phydev)
This would be a functional change. You'd return a positive value
instead of 0.
And looking a bit further down in the code:
static int dp83640_ack_interrupt(struct phy_device *phydev)
{
int err = phy_read(phydev, MII_DP83640_MISR);
if (err < 0)
return err;
return 0;
}
static int dp83640_config_intr(struct phy_device *phydev)
{
int micr;
int misr;
int err;
if (phydev->interrupts == PHY_INTERRUPT_ENABLED) {
err = dp83640_ack_interrupt(phydev);
if (err)
return err;
So a positive value is going to break the driver.
NACK
Andrew