Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130960
b: refs/heads/master
c: c073b2d
h: refs/heads/master
v: v3
  • Loading branch information
David Altobelli authored and Linus Torvalds committed Feb 5, 2009
1 parent 3981cd1 commit eb91819
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 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: 58763a297405024d23d8f1d0bba3e6603660c4b6
refs/heads/master: c073b2db006ba9370be1eecc36a1be1d9ce31310
6 changes: 3 additions & 3 deletions trunk/drivers/misc/hpilo.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ static void ilo_ccb_close(struct pci_dev *pdev, struct ccb_data *data)
&device_ccb->recv_ctrl);

/* give iLO some time to process stop request */
for (retries = 1000; retries > 0; retries--) {
for (retries = MAX_WAIT; retries > 0; retries--) {
doorbell_set(driver_ccb);
udelay(1);
if (!(ioread32(&device_ccb->send_ctrl) & (1 << CTRL_BITPOS_A))
Expand Down Expand Up @@ -309,7 +309,7 @@ static int ilo_ccb_open(struct ilo_hwinfo *hw, struct ccb_data *data, int slot)
doorbell_clr(driver_ccb);

/* make sure iLO is really handling requests */
for (i = 1000; i > 0; i--) {
for (i = MAX_WAIT; i > 0; i--) {
if (ilo_pkt_dequeue(hw, driver_ccb, SENDQ, &pkt_id, NULL, NULL))
break;
udelay(1);
Expand All @@ -326,7 +326,7 @@ static int ilo_ccb_open(struct ilo_hwinfo *hw, struct ccb_data *data, int slot)

return 0;
free:
pci_free_consistent(pdev, data->dma_size, data->dma_va, data->dma_pa);
ilo_ccb_close(pdev, data);
out:
return error;
}
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/misc/hpilo.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#define MAX_ILO_DEV 1
/* max number of files */
#define MAX_OPEN (MAX_CCB * MAX_ILO_DEV)
/* spin counter for open/close delay */
#define MAX_WAIT 10000

/*
* Per device, used to track global memory allocations.
Expand Down

0 comments on commit eb91819

Please sign in to comment.