Thread (35 messages) 35 messages, 3 authors, 2024-12-06

Re: [PATCH net-next v1 06/21] net: usb: lan78xx: Improve error handling in EEPROM and OTP operations

flat view

From: Andrew Lunn <andrew@lunn.ch>
Date: 2024-12-03 20:35:50
Also in: lkml

On Tue, Dec 03, 2024 at 08:21:39AM +0100, Oleksij Rempel wrote:
Refine error handling in EEPROM and OTP read/write functions by:
- Return error values immediately upon detection.
- Avoid overwriting correct error codes with `-EIO`.
- Preserve initial error codes as they were appropriate for specific
  failures.
- Use `-ETIMEDOUT` for timeout conditions instead of `-EIO`.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help