]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: qca8k: handle error with qca8k_rmw operation
authorAnsuel Smith <ansuelsmth@gmail.com>
Fri, 14 May 2021 20:59:57 +0000 (22:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 May 2021 22:30:22 +0000 (15:30 -0700)
commit19a41910e9da1623abfff2ad5aef2f86cbe5fd6b
treef8c4ecc1d1eb749c7dda7475adfd489199fb1b6b
parent9ab030391a084019407285cee96e1c1c3ba61e40
net: dsa: qca8k: handle error with qca8k_rmw operation

qca8k_rmw can fail. Rework any user to handle error values and
correctly return. Change qca8k_rmw to return the error code or 0 instead
of the reg value. The reg returned by qca8k_rmw wasn't used anywhere,
so this doesn't cause any functional change.

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