aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb3/cxio_hal.c
diff options
context:
space:
mode:
authorDivy Le Ray <divy@chelsio.com>2009-01-26 22:22:19 -0800
committerDavid S. Miller <davem@davemloft.net>2009-01-26 22:22:19 -0800
commita73efd0a8552927ebe5dff84936f7fdac4f7e314 (patch)
treec43976f285ffd71cb927cbc5cea8b7156a1a231a /drivers/infiniband/hw/cxgb3/cxio_hal.c
parentcxgb3: Notify fatal errors (diff)
downloadlinux-dev-a73efd0a8552927ebe5dff84936f7fdac4f7e314.tar.xz
linux-dev-a73efd0a8552927ebe5dff84936f7fdac4f7e314.zip
iw_cxgb3: handle chip reset notifications
Freeze activity when notified that the underlying chip is getting reset on a EEH event or fatal error. Signed-off-by: Divy Le Ray <divy@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/infiniband/hw/cxgb3/cxio_hal.c')
-rw-r--r--drivers/infiniband/hw/cxgb3/cxio_hal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/cxgb3/cxio_hal.c b/drivers/infiniband/hw/cxgb3/cxio_hal.c
index 4dcf08b3fd83..11efd3528ce4 100644
--- a/drivers/infiniband/hw/cxgb3/cxio_hal.c
+++ b/drivers/infiniband/hw/cxgb3/cxio_hal.c
@@ -701,6 +701,9 @@ static int __cxio_tpt_op(struct cxio_rdev *rdev_p, u32 reset_tpt_entry,
u32 stag_idx;
u32 wptr;
+ if (rdev_p->flags)
+ return -EIO;
+
stag_state = stag_state > 0;
stag_idx = (*stag) >> 8;