]> git.ipfire.org Git - thirdparty/linux.git/commit
net: stmmac: print stmmac_init_dma_engine() errors using netdev_err()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 20 Feb 2025 12:47:49 +0000 (12:47 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 22 Feb 2025 00:29:05 +0000 (16:29 -0800)
commit3e401818c81bb9f8438d1c2a803471f441981329
tree3aa89c4e03a6ad74d9947bed7a3091b25c16f7bb
parent465b210fdc653086fca34914c3a633efafb83e71
net: stmmac: print stmmac_init_dma_engine() errors using netdev_err()

stmmac_init_dma_engine() uses dev_err() which leads to errors being
reported as e.g:

dwc-eth-dwmac 2490000.ethernet: Failed to reset the dma
dwc-eth-dwmac 2490000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed

stmmac_init_dma_engine() is only called from stmmac_hw_setup() which
itself uses netdev_err(), and we will have a net_device setup. So,
change the dev_err() to netdev_err() to give consistent error
messages.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1tl5y1-004UgG-8X@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c