Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34311
b: refs/heads/master
c: e35d710
h: refs/heads/master
i:
  34309: e45b3e4
  34307: 0d5a23b
  34303: 07eaf9d
v: v3
  • Loading branch information
Bryan O'Sullivan authored and Roland Dreier committed Sep 22, 2006
1 parent 2e5e473 commit 68a8d9f
Show file tree
Hide file tree
Showing 2 changed files with 6 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: d821f02a6ebed97e35e0bc7575452cfc6f9073cb
refs/heads/master: e35d710d0c5b74bc9833d6a3791706bd577a3724
6 changes: 5 additions & 1 deletion trunk/drivers/infiniband/hw/ipath/ipath_file_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -1150,6 +1150,7 @@ static unsigned int ipath_poll(struct file *fp,
struct ipath_portdata *pd;
u32 head, tail;
int bit;
unsigned pollflag = 0;
struct ipath_devdata *dd;

pd = port_fp(fp);
Expand Down Expand Up @@ -1186,17 +1187,20 @@ static unsigned int ipath_poll(struct file *fp,
clear_bit(IPATH_PORT_WAITING_RCV, &pd->port_flag);
pd->port_rcvwait_to++;
}
else
pollflag = POLLIN | POLLRDNORM;
}
else {
/* it's already happened; don't do wait_event overhead */
pollflag = POLLIN | POLLRDNORM;
pd->port_rcvnowait++;
}

clear_bit(bit, &dd->ipath_rcvctrl);
ipath_write_kreg(dd, dd->ipath_kregs->kr_rcvctrl,
dd->ipath_rcvctrl);

return 0;
return pollflag;
}

static int try_alloc_port(struct ipath_devdata *dd, int port,
Expand Down

0 comments on commit 68a8d9f

Please sign in to comment.