Thread (29 messages) 29 messages, 4 authors, 2024-12-13

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

flat view

From: Jakub Kicinski <kuba@kernel.org>
Date: 2024-12-11 02:53:37
Also in: lkml

On Mon,  9 Dec 2024 14:07:44 +0100 Oleksij Rempel wrote:
Update `lan78xx_get_regs` to handle errors during register and PHY
reads.  Log warnings for failed reads and exit the function early if an
error occurs.  This ensures that invalid data is not returned to users.
Should we zero out all the returned regs, too? 
Make it more obvious we failed.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help