[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20240524064540.azzmscw5k333zerr@DEN-DL-M31836.microchip.com>
Date: Fri, 24 May 2024 08:45:40 +0200
From: Horatiu Vultur <horatiu.vultur@...rochip.com>
To: Suman Ghosh <sumang@...vell.com>
CC: "andrew@...n.ch" <andrew@...n.ch>, "hkallweit1@...il.com"
<hkallweit1@...il.com>, "linux@...linux.org.uk" <linux@...linux.org.uk>,
"davem@...emloft.net" <davem@...emloft.net>, "edumazet@...gle.com"
<edumazet@...gle.com>, "kuba@...nel.org" <kuba@...nel.org>,
"pabeni@...hat.com" <pabeni@...hat.com>, "netdev@...r.kernel.org"
<netdev@...r.kernel.org>, "linux-kernel@...r.kernel.org"
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH net] net: micrel: Fix lan8841_config_intr after getting
out of sleep mode
The 05/23/2024 16:35, Suman Ghosh wrote:
Hi Suman,
>
> > if (phydev->interrupts == PHY_INTERRUPT_ENABLED) {
> > err = phy_read(phydev, LAN8814_INTS);
> >- if (err)
> >+ if (err < 0)
> [Suman] Hi Horatiu,
> Should we modify this check for phy_write() as well?
I don't think we should modify this check for phy_write.
Because phy_write always return the error code. Which is negative or 0.
> > return err;
> >
> > /* Enable / disable interrupts. It is OK to enable PTP
> >interrupt
> >--
> >2.34.1
> >
>
--
/Horatiu
Powered by blists - more mailing lists