Skip to content

Commit b867ea3

Browse files
author
Herton R. Krzesinski
committed
Merge: [RHEL 9.2] Update stmicro ethernet driver
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/1409 Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2122226 Depends: https://bugzilla.redhat.com/show_bug.cgi?id=2071844 Depends: https://bugzilla.redhat.com/show_bug.cgi?id=2121508 Update stmicro ethernet driver used by Nvidia Jetson and Intel EHL This removes the tech preview taint from the EHL bits. Tech Preview was added when EHL hardware was new and the driver bits specific to it were new and unproven in 9.0. V2: Rebase on MR !1364 No changes other than dropping duplicate patches which were in Al's MR. Picked up one conflict where out of order backport in Al's MR led to uneeded hunk in one of my patches. Signed-off-by: Mark Salter <msalter@redhat.com> Approved-by: Jarod Wilson <jarod@redhat.com> Approved-by: David Arcari <darcari@redhat.com> Approved-by: Torez Smith <torez@redhat.com> Approved-by: Eric Chanudet <echanude@redhat.com> Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
2 parents a70d62a + 7800495 commit b867ea3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+2511
-958
lines changed

Documentation/devicetree/bindings/net/snps,dwmac.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ select:
2121
contains:
2222
enum:
2323
- snps,dwmac
24+
- snps,dwmac-3.40a
2425
- snps,dwmac-3.50a
2526
- snps,dwmac-3.610
2627
- snps,dwmac-3.70a
@@ -76,6 +77,7 @@ properties:
7677
- rockchip,rk3399-gmac
7778
- rockchip,rv1108-gmac
7879
- snps,dwmac
80+
- snps,dwmac-3.40a
7981
- snps,dwmac-3.50a
8082
- snps,dwmac-3.610
8183
- snps,dwmac-3.70a

arch/arm64/boot/dts/mediatek/mt2712-evb.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
phy-handle = <&ethernet_phy0>;
111111
mediatek,tx-delay-ps = <1530>;
112112
snps,reset-gpio = <&pio 87 GPIO_ACTIVE_LOW>;
113+
snps,reset-delays-us = <0 10000 10000>;
113114
pinctrl-names = "default", "sleep";
114115
pinctrl-0 = <&eth_default>;
115116
pinctrl-1 = <&eth_sleep>;

arch/arm64/boot/dts/mediatek/mt2712e.dtsi

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -726,23 +726,27 @@
726726
};
727727

728728
eth: ethernet@1101c000 {
729-
compatible = "mediatek,mt2712-gmac";
729+
compatible = "mediatek,mt2712-gmac", "snps,dwmac-4.20a";
730730
reg = <0 0x1101c000 0 0x1300>;
731731
interrupts = <GIC_SPI 237 IRQ_TYPE_LEVEL_LOW>;
732732
interrupt-names = "macirq";
733733
mac-address = [00 55 7b b5 7d f7];
734734
clock-names = "axi",
735735
"apb",
736736
"mac_main",
737-
"ptp_ref";
737+
"ptp_ref",
738+
"rmii_internal";
738739
clocks = <&pericfg CLK_PERI_GMAC>,
739740
<&pericfg CLK_PERI_GMAC_PCLK>,
740741
<&topckgen CLK_TOP_ETHER_125M_SEL>,
741-
<&topckgen CLK_TOP_ETHER_50M_SEL>;
742+
<&topckgen CLK_TOP_ETHER_50M_SEL>,
743+
<&topckgen CLK_TOP_ETHER_50M_RMII_SEL>;
742744
assigned-clocks = <&topckgen CLK_TOP_ETHER_125M_SEL>,
743-
<&topckgen CLK_TOP_ETHER_50M_SEL>;
745+
<&topckgen CLK_TOP_ETHER_50M_SEL>,
746+
<&topckgen CLK_TOP_ETHER_50M_RMII_SEL>;
744747
assigned-clock-parents = <&topckgen CLK_TOP_ETHERPLL_125M>,
745-
<&topckgen CLK_TOP_APLL1_D3>;
748+
<&topckgen CLK_TOP_APLL1_D3>,
749+
<&topckgen CLK_TOP_ETHERPLL_50M>;
746750
power-domains = <&scpsys MT2712_POWER_DOMAIN_AUDIO>;
747751
mediatek,pericfg = <&pericfg>;
748752
snps,axi-config = <&stmmac_axi_setup>;

drivers/net/dsa/ocelot/felix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: GPL-2.0
2-
/* Copyright 2019-2021 NXP Semiconductors
2+
/* Copyright 2019-2021 NXP
33
*
44
* This is an umbrella module for all network switches that are
55
* register-compatible with Ocelot and that perform I/O to their host CPU

drivers/net/dsa/ocelot/felix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
2-
/* Copyright 2019 NXP Semiconductors
2+
/* Copyright 2019 NXP
33
*/
44
#ifndef _MSCC_FELIX_H
55
#define _MSCC_FELIX_H

drivers/net/dsa/ocelot/felix_vsc9959.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
22
/* Copyright 2017 Microsemi Corporation
3-
* Copyright 2018-2019 NXP Semiconductors
3+
* Copyright 2018-2019 NXP
44
*/
55
#include <linux/fsl/enetc_mdio.h>
66
#include <soc/mscc/ocelot_qsys.h>

drivers/net/dsa/sja1105/sja1105_clocking.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: BSD-3-Clause
2-
/* Copyright (c) 2016-2018, NXP Semiconductors
2+
/* Copyright 2016-2018 NXP
33
* Copyright (c) 2018-2019, Vladimir Oltean <olteanv@gmail.com>
44
*/
55
#include <linux/packing.h>

drivers/net/dsa/sja1105/sja1105_devlink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0
22
/* Copyright (c) 2018-2019, Vladimir Oltean <olteanv@gmail.com>
3-
* Copyright 2020 NXP Semiconductors
3+
* Copyright 2020 NXP
44
*/
55
#include "sja1105.h"
66

drivers/net/dsa/sja1105/sja1105_flower.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: GPL-2.0
2-
/* Copyright 2020, NXP Semiconductors
2+
/* Copyright 2020 NXP
33
*/
44
#include "sja1105.h"
55
#include "sja1105_vl.h"

drivers/net/dsa/sja1105/sja1105_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2009,7 +2009,7 @@ int sja1105_static_config_reload(struct sja1105_private *priv,
20092009
else
20102010
mode = MLO_AN_PHY;
20112011

2012-
rc = xpcs_do_config(xpcs, priv->phy_mode[i], mode);
2012+
rc = xpcs_do_config(xpcs, priv->phy_mode[i], mode, NULL);
20132013
if (rc < 0)
20142014
goto out;
20152015

0 commit comments

Comments
 (0)