mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* maestro3 patch, resent
@ 2001-02-07 15:06 Zach Brown
  2001-02-11 22:01 ` making forward at vger.rutgers.org? [was Re: maestro3 patch, resent] Pavel Machek
  0 siblings, 1 reply; 5+ messages in thread
From: Zach Brown @ 2001-02-07 15:06 UTC (permalink / raw)
  To: linux-kernel

duh.  I sent this to rutgers originally..

--- 

Date: Mon, 5 Feb 2001 07:42:25 -0500
From: Zach Brown <zab@zabbo.net>
To: linux-kernel@vger.rutgers.edu
Subject: [PATCH] maestro3 2.4.1-ac2 shutdown fix

Its a wonder that anyone lets me write code.

The following fixes a goofy shutdown problem with the 2.4 maestro3 driver
as it appears in Alan's 2.4.1-ac2 patch.   If power management was
disabled the maestro3 driver would oops trying to save the dsp state as
the machine shut down.  

The full source for the up to date 2.4 driver can be found at:

	http://www.zabbo.net/maestro3/maestro3-2.4-20010204.tar.gz

thanks again to Andres Salomon for continuing to report my dumb bugs.
Hopefully this will be the last of the trivial bugs, this driver needs
some real meaningful cleaning up..

-- 
 zach

--- maestro3.c	Mon Feb  5 06:51:58 2001
+++ maestro3.c	Mon Feb  5 07:40:53 2001
@@ -28,6 +28,8 @@
  * Shouts go out to Mike "DJ XPCom" Ang.
  *
  * History
+ *  v1.21 - Feb 04 2001 - Zach Brown <zab@zabbo.net>
+ *   fix up really dumb notifier -> suspend oops
  *  v1.20 - Jan 30 2001 - Zach Brown <zab@zabbo.net>
  *   get rid of pm callback and use pci_dev suspend/resume instead
  *   m3_probe cleanups, including pm oops think-o
@@ -147,7 +149,7 @@
 
 #define M_DEBUG 1
 
-#define DRIVER_VERSION      "1.20"
+#define DRIVER_VERSION      "1.21"
 #define M3_MODULE_NAME      "maestro3"
 #define PFX                 M3_MODULE_NAME ": "
 
@@ -2763,7 +2765,6 @@
 static void m3_suspend(struct pci_dev *pci_dev)
 {
     unsigned long flags;
-    int index;
     int i;
     struct m3_card *card = pci_dev->driver_data;
 
@@ -2788,15 +2789,18 @@
 
     m3_assp_halt(card);
 
-    index = 0;
-    DPRINTK(DPMOD, "saving code\n");
-    for(i = REV_B_CODE_MEMORY_BEGIN ; i <= REV_B_CODE_MEMORY_END; i++)
-        card->suspend_mem[index++] = 
-            m3_assp_read(card, MEMTYPE_INTERNAL_CODE, i);
-    DPRINTK(DPMOD, "saving data\n");
-    for(i = REV_B_DATA_MEMORY_BEGIN ; i <= REV_B_DATA_MEMORY_END; i++)
-        card->suspend_mem[index++] = 
-            m3_assp_read(card, MEMTYPE_INTERNAL_DATA, i);
+    if(card->suspend_mem) {
+        int index = 0;
+
+        DPRINTK(DPMOD, "saving code\n");
+        for(i = REV_B_CODE_MEMORY_BEGIN ; i <= REV_B_CODE_MEMORY_END; i++)
+            card->suspend_mem[index++] = 
+                m3_assp_read(card, MEMTYPE_INTERNAL_CODE, i);
+        DPRINTK(DPMOD, "saving data\n");
+        for(i = REV_B_DATA_MEMORY_BEGIN ; i <= REV_B_DATA_MEMORY_END; i++)
+            card->suspend_mem[index++] = 
+                m3_assp_read(card, MEMTYPE_INTERNAL_DATA, i);
+    }
 
     DPRINTK(DPMOD, "powering down apci regs\n");
     m3_outw(card, 0xffff, 0x54);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* making forward at vger.rutgers.org? [was Re: maestro3 patch, resent]
  2001-02-07 15:06 maestro3 patch, resent Zach Brown
@ 2001-02-11 22:01 ` Pavel Machek
  2001-02-12 10:28   ` Tobias Ringstrom
                     ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Pavel Machek @ 2001-02-11 22:01 UTC (permalink / raw)
  To: Zach Brown, linux-kernel; +Cc: davem

Hi!

> duh.  I sent this to rutgers originally..

I'm doing same mistake over and over.

Perhaps creating forward at vger.rutgers.edu would be good thing (tm)?

								Pavel

> --- 
> 
> Date: Mon, 5 Feb 2001 07:42:25 -0500
> From: Zach Brown <zab@zabbo.net>
> To: linux-kernel@vger.rutgers.edu
> Subject: [PATCH] maestro3 2.4.1-ac2 shutdown fix
> 
> Its a wonder that anyone lets me write code.
> 
> The following fixes a goofy shutdown problem with the 2.4 maestro3 driver
> as it appears in Alan's 2.4.1-ac2 patch.   If power management was
> disabled the maestro3 driver would oops trying to save the dsp state as
> the machine shut down.  
> 
> The full source for the up to date 2.4 driver can be found at:
> 
> 	http://www.zabbo.net/maestro3/maestro3-2.4-20010204.tar.gz
> 
> thanks again to Andres Salomon for continuing to report my dumb bugs.
> Hopefully this will be the last of the trivial bugs, this driver needs
> some real meaningful cleaning up..
> 

-- 
I'm pavel@ucw.cz. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at discuss@linmodems.org
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: making forward at vger.rutgers.org? [was Re: maestro3 patch, resent]
  2001-02-11 22:01 ` making forward at vger.rutgers.org? [was Re: maestro3 patch, resent] Pavel Machek
