Skip to content

Commit

Permalink
[IA64] altix: misc pci interrupt related fixes
Browse files Browse the repository at this point in the history
Fix a couple of altix interrupt related bugs.

Signed-off-by: Mark Maule <maule@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
  • Loading branch information
Mark Maule authored and Tony Luck committed Nov 8, 2005
1 parent cbb9214 commit 6fb93a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions arch/ia64/sn/pci/pcibr/pcibr_provider.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,13 @@ void pcibr_target_interrupt(struct sn_irq_info *sn_irq_info)
pdi_pcibus_info;

/* Disable the device's IRQ */
pcireg_intr_enable_bit_clr(pcibus_info, bit);
pcireg_intr_enable_bit_clr(pcibus_info, (1 << bit));

/* Change the device's IRQ */
pcireg_intr_addr_addr_set(pcibus_info, bit, xtalk_addr);

/* Re-enable the device's IRQ */
pcireg_intr_enable_bit_set(pcibus_info, bit);
pcireg_intr_enable_bit_set(pcibus_info, (1 << bit));

pcibr_force_interrupt(sn_irq_info);
}
Expand Down
2 changes: 1 addition & 1 deletion arch/ia64/sn/pci/pcibr/pcibr_reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ void pcireg_intr_enable_bit_clr(struct pcibus_info *pcibus_info, uint64_t bits)
__sn_clrq_relaxed(&ptr->tio.cp_int_enable, bits);
break;
case PCIBR_BRIDGETYPE_PIC:
__sn_clrq_relaxed(&ptr->pic.p_int_enable, ~bits);
__sn_clrq_relaxed(&ptr->pic.p_int_enable, bits);
break;
default:
panic
Expand Down

0 comments on commit 6fb93a9

Please sign in to comment.