kernel_samsung_a53x/drivers/net/ethernet/stmicro/stmmac
Rasmus Villemoes 7397642bd0 net: stmmac: use dev_err_probe() for reporting mdio bus registration failure
[ Upstream commit 839612d23ffd933174db911ce56dc3f3ca883ec5 ]

I have a board where these two lines are always printed during boot:

   imx-dwmac 30bf0000.ethernet: Cannot register the MDIO bus
   imx-dwmac 30bf0000.ethernet: stmmac_dvr_probe: MDIO bus (id: 1) registration failed

It's perfectly fine, and the device is successfully (and silently, as
far as the console goes) probed later.

Use dev_err_probe() instead, which will demote these messages to debug
level (thus removing the alarming messages from the console) when the
error is -EPROBE_DEFER, and also has the advantage of including the
error code if/when it happens to be something other than -EPROBE_DEFER.

While here, add the missing \n to one of the format strings.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Link: https://lore.kernel.org/r/20220602074840.1143360-1-linux@rasmusvillemoes.dk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: e23c0d21ce92 ("net: stmmac: Handle disabled MDIO busses from devicetree")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:11:49 +01:00
..
altr_tse_pcs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
altr_tse_pcs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
chain_mode.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
descs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
descs_com.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac-anarion.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-dwc-qos-eth.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-generic.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-imx.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-intel-plat.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-intel.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac-intel.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac-ipq806x.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-lpc18xx.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-mediatek.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-meson.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-meson8b.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-oxnas.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-qcom-ethqos.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-rk.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-socfpga.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-sti.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-stm32.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-sun8i.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac-sunxi.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
dwmac4.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac4_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac4_descs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac4_descs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac4_dma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac4_dma.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac4_lib.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac5.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac5.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac100.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac100_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac100_dma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac1000.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac1000_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac1000_dma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac_dma.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwmac_lib.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwxgmac2.h net: stmmac: xgmac: Enable support for multiple Flexible PPS outputs 2024-11-18 11:43:08 +01:00
dwxgmac2_core.c net: stmmac: xgmac: Enable support for multiple Flexible PPS outputs 2024-11-18 11:43:08 +01:00
dwxgmac2_descs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwxgmac2_dma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwxlgmac2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
enh_desc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hwif.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hwif.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmc_core.c net: stmmac: xgmac: Disable FPE MMC interrupts 2024-11-18 12:11:11 +01:00
norm_desc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ring_mode.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stmmac.h Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
stmmac_ethtool.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stmmac_hwtstamp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stmmac_main.c net: stmmac: use dev_err_probe() for reporting mdio bus registration failure 2024-11-18 12:11:49 +01:00
stmmac_mdio.c net: stmmac: use dev_err_probe() for reporting mdio bus registration failure 2024-11-18 12:11:49 +01:00
stmmac_pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stmmac_pcs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stmmac_platform.c Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
stmmac_platform.h Backport mac80211 patches from linux-6.1.y 2024-06-15 16:29:20 -03:00
stmmac_ptp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stmmac_ptp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stmmac_selftests.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stmmac_tc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00