@ 2001-02-12 10:28   ` Tobias Ringstrom
  2001-02-12 10:37   ` Matti Aarnio
  2001-02-12 12:16   ` James Sutherland
  2 siblings, 0 replies; 5+ messages in thread
From: Tobias Ringstrom @ 2001-02-12 10:28 UTC (permalink / raw)
  To: Pavel Machek; +Cc: Zach Brown, linux-kernel, davem

On Sun, 11 Feb 2001, Pavel Machek wrote:

> Hi!
>
> > duh.  I sent this to rutgers originally..
>
> I'm doing same mistake over and over.
>
> Perhaps creating forward at vger.rutgers.edu would be good thing (tm)?

Then how would you ever learn?  ;-)

/Tobias

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: making forward at vger.rutgers.org? [was Re: maestro3 patch, resent]
  2001-02-11 22:01 ` making forward at vger.rutgers.org? [was Re: maestro3 patch, resent] Pavel Machek
  2001-02-12 10:28   ` Tobias Ringstrom
@ 2001-02-12 10:37   ` Matti Aarnio
  2001-02-12 12:16   ` James Sutherland
  2 siblings, 0 replies; 5+ messages in thread
From: Matti Aarnio @ 2001-02-12 10:37 UTC (permalink / raw)
  To: Pavel Machek; +Cc: Zach Brown, linux-kernel, davem

On Sun, Feb 11, 2001 at 11:01:13PM +0100, Pavel Machek wrote:
> Hi!
> > duh.  I sent this to rutgers originally..
> I'm doing same mistake over and over.
> Perhaps creating forward at vger.rutgers.edu would be good thing (tm)?

  No, won't happen.   All parties (linux-list runners and Rutgers) agree
  that clean cutoff is better than infinite badly maintained forwarding.

> 								Pavel

/Matti Aarnio  <matti.aarnio@vger.kernel.org>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

* Re: making forward at vger.rutgers.org? [was Re: maestro3 patch, resent]
  2001-02-11 22:01 ` making forward at vger.rutgers.org? [was Re: maestro3 patch, resent] Pavel Machek
  2001-02-12 10:28   ` Tobias Ringstrom
  2001-02-12 10:37   ` Matti Aarnio
@ 2001-02-12 12:16   ` James Sutherland
  2 siblings, 0 replies; 5+ messages in thread
From: James Sutherland @ 2001-02-12 12:16 UTC (permalink / raw)
  To: Pavel Machek; +Cc: Zach Brown, linux-kernel, davem

On Sun, 11 Feb 2001, Pavel Machek wrote:

> Hi!
> 
> > duh.  I sent this to rutgers originally..
> 
> I'm doing same mistake over and over.
> 
> Perhaps creating forward at vger.rutgers.edu would be good thing (tm)?

Apparently the rutgers.edu people didn't like this idea...

If they'd been feeling that helpful, they could have made the MX for
vger.rutgers.edu point to the new server and made the transition
transparent. It seems they weren't - no idea why, though.


James.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

end of thread, other threads:[~2001-02-12 12:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-07 15:06 maestro3 patch, resent Zach Brown
2001-02-11 22:01 ` making forward at vger.rutgers.org? [was Re: maestro3 patch, resent] Pavel Machek
2001-02-12 10:28   ` Tobias Ringstrom
2001-02-12 10:37   ` Matti Aarnio
2001-02-12 12:16   ` James Sutherland

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

all inboxes | Powered by JetHome®