Skip to content

Commit 903e29d

Browse files
committed
Merge: net: stmmac: Rebase to v6.10
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/5007 JIRA: https://issues.redhat.com/browse/RHEL-6297 Let's rebase stmmac to v6.10. The following patches were purposely avoided: c5f3ffe ("net: stmmac: dwmac-qcom-ethqos: Drop an if with an always false condition") 5580b55 ("net: stmmac: dwmac-qcom-ethqos: Convert to platform remove callback returning void") Because they don't make sense, see this MR's backport of "net: stmmac: dwmac-tegra: Convert to platform remove callback returning void" for an explanation. 727e373 ("net: stmmac: use xpcs_create_mdiodev()") 58329b0 ("net: stmmac: Signal to PHY/PCS drivers to keep RX clock on") f951a64 ("net: stmmac: Move MAC caps init to phylink MAC caps getter") Were avoided due to requiring changes in other net (pcs, phylink, etc) subsystems at this moment that I didn't want to bring in this late for y-stream. Signed-off-by: Andrew Halaney <ahalaney@redhat.com> Approved-by: Eric Chanudet <echanude@redhat.com> Approved-by: Michal Schmidt <mschmidt@redhat.com> Approved-by: Marcelo Ricardo Leitner <mleitner@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Lucas Zampieri <lzampier@redhat.com>
2 parents ddbb7b9 + 17d39e1 commit 903e29d

Some content is hidden

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

74 files changed

