Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235129
b: refs/heads/master
c: 767fbe8
h: refs/heads/master
i:
  235127: 1cd4a19
v: v3
  • Loading branch information
Steve Wise authored and Roland Dreier committed Mar 14, 2011
1 parent c04aa67 commit 57a20c7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b48f3b9c10d731160f0af5c3028ad57d9c66673b
refs/heads/master: 767fbe8151d1a7cc8a69e52e354e4220a5e804fb
10 changes: 9 additions & 1 deletion trunk/drivers/infiniband/hw/cxgb4/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,16 @@ static int c4iw_uld_state_change(void *handle, enum cxgb4_state new_state)
case CXGB4_STATE_START_RECOVERY:
printk(KERN_INFO MOD "%s: Fatal Error\n",
pci_name(dev->rdev.lldi.pdev));
if (dev->registered)
dev->rdev.flags |= T4_FATAL_ERROR;
if (dev->registered) {
struct ib_event event;

memset(&event, 0, sizeof event);
event.event = IB_EVENT_DEVICE_FATAL;
event.device = &dev->ibdev;
ib_dispatch_event(&event);
c4iw_unregister_device(dev);
}
break;
case CXGB4_STATE_DETACH:
printk(KERN_INFO MOD "%s: Detach\n",
Expand Down

0 comments on commit 57a20c7

Please sign in to comment.