Skip to contentSkip to conversation

bt87x interrupt disable fix

PATCH In review CV-jjhuang 2 participants 2 messages Sep 18, 2006 – Sep 19, 2006

lore
Share & tools
lore

CV-jjhuang

author
#0 lore raw

PATCH 1/1 bt87x interrupt disable fix

In my experiment, sometimes, the bt878 will not send interrupt to interrupt controller after something happened. (It appeared easily when bt878 shared IRQ with many other drivers)

I found there is something error in the interrupt handler of alsa-bt87x.
so, I wrote an patch for it.
(Ref : In the Bt878/879 document, section of interrupt status register says that " To clear the interrupts, read this register, then write the same data back.")

jjhuang

alsa-kernel/pci/bt87x.c 2006-09-18 17:44:43.000000000 +0800 renamed from alsa-kernel/pci/bt87x.c 2006-03-13 18:36:44.000000000 +0800 +4 -1
@@ -277,7 +277,10 @@
  status = snd_bt87x_readl(chip, REG_INT_STAT);
  irq_status = status & chip->interrupt_mask;
  if (!irq_status)
-  return IRQ_NONE;
+          {
+            snd_bt87x_writel (chip, REG_INT_STAT, status);
+            return IRQ_NONE;
+          }
  snd_bt87x_writel(chip, REG_INT_STAT, irq_status);
 
  if (irq_status & ERROR_INTERRUPTS) {

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#1 lore raw

At Mon, 18 Sep 2006 18:33:57 +0800,

Quoted 10 lines · CV-jjhuang

In my experiment, sometimes, the bt878 will not send interrupt to interrupt controller after something happened.
(It appeared easily when bt878 shared IRQ with many other drivers)

I found there is something error in the interrupt handler of alsa-bt87x. so, I wrote an patch for it.
(Ref : In the Bt878/879 document, section of interrupt status register says that " To clear the interrupts, read this register, then write the same data back.")

Hm, this shouldn't be needed since chip->interrupt_mask holds the bits in real interest. I guess it's harmless to ack there, but it's no real solution.

Takashi

Quoted 10 lines

jjhuang

alsa-kernel/pci/bt87x.c 2006-09-18 17:44:43.000000000 renamed from alsa-kernel/pci/bt87x.c 2006-03-13 18:36:44.000000000 +0800 +1 -0
+0800
@@ -277,7 +277,10 @@
  status = snd_bt87x_readl(chip, REG_INT_STAT);

alsa-kernel/pci/bt87x.c 2006-09-18 17:44:43.000000000 line 286

Quoted 10 lines
alsa-kernel/pci/bt87x.c 2006-09-18 17:44:43.000000000 renamed from alsa-kernel/pci/bt87x.c 2006-03-13 18:36:44.000000000 +0800 +4 -1
  irq_status = status & chip->interrupt_mask;
  if (!irq_status)
-  return IRQ_NONE;
+          {
+            snd_bt87x_writel (chip, REG_INT_STAT, status);
+            return IRQ_NONE;
+          }
  snd_bt87x_writel(chip, REG_INT_STAT, irq_status);
 
  if (irq_status & ERROR_INTERRUPTS) {

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV