Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139188
b: refs/heads/master
c: 891f7d7
h: refs/heads/master
v: v3
  • Loading branch information
David Altobelli authored and Linus Torvalds committed Apr 1, 2009
1 parent 916347e commit 45bbd39
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 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: 63cd885426872254e82dac2d9e13ea4f720c21dc
refs/heads/master: 891f7d73ea30f925596b90bcf21020bfc5d90f3f
6 changes: 3 additions & 3 deletions trunk/drivers/misc/hpilo.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ static void ilo_ccb_close(struct pci_dev *pdev, struct ccb_data *data)
/* give iLO some time to process stop request */
for (retries = MAX_WAIT; retries > 0; retries--) {
doorbell_set(driver_ccb);
udelay(1);
udelay(WAIT_TIME);
if (!(ioread32(&device_ccb->send_ctrl) & (1 << CTRL_BITPOS_A))
&&
!(ioread32(&device_ccb->recv_ctrl) & (1 << CTRL_BITPOS_A)))
Expand Down Expand Up @@ -312,7 +312,7 @@ static int ilo_ccb_open(struct ilo_hwinfo *hw, struct ccb_data *data, int slot)
for (i = MAX_WAIT; i > 0; i--) {
if (ilo_pkt_dequeue(hw, driver_ccb, SENDQ, &pkt_id, NULL, NULL))
break;
udelay(1);
udelay(WAIT_TIME);
}

if (i) {
Expand Down Expand Up @@ -759,7 +759,7 @@ static void __exit ilo_exit(void)
class_destroy(ilo_class);
}

MODULE_VERSION("1.0");
MODULE_VERSION("1.1");
MODULE_ALIAS(ILO_NAME);
MODULE_DESCRIPTION(ILO_NAME);
MODULE_AUTHOR("David Altobelli <david.altobelli@hp.com>");
Expand Down
6 changes: 5 additions & 1 deletion trunk/drivers/misc/hpilo.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@
#define MAX_ILO_DEV 1
/* max number of files */
#define MAX_OPEN (MAX_CCB * MAX_ILO_DEV)
/* total wait time in usec */
#define MAX_WAIT_TIME 10000
/* per spin wait time in usec */
#define WAIT_TIME 10
/* spin counter for open/close delay */
#define MAX_WAIT 10000
#define MAX_WAIT (MAX_WAIT_TIME / WAIT_TIME)

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

0 comments on commit 45bbd39

Please sign in to comment.