]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: dwmac-stm32: Clean up the debug prints
authorMarek Vasut <marex@denx.de>
Tue, 11 Jun 2024 08:36:03 +0000 (10:36 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Fri, 14 Jun 2024 08:50:56 +0000 (10:50 +0200)
commitc60a54b52026bd2c9a88ae00f2aac7a67fed8e38
treecf7f592b63b7d6791c57521a41416e706b624e3b
parent92704f8c0e7a3868bf22a7d36ae205b880195e66
net: stmmac: dwmac-stm32: Clean up the debug prints

Use dev_err()/dev_dbg() and phy_modes() to print PHY mode instead of
pr_debug() and hand-written PHY mode decoding. This way, each debug
print has associated device with it and duplicated mode decoding is
removed.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Christophe Roullier <christophe.roullier@foss.st.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c