+3848
-2280
lines changed

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12991,6 +12991,7 @@ F: arch/mips/include/asm/mach-loongson32/
1299112991
F: arch/mips/loongson32/
1299212992
F: drivers/*/*/*loongson1*
1299312993
F: drivers/*/*loongson1*
12994+
F: drivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c
1299412995

1299512996
MIPS/LOONGSON2EF ARCHITECTURE
1299612997
M: Jiaxun Yang <jiaxun.yang@flygoat.com>

drivers/net/ethernet/chelsio/cxgb3/sge.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2503,14 +2503,6 @@ static int napi_rx_handler(struct napi_struct *napi, int budget)
25032503
return work_done;
25042504
}
25052505

2506-
/*
2507-
* Returns true if the device is already scheduled for polling.
2508-
*/
2509-
static inline int napi_is_scheduled(struct napi_struct *napi)
2510-
{
2511-
return test_bit(NAPI_STATE_SCHED, &napi->state);
2512-
}
2513-
25142506
/**
25152507
* process_pure_responses - process pure responses from a response queue
25162508
* @adap: the adapter

drivers/net/ethernet/stmicro/stmmac/Kconfig

Lines changed: 39 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -121,17 +121,6 @@ config DWMAC_MESON
121121
the stmmac device driver. This driver is used for Meson6,
122122
Meson8, Meson8b and GXBB SoCs.
123123

124-
config DWMAC_OXNAS
125-
tristate "Oxford Semiconductor OXNAS dwmac support"
126-
default ARCH_OXNAS
127-
depends on OF && COMMON_CLK && (ARCH_OXNAS || COMPILE_TEST)
128-
select MFD_SYSCON
129-
help
130-
Support for Ethernet controller on Oxford Semiconductor OXNAS SoCs.
131-
132-
This selects the Oxford Semiconductor OXNASSoC glue layer support for
133-
the stmmac device driver. This driver is used for OX820.
134-
135124
config DWMAC_QCOM_ETHQOS
136125
tristate "Qualcomm ETHQOS support"
137126
default ARCH_QCOM
@@ -153,18 +142,45 @@ config DWMAC_ROCKCHIP
153142
This selects the Rockchip RK3288 SoC glue layer support for
154143
the stmmac device driver.
155144

145+
config DWMAC_RZN1
146+
tristate "Renesas RZ/N1 dwmac support"
147+
default ARCH_RZN1
148+
depends on OF && (ARCH_RZN1 || COMPILE_TEST)
149+
select PCS_RZN1_MIIC
150+
help
151+
Support for Ethernet controller on Renesas RZ/N1 SoC family.
152+
153+
This selects the Renesas RZ/N1 SoC glue layer support for
154+
the stmmac device driver. This support can make use of a custom MII
155+
converter PCS device.
156+
156157
config DWMAC_SOCFPGA
157158
tristate "SOCFPGA dwmac support"
158159
default ARCH_INTEL_SOCFPGA
159160
depends on OF && (ARCH_INTEL_SOCFPGA || COMPILE_TEST)
160161
select MFD_SYSCON
162+
select MDIO_REGMAP
163+
select REGMAP_MMIO
164+
select PCS_LYNX
161165
help
162166
Support for ethernet controller on Altera SOCFPGA
163167

164168
This selects the Altera SOCFPGA SoC glue layer support
165169
for the stmmac device driver. This driver is used for
166170
arria5 and cyclone5 FPGA SoCs.
167171

172+
config DWMAC_STARFIVE
173+
tristate "StarFive dwmac support"
174+
depends on OF && (ARCH_STARFIVE || COMPILE_TEST)
175+
select MFD_SYSCON
176+
default m if ARCH_STARFIVE
177+
help
178+
Support for ethernet controllers on StarFive RISC-V SoCs
179+
180+
This selects the StarFive platform specific glue layer support
181+
for the stmmac device driver. This driver is used for the
182+
StarFive JH7100 and JH7110 ethernet controllers.
183+
168184
config DWMAC_STI
169185
tristate "STi GMAC support"
170186
default ARCH_STI
@@ -235,6 +251,17 @@ config DWMAC_INTEL_PLAT
235251
the stmmac device driver. This driver is used for the Intel Keem Bay
236252
SoC.
237253

254+
config DWMAC_LOONGSON1
255+
tristate "Loongson1 GMAC support"
256+
default MACH_LOONGSON32
257+
depends on OF && (MACH_LOONGSON32 || COMPILE_TEST)
258+
help
259+
Support for ethernet controller on Loongson1 SoC.
260+
261+
This selects Loongson1 SoC glue layer support for the stmmac
262+
device driver. This driver is used for Loongson1-based boards
263+
like Loongson LS1B/LS1C.
264+
238265
config DWMAC_TEGRA
239266
tristate "NVIDIA Tegra MGBE support"
240267
depends on ARCH_TEGRA || COMPILE_TEST
@@ -265,7 +292,7 @@ config DWMAC_INTEL
265292
config DWMAC_LOONGSON
266293
tristate "Loongson PCI DWMAC support"
267294
default MACH_LOONGSON64
268-
depends on STMMAC_ETH && PCI
295+
depends on (MACH_LOONGSON64 || COMPILE_TEST) && STMMAC_ETH && PCI
269296
depends on COMMON_CLK
270297
help
271298
This selects the LOONGSON PCI bus support for the stmmac driver,

drivers/net/ethernet/stmicro/stmmac/Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ stmmac-objs:= stmmac_main.o stmmac_ethtool.o stmmac_mdio.o ring_mode.o \
66
mmc_core.o stmmac_hwtstamp.o stmmac_ptp.o dwmac4_descs.o \
77
dwmac4_dma.o dwmac4_lib.o dwmac4_core.o dwmac5.o hwif.o \
88
stmmac_tc.o dwxgmac2_core.o dwxgmac2_dma.o dwxgmac2_descs.o \
9-
stmmac_xdp.o \
9+
stmmac_xdp.o stmmac_est.o \
1010
$(stmmac-y)
1111

1212
stmmac-$(CONFIG_STMMAC_SELFTESTS) += stmmac_selftests.o
@@ -19,22 +19,24 @@ obj-$(CONFIG_DWMAC_IPQ806X) += dwmac-ipq806x.o
1919
obj-$(CONFIG_DWMAC_LPC18XX) += dwmac-lpc18xx.o
2020
obj-$(CONFIG_DWMAC_MEDIATEK) += dwmac-mediatek.o
2121
obj-$(CONFIG_DWMAC_MESON) += dwmac-meson.o dwmac-meson8b.o
22-
obj-$(CONFIG_DWMAC_OXNAS) += dwmac-oxnas.o
2322
obj-$(CONFIG_DWMAC_QCOM_ETHQOS) += dwmac-qcom-ethqos.o
2423
obj-$(CONFIG_DWMAC_ROCKCHIP) += dwmac-rk.o
24+
obj-$(CONFIG_DWMAC_RZN1) += dwmac-rzn1.o
2525
obj-$(CONFIG_DWMAC_SOCFPGA) += dwmac-altr-socfpga.o
26+
obj-$(CONFIG_DWMAC_STARFIVE) += dwmac-starfive.o
2627
obj-$(CONFIG_DWMAC_STI) += dwmac-sti.o
2728
obj-$(CONFIG_DWMAC_STM32) += dwmac-stm32.o
2829
obj-$(CONFIG_DWMAC_SUNXI) += dwmac-sunxi.o
2930
obj-$(CONFIG_DWMAC_SUN8I) += dwmac-sun8i.o
3031
obj-$(CONFIG_DWMAC_DWC_QOS_ETH) += dwmac-dwc-qos-eth.o
3132
obj-$(CONFIG_DWMAC_INTEL_PLAT) += dwmac-intel-plat.o
33+
obj-$(CONFIG_DWMAC_LOONGSON1) += dwmac-loongson1.o
3234
obj-$(CONFIG_DWMAC_GENERIC) += dwmac-generic.o
3335
obj-$(CONFIG_DWMAC_IMX8) += dwmac-imx.o
3436
obj-$(CONFIG_DWMAC_TEGRA) += dwmac-tegra.o
3537
obj-$(CONFIG_DWMAC_VISCONTI) += dwmac-visconti.o
3638
stmmac-platform-objs:= stmmac_platform.o
37-
dwmac-altr-socfpga-objs := altr_tse_pcs.o dwmac-socfpga.o
39+
dwmac-altr-socfpga-objs := dwmac-socfpga.o
3840

3941
obj-$(CONFIG_STMMAC_PCI) += stmmac-pci.o
4042
obj-$(CONFIG_DWMAC_INTEL) += dwmac-intel.o

0 commit comments

Comments
 (0)