diff options
| author | Oleksij Rempel <o.rempel@pengutronix.de> | 2024-12-04 09:41:39 +0100 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2024-12-06 17:53:07 -0800 |
| commit | 77586156b517c1d38a22c0a8662fe9401ab0f580 (patch) | |
| tree | 29dc27a1b1bacd913177cbe6bbcb048a93362ea4 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | net: usb: lan78xx: Improve error handling in EEPROM and OTP operations (diff) | |
| download | linux-77586156b517c1d38a22c0a8662fe9401ab0f580.tar.gz linux-77586156b517c1d38a22c0a8662fe9401ab0f580.zip | |
net: usb: lan78xx: Add error handling to lan78xx_init_ltm
Convert `lan78xx_init_ltm` to return error codes and handle errors
properly. Previously, errors during the LTM initialization process were
not propagated, potentially leading to undetected issues. This patch
ensures:
- Errors in `lan78xx_read_reg` and `lan78xx_write_reg` are checked and
handled.
- Errors are logged with detailed messages using `%pe` for clarity.
- The function exits immediately on error, returning the error code.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20241204084142.1152696-8-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
