linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Patch: Fix SMP hang on modem close
@ 2002-04-05 20:20 roger blofeld
  2002-04-06 10:24 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 10+ messages in thread
From: roger blofeld @ 2002-04-05 20:20 UTC (permalink / raw)
  To: benh; +Cc: linuxppc-dev


Ben,
 This patch removes two dangling LOCK() statements for
core99/pangea. The core99 one hung my dual g4.
-roger

--- linux/arch/ppc/kernel/pmac_feature.c.orig   Tue
Apr  2 08:17:31 2002
+++ linux/arch/ppc/kernel/pmac_feature.c        Fri
Apr  5 14:02:13 2002
@@ -788,7 +788,7 @@
                UNLOCK(flags); mdelay(250);
LOCK(flags);
                MACIO_OUT8(KL_GPIO_MODEM_RESET, gpio |
KEYLARGO_GPIO_OUTOUT_DATA);
                (void)MACIO_IN8(KL_GPIO_MODEM_RESET);
-               UNLOCK(flags); mdelay(250);
LOCK(flags);
+               UNLOCK(flags); mdelay(250);
        }
        return 0;
 }
@@ -1445,7 +1445,7 @@
                UNLOCK(flags); mdelay(250);
LOCK(flags);
                MACIO_OUT8(KL_GPIO_MODEM_RESET, gpio |
KEYLARGO_GPIO_OUTOUT_DATA);
                (void)MACIO_IN8(KL_GPIO_MODEM_RESET);
-               UNLOCK(flags); mdelay(250);
LOCK(flags);
+               UNLOCK(flags); mdelay(250);
        }
        return 0;
 }


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2002-06-07  0:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-05 20:20 Patch: Fix SMP hang on modem close roger blofeld
2002-04-06 10:24 ` Benjamin Herrenschmidt
2002-06-06 19:25   ` Sungem bug or something else? roger blofeld
2002-06-06 19:30     ` Tom Rini
2002-06-06 19:45     ` Benjamin Herrenschmidt
2002-06-06 20:35       ` roger blofeld
2002-06-06 20:41       ` Kevin B. Hendricks
2002-06-06 20:25         ` benh
2002-06-06 21:02         ` roger blofeld
2002-06-07  0:51       ` roger blofeld

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).