Netdev List
 help / color / mirror / Atom feed
* [PATCH] net: fealnx: remove never-true 486 CPU check
@ 2026-09-15  2:46 Ethan Nelson-Moore
  2026-09-15  3:36 ` Ethan Nelson-Moore
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Ethan Nelson-Moore @ 2026-09-15  2:46 UTC (permalink / raw)
  To: Jakub Kicinski, Uwe Kleine-König (The Capable Hub),
	Arend van Spriel, Johannes Berg, Michael Grzeschik, Denis Benato,
	netdev
  Cc: Ethan Nelson-Moore, Andrew Lunn, David S. Miller, Eric Dumazet,
	Paolo Abeni, Jijie Shao, Aleksandr Loktionov

The fealnx driver contains a check for boot_cpu_data.x86 <= 4.
This field encodes the x86 generation (3 = 386, 4 = 486, etc).
Therefore, since 486 support was removed from the kernel in commit
8b793a92d862 ("x86/cpu: Remove M486/M486SX/ELAN support"), the
condition is always true. Remove the check.

Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
---
 drivers/net/ethernet/fealnx.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/drivers/net/ethernet/fealnx.c b/drivers/net/ethernet/fealnx.c
index bdc38aac5850..708b61f21915 100644
--- a/drivers/net/ethernet/fealnx.c
+++ b/drivers/net/ethernet/fealnx.c
@@ -839,8 +839,7 @@ static int netdev_open(struct net_device *dev)
 
 	/* Initialize other registers. */
 	/* Configure the PCI bus bursts and FIFO thresholds.
-	   486: Set 8 longword burst.
-	   586: no burst limit.
+	   No burst limit.
 	   Burst length 5:3
 	   0 0 0   1
 	   0 0 1   4
@@ -858,13 +857,7 @@ static int netdev_open(struct net_device *dev)
 #ifdef __BIG_ENDIAN
 	np->bcrvalue |= 0x04;	/* big-endian */
 #endif
-
-#if defined(__i386__) && !defined(MODULE) && !defined(CONFIG_UML)
-	if (boot_cpu_data.x86 <= 4)
-		np->crvalue = 0xa00;
-	else
-#endif
-		np->crvalue = 0xe00;	/* rx 128 burst length */
+	np->crvalue = 0xe00;	/* rx 128 burst length */
 
 
 // 89/12/29 add,
-- 
2.43.0


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

end of thread, other threads:[~2026-09-17  2:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-15  2:46 [PATCH] net: fealnx: remove never-true 486 CPU check Ethan Nelson-Moore
2026-09-15  3:36 ` Ethan Nelson-Moore
2026-09-15 22:51   ` Jakub Kicinski
2026-09-15  5:42 ` Loktionov, Aleksandr
2026-09-16  5:48 ` netdev-bot+sashiko
2026-09-17  2:22   ` Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox