diff options
author | Raju Rangoju <Raju.Rangoju@amd.com> | 2023-05-25 23:56:12 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-05-26 10:42:06 +0100 |
commit | dc362e20cd6ab7a93d1b09669730c406f0910c35 (patch) | |
tree | 2dcfc8406fdbd63cc4534a655d5e8199bf9f5158 /drivers/nfc | |
parent | 8a0d57df8938e9fd2e99d47a85b7f37d86f91097 (diff) | |
download | lwn-dc362e20cd6ab7a93d1b09669730c406f0910c35.tar.gz lwn-dc362e20cd6ab7a93d1b09669730c406f0910c35.zip |
amd-xgbe: fix the false linkup in xgbe_phy_status
In the event of a change in XGBE mode, the current auto-negotiation
needs to be reset and the AN cycle needs to be re-triggerred. However,
the current code ignores the return value of xgbe_set_mode(), leading to
false information as the link is declared without checking the status
register.
Fix this by propagating the mode switch status information to
xgbe_phy_status().
Fixes: e57f7a3feaef ("amd-xgbe: Prepare for working with more than one type of phy")
Co-developed-by: Sudheesh Mavila <sudheesh.mavila@amd.com>
Signed-off-by: Sudheesh Mavila <sudheesh.mavila@amd.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Acked-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Signed-off-by: Raju Rangoju <Raju.Rangoju@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/nfc')
0 files changed, 0 insertions, 0 deletions