]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: qca8k: correctly handle mdio read error
authorAnsuel Smith <ansuelsmth@gmail.com>
Fri, 15 Apr 2022 23:30:16 +0000 (01:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Apr 2022 12:28:29 +0000 (13:28 +0100)
commit7e491ad419016fbe8c1fe839e7484f8386bcfbda
tree8a45fac12abf4e4a890a36173bb7f874e3bc9493
parent7c64141b95a13b7a1590ac78eee7627536f9acad
net: dsa: qca8k: correctly handle mdio read error

Restore original way to handle mdio read error by returning 0xffff.
This was wrongly changed when the internal_mdio_read was introduced,
now that both legacy and internal use the same function, make sure that
they behave the same way.

Fixes: 809d8119eb26 ("net: dsa: qca8k: fix kernel panic with legacy mdio mapping")
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca8k.c