net: phy: at803x: make read specific status function more generic
authorChristian Marangi <ansuelsmth@gmail.com>
Thu, 14 Dec 2023 00:44:32 +0000 (01:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Dec 2023 10:45:57 +0000 (10:45 +0000)
commit38eb804e8458ba181a03a0498ce4bf84eebd1931
tree20d40c236d99d1cf500152b1f6f46af1045af8c1
parent8e732f1c6f2dc5e18f766d0f1b11df9db2dd044a
net: phy: at803x: make read specific status function more generic

Rework read specific status function to be more generic. The function
apply different speed mask based on the PHY ID. Make it more generic by
adding an additional arg to pass the specific speed (ss) mask and use
the provided mask to parse the speed value.

This is needed to permit an easier deatch of qca808x code from the
at803x driver.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/at803x.c