summaryrefslogtreecommitdiff
path: root/include/linux/backing-dev.h
diff options
context:
space:
mode:
authorDoug Berger <opendmb@gmail.com>2019-11-05 11:07:26 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-05 09:19:45 +0100
commita30c6e424fddff9470e021f644f960a54f81c844 (patch)
tree619914c6d410e2ab6c0a4d839a8b2175d29b33eb /include/linux/backing-dev.h
parentacd6a29134f081cba7f23042fe94a8fcb2b77802 (diff)
net: bcmgenet: reapply manual settings to the PHY
[ Upstream commit 0686bd9d5e6863f60e4bb1e78e6fe7bb217a0890 ] The phy_init_hw() function may reset the PHY to a configuration that does not match manual network settings stored in the phydev structure. If the phy state machine is polled rather than event driven this can create a timing hazard where the phy state machine might alter the settings stored in the phydev structure from the value read from the BMCR. This commit follows invocations of phy_init_hw() by the bcmgenet driver with invocations of the genphy_config_aneg() function to ensure that the BMCR is written to match the settings held in the phydev structure. This prevents the risk of manual settings being accidentally altered. Fixes: 1c1008c793fa ("net: bcmgenet: add main driver file") Signed-off-by: Doug Berger <opendmb@gmail.com> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/backing-dev.h')
0 files changed, 0 insertions, 0 deletions