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