IB/ipath: Better handling of unexpected GPIO interrupts
authorMichael Albaugh <Michael.Albaugh@Qlogic.com>
Wed, 3 Oct 2007 17:47:38 +0000 (10:47 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 10 Oct 2007 04:00:47 +0000 (21:00 -0700)
commit6a733cdc71b7aa8107caa57f2a16629aa731242a
tree0e367cd9105c89e6f21baf91ba0c13dc5c6921a2
parent192594d5230f447ef2df8de9d7902ac90d11c118
IB/ipath: Better handling of unexpected GPIO interrupts

The General Purpose I/O pins can be configured to cause interrupts. At
the end of the interrupt code dealing with all known causes, a message
is output if any bits remain un-handled. Since this is a "can't happen"
scenario, it should only be triggered by bugs elsewhere. It is harmless,
and potentially beneficial, to limit the damage by masking any such
unexpected interrupts.

This patch adds disabling of interrupts from any pins that should
not have been allowed to interrupt, in addition to emitting a message.

Signed-off-by: Michael Albaugh <Michael.Albaugh@Qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_intr.c