public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] aha152x fix
@ 2002-07-16 21:10 Filip Van Raemdonck
  2002-07-16 23:00 ` Alan Cox
  0 siblings, 1 reply; 8+ messages in thread
From: Filip Van Raemdonck @ 2002-07-16 21:10 UTC (permalink / raw)
  To: linux-kernel; +Cc: fischer, marcelo

Hi,

I upgraded from 2.4.19-pre7 to -rc1 and this resulted in my aha152x card not
working anymore. (The error was "trying software interrupt, lost")

Below is a patch which makes it work again. Note that this is just reverting
a minimal part of the last applied patch to aha152x.c; so this may only be
fixing the symptom and not the problem.

Can somebody confirm if this is correct or not, and give some more insight
into this behaviour?


Regards,

Filip

--- aha152x.c.orig	Tue Jul 16 22:20:57 2002
+++ aha152x.c	Tue Jul 16 21:43:51 2002
@@ -1366,11 +1366,13 @@
 		}
 		HOSTDATA(shpnt)->swint = 0;
 
 		printk(KERN_INFO "aha152x%d: trying software interrupt, ", HOSTNO);
 		SETPORT(DMACNTRL0, SWINT|INTEN);
+		spin_unlock_irq (&io_request_lock);
 		mdelay(1000);
+		spin_lock_irq (&io_request_lock);
 		free_irq(shpnt->irq, shpnt);
 
 		if (!HOSTDATA(shpnt)->swint) {
 			if (TESTHI(DMASTAT, INTSTAT)) {
 				printk("lost.\n");

-- 
"Microsoft shouldn't be broken up.  It should be shut down."
	-- Phil Agre on the ILOVEYOU virus.

^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <20020718222805.GA16641@linux-buechse.de>]

end of thread, other threads:[~2002-07-19 17:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-16 21:10 [PATCH] aha152x fix Filip Van Raemdonck
2002-07-16 23:00 ` Alan Cox
2002-07-17  7:09   ` Filip Van Raemdonck
2002-07-17  8:02   ` Martin Diehl
2002-07-17 21:35     ` Filip Van Raemdonck
     [not found]       ` <20020718055204.GA10357@linux-buechse.de>
2002-07-18  7:42         ` Filip Van Raemdonck
2002-07-18 12:34         ` Martin Diehl
     [not found] <20020718222805.GA16641@linux-buechse.de>
2002-07-19 17:09 ` Martin Diehl

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