Re: [PATCH net] net: dp83869: Reset return variable if PHY strap is read

2020-06-06 Thread David Miller
From: Dan Murphy Date: Fri, 5 Jun 2020 15:51:03 -0500 > When the PHY's strap register is read to determine if lane swapping is > needed the phy_read_mmd returns the value back into the ret variable. > > If the call to read the strap fails the failed value is returned. If > the call to read the

Re: [PATCH net] net: dp83869: Reset return variable if PHY strap is read

2020-06-05 Thread Florian Fainelli
On 6/5/2020 1:51 PM, Dan Murphy wrote: > When the PHY's strap register is read to determine if lane swapping is > needed the phy_read_mmd returns the value back into the ret variable. > > If the call to read the strap fails the failed value is returned. If > the call to read the strap is

[PATCH net] net: dp83869: Reset return variable if PHY strap is read

2020-06-05 Thread Dan Murphy
When the PHY's strap register is read to determine if lane swapping is needed the phy_read_mmd returns the value back into the ret variable. If the call to read the strap fails the failed value is returned. If the call to read the strap is successful then ret is possibly set to a non-zero