OSDN Git Service

net: phy: adjust qca8081 master/slave seed value if link down
authorLuo Jie <luoj@codeaurora.org>
Sun, 24 Oct 2021 08:27:37 +0000 (16:27 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Oct 2021 13:04:18 +0000 (14:04 +0100)
commit8bc1c5430c4bbeaa2b0b5d5ca147ce85d492c775
tree20c2582617928ea8b583cf48c96259ecd1b71f5a
parent9d4dae29624f1b9467f58d596174803cde9be7a1
net: phy: adjust qca8081 master/slave seed value if link down

1. The master/slave seed needs to be updated when the link can't
be created.

2. The case where two qca8081 PHYs are connected each other and
master/slave seed is generated as the same value also needs
to be considered, so adding this code change into read_status
instead of link_change_notify.

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