All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] net: e100: replace silent 'hope for the best' with debug message
@ 2026-05-21  6:10 ` Ashwin Gundarapu via Intel-wired-lan
  0 siblings, 0 replies; 16+ messages in thread
From: Ashwin Gundarapu @ 2026-05-21  6:10 UTC (permalink / raw)
  To: anthony.l.nguyen@intel.com, andrewnetdev, davem, edumazet, kuba,
	pabeni
  Cc: intel-wired-lan, netdev, linux-kernel

From: Ashwin Gundarapu <linuxuser509@zohomail.in>
Date: Sun, 10 May 2026 15:09:12 +0530
Subject: [PATCH] net: e100: replace silent 'hope for the best' with debug
 message

Replace a silent return with a debug message when no MII PHY is
detected on known variants. This gives users visibility into the
failure instead of silently hoping for the best.

Found by checkpatch.pl inspection.

Signed-off-by: Ashwin Gundarapu <linuxuser509@zohomail.in>
---
 drivers/net/ethernet/intel/e100.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/intel/e100.c b/drivers/net/ethernet/intel/e100.c
index 9074b558de35..bfacf877ca40 100644
--- a/drivers/net/ethernet/intel/e100.c
+++ b/drivers/net/ethernet/intel/e100.c
@@ -1450,7 +1450,9 @@ static int e100_phy_init(struct nic *nic)
 		 * But do this AFTER MII checking only, since this does
 		 * lookup of EEPROM values which may easily be unreliable. */
 		if (e100_phy_check_without_mii(nic))
-			return 0; /* simply return and hope for the best */
+                        netif_dbg(nic, probe, nic->netdev,
+                                  "No MII PHY detected, continuing anyway\n");
+                        return 0;
 		else {
 			/* for unknown cases log a fatal error */
 			netif_err(nic, hw, nic->netdev,
-- 
2.43.0

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2026-05-22 21:52 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-21  6:10 [PATCH net-next] net: e100: replace silent 'hope for the best' with debug message Ashwin Gundarapu
2026-05-21  6:10 ` [Intel-wired-lan] " Ashwin Gundarapu via Intel-wired-lan
2026-05-21 12:07 ` kernel test robot
2026-05-21 12:07   ` [Intel-wired-lan] " kernel test robot
2026-05-21 12:24 ` Andrew Lunn
2026-05-21 12:24   ` Andrew Lunn
2026-05-21 12:28 ` Maxime Chevallier
2026-05-21 12:28   ` [Intel-wired-lan] " Maxime Chevallier via Intel-wired-lan
2026-05-21 13:16 ` kernel test robot
2026-05-21 13:16   ` [Intel-wired-lan] " kernel test robot
2026-05-22  7:09 ` kernel test robot
2026-05-22  7:09   ` [Intel-wired-lan] " kernel test robot
2026-05-22  7:48 ` Loktionov, Aleksandr
2026-05-22  7:48   ` Loktionov, Aleksandr
2026-05-22 21:52 ` kernel test robot
2026-05-22 21:52   ` [Intel-wired-lan] " kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.