net: phy: at803x: make read_status more generic
authorChristian Marangi <ansuelsmth@gmail.com>
Thu, 4 Jan 2024 21:30:41 +0000 (22:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Jan 2024 16:23:22 +0000 (16:23 +0000)
commitc34d9452d4e5d98a655d7b625e85466320885416
treea158a30553277d6c5fe51bfe6fe6dc29ce5c0c2f
parentea73e5ea442ee2aade67b1fb1233ccb3cbea2ceb
net: phy: at803x: make read_status more generic

Make read_status more generic in preparation on moving it to shared
library as other PHY Family Driver will have the exact same
implementation.

The only specific part was a check for AR8031/33 if 1000basex was used.
The check is moved to a dedicated function specific for those PHYs.

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