mirror_ubuntu-kernels/drivers/net/ethernet/stmicro/stmmac
Russell King (Oracle) b5947239bf net: stmmac: failure to probe without MAC interface specified
Alexander Stein reports that commit a014c35556 ("net: stmmac: clarify
difference between "interface" and "phy_interface"") caused breakage,
because plat->mac_interface will never be negative. Fix this by using
the "rc" temporary variable in stmmac_probe_config_dt().

Reported-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tested-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Link: https://lore.kernel.org/r/E1qayn0-006Q8J-GE@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-08-30 18:32:19 -07:00
..
chain_mode.c net: stmmac: Remove some unnecessary void pointers 2023-04-13 12:50:46 +02:00
common.h net: stmmac: Check more MAC HW features for XGMAC Core 3.20 2023-08-20 18:19:20 +01:00
descs_com.h
descs.h
dwmac4_core.c net: stmmac: move gmac4 specific phylink capabilities to gmac4 2023-08-25 18:55:19 -07:00
dwmac4_descs.c net: stmmac: use per-queue 64 bit statistics where necessary 2023-07-19 20:51:10 -07:00
dwmac4_descs.h
dwmac4_dma.c net: stmmac: dwmac4: Allow platforms to specify some DMA/MTL offsets 2023-04-13 12:50:46 +02:00
dwmac4_dma.h net: stmmac: dwmac4: Allow platforms to specify some DMA/MTL offsets 2023-04-13 12:50:46 +02:00
dwmac4_lib.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-07-27 15:22:46 -07:00
dwmac4.h net: stmmac: Initialize MAC_ONEUS_TIC_COUNTER register 2023-05-09 19:42:59 -07:00
dwmac5.c net: stmmac: fix order of dwmac5 FlexPPS parametrization sequence 2023-02-13 20:04:43 -08:00
dwmac5.h
dwmac100_core.c net: stmmac: Disable automatic FCS/Pad stripping 2022-09-08 10:12:20 +02:00
dwmac100_dma.c net: stmmac: use per-queue 64 bit statistics where necessary 2023-07-19 20:51:10 -07:00
dwmac100.h net: stmmac: Disable automatic FCS/Pad stripping 2022-09-08 10:12:20 +02:00
dwmac1000_core.c net: stmmac: Pass stmmac_priv in some callbacks 2023-04-13 12:50:46 +02:00
dwmac1000_dma.c net: stmmac: Pass stmmac_priv in some callbacks 2023-04-13 12:50:46 +02:00
dwmac1000.h net: stmmac: Disable automatic FCS/Pad stripping 2022-09-08 10:12:20 +02:00
dwmac_dma.h net: stmmac: Pass stmmac_priv in some callbacks 2023-04-13 12:50:46 +02:00
dwmac_lib.c net: stmmac: use per-queue 64 bit statistics where necessary 2023-07-19 20:51:10 -07:00
dwmac-anarion.c net: stmmac: Make stmmac_pltfr_remove() return void 2023-05-09 19:56:31 -07:00
dwmac-dwc-qos-eth.c net: stmmac: add new mode parameter for fix_mac_speed 2023-08-10 17:26:06 -07:00
dwmac-generic.c net: stmmac: dwmac-generic: use stmmac_pltfr_probe() 2023-06-24 15:35:59 -07:00
dwmac-imx.c net: stmmac: clarify difference between "interface" and "phy_interface" 2023-08-28 12:55:04 -07:00
dwmac-ingenic.c net: stmmac: clarify difference between "interface" and "phy_interface" 2023-08-28 12:55:04 -07:00
dwmac-intel-plat.c net: stmmac: add new mode parameter for fix_mac_speed 2023-08-10 17:26:06 -07:00
dwmac-intel.c stmmac: intel: Enable correction of MAC propagation delay 2023-08-19 19:23:07 +01:00
dwmac-intel.h
dwmac-ipq806x.c net: stmmac: add new mode parameter for fix_mac_speed 2023-08-10 17:26:06 -07:00
dwmac-loongson.c net: stmmac: clarify difference between "interface" and "phy_interface" 2023-08-28 12:55:04 -07:00
dwmac-lpc18xx.c net: stmmac: clarify difference between "interface" and "phy_interface" 2023-08-28 12:55:04 -07:00
dwmac-mediatek.c net: stmmac: clarify difference between "interface" and "phy_interface" 2023-08-28 12:55:04 -07:00
dwmac-meson8b.c net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00
dwmac-meson.c net: stmmac: add new mode parameter for fix_mac_speed 2023-08-10 17:26:06 -07:00
dwmac-qcom-ethqos.c net: stmmac: add new mode parameter for fix_mac_speed 2023-08-10 17:26:06 -07:00
dwmac-rk.c net: stmmac: add new mode parameter for fix_mac_speed 2023-08-10 17:26:06 -07:00
dwmac-socfpga.c net: stmmac: clarify difference between "interface" and "phy_interface" 2023-08-28 12:55:04 -07:00
dwmac-starfive.c net: stmmac: clarify difference between "interface" and "phy_interface" 2023-08-28 12:55:04 -07:00
dwmac-sti.c net: stmmac: add new mode parameter for fix_mac_speed 2023-08-10 17:26:06 -07:00
dwmac-stm32.c net: stmmac: clarify difference between "interface" and "phy_interface" 2023-08-28 12:55:04 -07:00
dwmac-sun8i.c net: stmmac: clarify difference between "interface" and "phy_interface" 2023-08-28 12:55:04 -07:00
dwmac-sunxi.c net: stmmac: add new mode parameter for fix_mac_speed 2023-08-10 17:26:06 -07:00
dwmac-tegra.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-08-03 14:34:37 -07:00
dwmac-visconti.c net: stmmac: add new mode parameter for fix_mac_speed 2023-08-10 17:26:06 -07:00
dwxgmac2_core.c net: stmmac: move xgmac specific phylink caps to dwxgmac2 core 2023-08-25 18:55:19 -07:00
dwxgmac2_descs.c net: stmmac: use per-queue 64 bit statistics where necessary 2023-07-19 20:51:10 -07:00
dwxgmac2_dma.c net: stmmac: Check more MAC HW features for XGMAC Core 3.20 2023-08-20 18:19:20 +01:00
dwxgmac2.h net: stmmac: Check more MAC HW features for XGMAC Core 3.20 2023-08-20 18:19:20 +01:00
dwxlgmac2.h
enh_desc.c net: stmmac: use per-queue 64 bit statistics where necessary 2023-07-19 20:51:10 -07:00
hwif.c net: stmmac: add support for platform specific reset 2023-04-05 19:01:22 -07:00
hwif.h net: stmmac: provide stmmac_mac_phylink_get_caps() 2023-08-25 18:55:19 -07:00
Kconfig net: stmmac: dwmac-oxnas: remove obsolete dwmac glue driver 2023-08-02 10:01:05 +01:00
Makefile net: stmmac: dwmac-oxnas: remove obsolete dwmac glue driver 2023-08-02 10:01:05 +01:00
mmc_core.c
mmc.h
norm_desc.c net: stmmac: use per-queue 64 bit statistics where necessary 2023-07-19 20:51:10 -07:00
ring_mode.c net: stmmac: Remove some unnecessary void pointers 2023-04-13 12:50:46 +02:00
stmmac_ethtool.c net: stmmac: use per-queue 64 bit statistics where necessary 2023-07-19 20:51:10 -07:00
stmmac_hwtstamp.c net: stmmac: correct MAC propagation delay 2023-08-07 12:17:13 -07:00
stmmac_main.c net: stmmac: clarify difference between "interface" and "phy_interface" 2023-08-28 12:55:04 -07:00
stmmac_mdio.c net: stmmac: convert plat->phylink_node to fwnode 2023-08-25 18:55:18 -07:00
stmmac_pci.c net: stmmac: replace the tso_en field with a flag 2023-07-13 20:57:14 -07:00
stmmac_pcs.h
stmmac_platform.c net: stmmac: failure to probe without MAC interface specified 2023-08-30 18:32:19 -07:00
stmmac_platform.h net: stmmac: platform: provide devm_stmmac_pltfr_probe() 2023-06-24 15:36:00 -07:00
stmmac_ptp.c net: stmmac: replace the ext_snapshot_en field with a flag 2023-07-13 20:57:14 -07:00
stmmac_ptp.h net: stmmac: correct MAC propagation delay 2023-08-07 12:17:13 -07:00
stmmac_selftests.c net: flow_dissector: Use 64bits for used_keys 2023-07-31 09:11:24 +01:00
stmmac_tc.c net/sched: taprio: replace tc_taprio_qopt_offload :: enable with a "cmd" enum 2023-05-31 10:00:30 +01:00
stmmac_xdp.c net: stmmac: fix call trace when stmmac_xdp_xmit() is invoked 2023-05-25 21:01:35 -07:00
stmmac_xdp.h
stmmac.h page_pool: split types and declarations from page_pool.h 2023-08-07 13:05:19 -07:00