]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: qca8k: cache lo and hi for mdio write
authorAnsuel Smith <ansuelsmth@gmail.com>
Wed, 2 Feb 2022 00:03:33 +0000 (01:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Feb 2022 14:44:00 +0000 (14:44 +0000)
commit4263e26a140b0fd210cf1323c85ba1a25b8ff4fb
tree19a085ed03883771bf1ebd489ec5baa53824596c
parent429f6e63c7512e59cd5c369e9c1ecb870da25d1c
net: dsa: qca8k: cache lo and hi for mdio write

From Documentation, we can cache lo and hi the same way we do with the
page. This massively reduce the mdio write as 3/4 of the time as we only
require to write the lo or hi part for a mdio write.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca8k.c
drivers/net/dsa/qca8k.h