Skip to content

Commit 8b1b2ca

Browse files
oleremkuba-moo
authored andcommitted
net: usb: lan78xx: Improve error handling in EEPROM and OTP operations
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 <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 32ee0dc commit 8b1b2ca

File tree

1 file changed

+152
-88
lines changed

1 file changed

+152
-88
lines changed

0 commit comments

Comments
 (0)