net: phy: at803x: enable qca8081 slave seed conditionally
authorLuo Jie <quic_luoj@quicinc.com>
Sun, 16 Jul 2023 08:49:21 +0000 (16:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Jul 2023 09:15:13 +0000 (10:15 +0100)
commit7cc3209558002d95c0d45a1276ba4f5f741eec42
treefcb111aafacb6282f0a9c76201a3953468f4531e
parentf3db55ae860a82e1224a909072783ef850e5d228
net: phy: at803x: enable qca8081 slave seed conditionally

qca8081 is the single port PHY, the slave prefer mode is used
by default.

if the phy master perfer mode is configured, the slave seed
configuration should not be enabled, since the slave seed
enablement is for making PHY linked as slave mode easily.

disable slave seed if the master mode is preferred.

Signed-off-by: Luo Jie <quic_luoj@quicinc.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/at803x.c