IB/ipath: Fix IB_EVENT_PORT_ERR event
authorRalph Campbell <ralph.campbell@qlogic.com>
Wed, 19 Sep 2007 23:47:31 +0000 (16:47 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 10 Oct 2007 04:01:38 +0000 (21:01 -0700)
commit49739b3e24a10d819d3167a1c5b319d0b1186245
tree487d4df80efa73d31ab414564021503d289b6b3f
parent6a733cdc71b7aa8107caa57f2a16629aa731242a
IB/ipath: Fix IB_EVENT_PORT_ERR event

The link state event calls were being generated when the SM told the SMA
to change link states. This works for IB_EVENT_PORT_ACTIVE but not if
the link goes down and stays down. The fix is to generate event calls
from the interrupt handler when the HW link state changes.

Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_driver.c
drivers/infiniband/hw/ipath/ipath_intr.c
drivers/infiniband/hw/ipath/ipath_kernel.h
drivers/infiniband/hw/ipath/ipath_mad.c
drivers/infiniband/hw/ipath/ipath_verbs.c