aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/microchip/ksz_spi.c
diff options
context:
space:
mode:
authorOleksij Rempel <[email protected]>2023-10-26 05:10:49 +0000
committerJakub Kicinski <[email protected]>2023-10-27 21:43:53 +0000
commit818cdb0f4b3834b342a32040ba0ee12fefb548e0 (patch)
tree8331354d38571729f8df56c380aea5ee9a0d0d95 /drivers/net/dsa/microchip/ksz_spi.c
parentnet: dsa: microchip: Refactor comment for ksz_switch_macaddr_get() function (diff)
downloadkernel-818cdb0f4b3834b342a32040ba0ee12fefb548e0.tar.gz
kernel-818cdb0f4b3834b342a32040ba0ee12fefb548e0.zip
net: dsa: microchip: Add error handling for ksz_switch_macaddr_get()
Enhance the ksz_switch_macaddr_get() function to handle errors that may occur during the call to ksz_write8(). Specifically, this update checks the return value of ksz_write8(), which may fail if regmap ranges validation is not passed and returns the error code. Signed-off-by: Oleksij Rempel <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Reviewed-by: Vladimir Oltean <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/dsa/microchip/ksz_spi.c')
0 files changed, 0 insertions, 0 deletions