summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2021-11-04 00:08:28 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-11-18 21:17:08 +0300
commit8f1e2373563673adbb7e3079d7a6d37bbb9e2d55 (patch)
treea574934c322028b769f3332ee3d6e1e1399d1f94 /block
parent96f9abc9183cbbcffb97b23384212fbe54543330 (diff)
downloadlinux-8f1e2373563673adbb7e3079d7a6d37bbb9e2d55.tar.xz
net: phy: fix duplex out of sync problem while changing settings
[ Upstream commit a4db9055fdb9cf607775c66d39796caf6439ec92 ] As reported by Zhang there's a small issue if in forced mode the duplex mode changes with the link staying up [0]. In this case the MAC isn't notified about the change. The proposed patch relies on the phylib state machine and ignores the fact that there are drivers that uses phylib but not the phylib state machine. So let's don't change the behavior for such drivers and fix it w/o re-adding state PHY_FORCING for the case that phylib state machine is used. [0] https://lore.kernel.org/netdev/a5c26ffd-4ee4-a5e6-4103-873208ce0dc5@huawei.com/T/ Fixes: 2bd229df5e2e ("net: phy: remove state PHY_FORCING") Reported-by: Zhang Changzhong <zhangchangzhong@huawei.com> Tested-by: Zhang Changzhong <zhangchangzhong@huawei.com> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Link: https://lore.kernel.org/r/7b8b9456-a93f-abbc-1dc5-a2c2542f932c@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions