[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c3926eff-513d-4c43-9074-696495caa3f4@intel.com>
Date: Mon, 16 Dec 2024 14:35:26 +0100
From: Mateusz Polchlopek <mateusz.polchlopek@...el.com>
To: Oleksij Rempel <o.rempel@...gutronix.de>
CC: "David S. Miller" <davem@...emloft.net>, Eric Dumazet
<edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>, Paolo Abeni
<pabeni@...hat.com>, Woojung Huh <woojung.huh@...rochip.com>, Andrew Lunn
<andrew+netdev@...n.ch>, <kernel@...gutronix.de>,
<linux-kernel@...r.kernel.org>, <netdev@...r.kernel.org>,
<UNGLinuxDriver@...rochip.com>, Phil Elwell <phil@...pberrypi.org>
Subject: Re: [PATCH net-next v1 1/6] net: usb: lan78xx: Add error handling to
lan78xx_get_regs
On 12/16/2024 2:19 PM, Oleksij Rempel wrote:
> On Mon, Dec 16, 2024 at 02:07:37PM +0100, Mateusz Polchlopek wrote:
>>
>>
>> On 12/16/2024 1:09 PM, Oleksij Rempel wrote:
>>> if (!netdev->phydev)
>>> return;
>>> /* Read PHY registers */
>>> - for (j = 0; j < 32; i++, j++)
>>> - data[i] = phy_read(netdev->phydev, j);
>>> + for (j = 0; j < 32; i++, j++) {
>>
>> Maybe during this refactor is it worth to add some #define with
>> number of registers to be read?
>
> I prefer to remove this part. Please see patch 5
>
Ach, now I see that. So please forget about my comment
Powered by blists - more mailing lists