Commit c889475f authored by Kristian Høgsberg's avatar Kristian Høgsberg Committed by Stefan Richter

firewire: Read the *Clear versions of the iso interrupt register.

The *Clear registers returns the masked value when read which is
what we want.
Signed-off-by: default avatarKristian Høgsberg <krh@redhat.com>
Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent cbb59da7
...@@ -847,7 +847,7 @@ static irqreturn_t irq_handler(int irq, void *data) ...@@ -847,7 +847,7 @@ static irqreturn_t irq_handler(int irq, void *data)
if (event & OHCI1394_respTxComplete) if (event & OHCI1394_respTxComplete)
tasklet_schedule(&ohci->at_response_ctx.tasklet); tasklet_schedule(&ohci->at_response_ctx.tasklet);
iso_event = reg_read(ohci, OHCI1394_IsoRecvIntEventSet); iso_event = reg_read(ohci, OHCI1394_IsoRecvIntEventClear);
reg_write(ohci, OHCI1394_IsoRecvIntEventClear, iso_event); reg_write(ohci, OHCI1394_IsoRecvIntEventClear, iso_event);
while (iso_event) { while (iso_event) {
...@@ -856,7 +856,7 @@ static irqreturn_t irq_handler(int irq, void *data) ...@@ -856,7 +856,7 @@ static irqreturn_t irq_handler(int irq, void *data)
iso_event &= ~(1 << i); iso_event &= ~(1 << i);
} }
iso_event = reg_read(ohci, OHCI1394_IsoXmitIntEventSet); iso_event = reg_read(ohci, OHCI1394_IsoXmitIntEventClear);
reg_write(ohci, OHCI1394_IsoXmitIntEventClear, iso_event); reg_write(ohci, OHCI1394_IsoXmitIntEventClear, iso_event);
while (iso_event) { while (iso_event) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment