Patch "net: stmmac: remove redundant fixup to support fixed-link mode" has been added to the 6.1-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    net: stmmac: remove redundant fixup to support fixed-link mode

to the 6.1-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     net-stmmac-remove-redundant-fixup-to-support-fixed-l.patch
and it can be found in the queue-6.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit d8237a3d60ea3f70944189b546d4a0e519705b4f
Author: Michael Sit Wei Hong <michael.wei.hong.sit@xxxxxxxxx>
Date:   Thu Mar 30 17:14:04 2023 +0800

    net: stmmac: remove redundant fixup to support fixed-link mode
    
    [ Upstream commit 6fc21a6ed5953b1dd3a41ce7be1ea57f5ef8c081 ]
    
    Currently, intel_speed_mode_2500() will fix-up xpcs_an_inband
    to 1 if the underlying controller has a max speed of 1000Mbps.
    The value has been initialized and modified if it is
    a fixed-linked setup earlier.
    
    This patch removes the fix-up to allow for fixed-linked setup
    support. In stmmac_phy_setup(), ovr_an_inband is set based on
    the value of xpcs_an_inband. Which in turn will return an
    error in phylink_parse_mode() where MLO_AN_FIXED and
    ovr_an_inband are both set.
    
    Fixes: c82386310d95 ("stmmac: intel: prepare to support 1000BASE-X phy interface setting")
    Signed-off-by: Michael Sit Wei Hong <michael.wei.hong.sit@xxxxxxxxx>
    Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
index 13aa919633b47..ab9f876b6df7e 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
@@ -251,7 +251,6 @@ static void intel_speed_mode_2500(struct net_device *ndev, void *intel_data)
 		priv->plat->mdio_bus_data->xpcs_an_inband = false;
 	} else {
 		priv->plat->max_speed = 1000;
-		priv->plat->mdio_bus_data->xpcs_an_inband = true;
 	}
 }
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux