]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitad9ae7f5c5f6103ad7bcec2c6eeaa2badcf920ac
tree20c2582617928ea8b583cf48c96259ecd1b71f5a
parent5fe48f28212f4aa654aa1396ef03d685f6ae0a29
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