net: dsa: qca8k: handle qca8k_set_page errors
authorAnsuel Smith <ansuelsmth@gmail.com>
Fri, 14 May 2021 20:59:54 +0000 (22:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 May 2021 22:30:22 +0000 (15:30 -0700)
commitba5707ec58cfb6853dff41c2aae72deb6a03d389
treef499d613387b0d30d49610bec700b43572ae90c4
parent504bf65931824eda83494e5b5d75686e27ace03e
net: dsa: qca8k: handle qca8k_set_page errors

With a remote possibility, the set_page function can fail. Since this is
a critical part of the write/read qca8k regs, propagate the error and
terminate any read/write operation.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca8k.c