Thread (13 messages) 13 messages, 3 authors, 2024-12-18

Re: [PATCH net-next v1 1/6] net: usb: lan78xx: Add error handling to lan78xx_get_regs

flat view

From: Oleksij Rempel <o.rempel@pengutronix.de>
Date: 2024-12-16 13:19:58
Also in: lkml

On Mon, Dec 16, 2024 at 02:07:37PM +0100, Mateusz Polchlopek wrote:

On 12/16/2024 1:09 PM, Oleksij Rempel wrote:
quoted
  	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

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help