diff options
author | Oleksij Rempel <o.rempel@pengutronix.de> | 2024-12-16 15:09:36 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-12-18 06:51:54 +0300 |
commit | 30c63abaee9024ed7524325b3eeb7f2d26727c31 (patch) | |
tree | a7f5b57b1cc4794e08efd34f5bebf47fd906f1a7 /tools/perf/scripts/python/syscall-counts.py | |
parent | 33d06d1d28124b042178894584b727fdf83660b1 (diff) | |
download | linux-30c63abaee9024ed7524325b3eeb7f2d26727c31.tar.xz |
net: usb: lan78xx: Add error handling to lan78xx_get_regs
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. Drop all previously logged registers to signal
inconsistent readings to the user space. This ensures that invalid data
is not returned to users.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Link: https://patch.msgid.link/20241216120941.1690908-2-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions