80144850ec23237a74b19327d6ef9ad002d8942c
[openwrt/staging/aparcar.git] / target / linux / generic / pending-5.15 / 729-net-mtk_eth_soc-improve-comment.patch
1 From 06773f19cffd6c9d34dcbc8320169afef5ab60ba Mon Sep 17 00:00:00 2001
2 From: Alexander Couzens <lynxis@fe80.eu>
3 Date: Mon, 15 Aug 2022 13:58:07 +0200
4 Subject: [PATCH 09/10] net: mtk_eth_soc: improve comment
5
6 Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
7 ---
8 drivers/net/ethernet/mediatek/mtk_sgmii.c | 3 ++-
9 1 file changed, 2 insertions(+), 1 deletion(-)
10
11 --- a/drivers/net/ethernet/mediatek/mtk_sgmii.c
12 +++ b/drivers/net/ethernet/mediatek/mtk_sgmii.c
13 @@ -80,7 +80,8 @@ static int mtk_pcs_setup_mode_force(stru
14 val &= ~SGMII_AN_ENABLE;
15 regmap_write(mpcs->regmap, SGMSYS_PCS_CONTROL_1, val);
16
17 - /* Set the speed etc but leave the duplex unchanged */
18 + /* Set the speed etc but leave the duplex unchanged.
19 + * The SGMII mode for 2.5gbit is the same as for 1gbit, expect the speed in ANA_RGC3 */
20 regmap_read(mpcs->regmap, SGMSYS_SGMII_MODE, &val);
21 val &= SGMII_DUPLEX_FULL | ~SGMII_IF_MODE_MASK;
22 val |= SGMII_SPEED_1000;