archive mirror
 help / color / mirror / Atom feed
From: Geert Uytterhoeven <>
To: Linus Torvalds <>, Andrew Morton <>
Cc: Linux Kernel Development <>,
	Geert Uytterhoeven <>
Subject: [PATCH 299] Q40/Q60 interrupts
Date: Sun, 28 Sep 2003 14:55:18 +0200	[thread overview]
Message-ID: <200309281255.h8SCtIX6005474@callisto.of.borg> (raw)

Q40/Q60: Must handle keyboard interrupts even before they are registered (from
Richard Zidlicky)

--- linux-2.6.0-test6/arch/m68k/q40/q40ints.c	Tue Jul 29 18:18:35 2003
+++ linux-m68k-2.6.0-test6/arch/m68k/q40/q40ints.c	Mon Sep  1 13:50:04 2003
@@ -378,7 +378,7 @@
 				  /*printk("reenabling irq %d\n",irq); */
-// used to do 'goto repeat;' her, this delayed bh processing too long
+// used to do 'goto repeat;' here, this delayed bh processing too long
 			  return IRQ_HANDLED;
@@ -387,6 +387,7 @@
+  /* should test whether keyboard irq is really enabled, doing it in defhand */
   if (mir&Q40_IRQ_KEYB_MASK) {
@@ -413,7 +414,9 @@
 static irqreturn_t q40_defhand (int irq, void *dev_id, struct pt_regs *fp)
-	printk ("Unknown q40 interrupt 0x%02x\n", irq);
+        if (irq!=Q40_IRQ_KEYBOARD)
+	     printk ("Unknown q40 interrupt %d\n", irq);
+	else master_outb(-1,KEYBOARD_UNLOCK_REG);
 	return IRQ_NONE;
 static irqreturn_t sys_default_handler(int lev, void *dev_id, struct pt_regs *regs)



Geert Uytterhoeven -- There's lots of Linux beyond ia32 --

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

                 reply	other threads:[~2003-09-28 13:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200309281255.h8SCtIX6005474@callisto.of.borg \ \ \ \ \
    --subject='Re: [PATCH 299] Q40/Q60 interrupts' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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