]> git.ipfire.org Git - thirdparty/linux.git/commit
net: lan743x: avoid netdev-based logging before netdev registration
authorDavid Thompson <davthompson@nvidia.com>
Thu, 28 May 2026 16:50:17 +0000 (16:50 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 2 Jun 2026 02:52:24 +0000 (19:52 -0700)
commite3c6508a46f56ece0c1550a4fdf1e005afe3d563
treeaf0830b566c247b46cffadee526a36593cf59c86
parent9c89f975e66922f346d92d60c9d51d07274a7f3b
net: lan743x: avoid netdev-based logging before netdev registration

This patch updates the lan743x driver to prevent the use of netdev-based
logging APIs (such as netdev_dbg) before the network device has been
successfully registered. Using netdev-based logging prior to registration
results in log messages referencing "(unnamed net_device) (uninitialized)",
which can be confusing and less informative.

The driver must use netif_msg_ APIs and device-based logging (e.g. dev_dbg)
until netdev registration is complete. This ensures log entries are
associated with the correct device context and improves log clarity. After
registration, netdev-based logging APIs can be used safely.

Signed-off-by: David Thompson <davthompson@nvidia.com>
Link: https://patch.msgid.link/20260528165017.421576-1-davthompson@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/lan743x_main.c