kernel: import accepted MediaTek Ethernet patches
[openwrt/staging/aparcar.git] / target / linux / generic / pending-5.15 / 729-net-mtk_eth_soc-improve-comment.patch
index 80144850ec23237a74b19327d6ef9ad002d8942c..cd64c6147adfe7698862f298ae948f24f181be14 100644 (file)
@@ -10,7 +10,7 @@ Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
 
 --- a/drivers/net/ethernet/mediatek/mtk_sgmii.c
 +++ b/drivers/net/ethernet/mediatek/mtk_sgmii.c
-@@ -80,7 +80,8 @@ static int mtk_pcs_setup_mode_force(stru
+@@ -67,7 +67,8 @@ static int mtk_pcs_setup_mode_force(stru
        val &= ~SGMII_AN_ENABLE;
        regmap_write(mpcs->regmap, SGMSYS_PCS_CONTROL_1, val);
  
@@ -18,5 +18,5 @@ Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
 +      /* Set the speed etc but leave the duplex unchanged.
 +       * The SGMII mode for 2.5gbit is the same as for 1gbit, expect the speed in ANA_RGC3 */
        regmap_read(mpcs->regmap, SGMSYS_SGMII_MODE, &val);
-       val &= SGMII_DUPLEX_FULL | ~SGMII_IF_MODE_MASK;
+       val &= SGMII_DUPLEX_HALF | ~SGMII_IF_MODE_MASK;
        val |= SGMII_SPEED_1000;