public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.4.32] Fix AVM C4 ISDN card init problems with newer CPUs
@ 2006-08-03 16:53 Jukka Partanen
  2006-08-03 17:31 ` Karsten Keil
  2006-08-03 17:56 ` Alan Cox
  0 siblings, 2 replies; 9+ messages in thread
From: Jukka Partanen @ 2006-08-03 16:53 UTC (permalink / raw)
  To: kkeil; +Cc: linux-kernel

AVM C4 ISDN NIC: Add three memory barriers, taken from 2.6.7,
(they are there in 2.6.17.7 too), to fix module initialization
problems appearing with at least some newer Celerons and
Pentium III.

Signed-off-by: Jukka Partanen <jspartanen@gmail.com>

--- drivers/isdn/avmb1/c4.c.orig	2006-08-03 19:32:17.000000000 +0000
+++ drivers/isdn/avmb1/c4.c	2006-08-03 19:32:55.000000000 +0000
@@ -151,6 +151,7 @@
 	while (c4inmeml(card->mbase+DOORBELL) != 0xffffffff) {
 		if (!time_before(jiffies, stop))
 			return -1;
+		mb();
 	}
 	return 0;
 }
@@ -305,6 +306,7 @@
 		if (!time_before(jiffies, stop))
 			return;
 		c4outmeml(card->mbase+DOORBELL, DBELL_ADDR);
+		mb();
 	}

 	c4_poke(card, DC21285_ARMCSR_BASE + CHAN_1_CONTROL, 0);
@@ -328,6 +330,7 @@
 		if (!time_before(jiffies, stop))
 			return 2;
 		c4outmeml(card->mbase+DOORBELL, DBELL_ADDR);
+		mb();
 	}

 	c4_poke(card, DC21285_ARMCSR_BASE + CHAN_1_CONTROL, 0);

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

end of thread, other threads:[~2006-08-04 20:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-03 16:53 [PATCH 2.4.32] Fix AVM C4 ISDN card init problems with newer CPUs Jukka Partanen
2006-08-03 17:31 ` Karsten Keil
2006-08-04 10:00   ` Alan Cox
2006-08-03 17:56 ` Alan Cox
2006-08-04  5:08   ` Willy Tarreau
2006-08-04  6:56   ` Willy Tarreau
2006-08-04 10:39     ` Michael Buesch
2006-08-04 12:21       ` Willy Tarreau
2006-08-04 20:14       ` Willy Tarreau

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