OSDN Git Service

dsa: lan9303: Add exception logic for read failure
authorJerry Ray <jerry.ray@microchip.com>
Tue, 17 Jan 2023 20:56:59 +0000 (14:56 -0600)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jan 2023 08:53:13 +0000 (08:53 +0000)
commit601f574a1b449446a98d65cc3871a8eb2cb18bcf
treed932d3af47d91408c8a9e45e8ebf1562435eafc7
parent1bcb5df81e4b788d3a0ff5b04dc5299758b38ac5
dsa: lan9303: Add exception logic for read failure

While it is highly unlikely a read will ever fail, This code fragment is
now in a function that allows us to return an error code. A read failure
here will cause the lan9303_probe to fail.

Signed-off-by: Jerry Ray <jerry.ray@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/lan9303-core.c