Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62402
b: refs/heads/master
c: a2b663f
h: refs/heads/master
v: v3
  • Loading branch information
Muli Ben-Yehuda authored and Linus Torvalds committed Jul 22, 2007
1 parent 269b28c commit a835a43
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 9596017e79cddb4f4fd4b896425a30f86946ce85
refs/heads/master: a2b663f6728ab71f0e45db41333fb0aaf5e59072
9 changes: 5 additions & 4 deletions trunk/arch/x86_64/kernel/pci-calgary.c
Original file line number Diff line number Diff line change
Expand Up @@ -775,8 +775,8 @@ static void calgary_watchdog(unsigned long data)
}
}

static void __init calgary_increase_split_completion_timeout(void __iomem *bbar,
unsigned char busnum)
static void __init calgary_set_split_completion_timeout(void __iomem *bbar,
unsigned char busnum, unsigned long timeout)
{
u64 val64;
void __iomem *target;
Expand All @@ -802,7 +802,7 @@ static void __init calgary_increase_split_completion_timeout(void __iomem *bbar,
/* zero out this PHB's timer bits */
mask = ~(0xFUL << phb_shift);
val64 &= mask;
val64 |= (CCR_2SEC_TIMEOUT << phb_shift);
val64 |= (timeout << phb_shift);
writeq(cpu_to_be64(val64), target);
readq(target); /* flush */
}
Expand Down Expand Up @@ -836,7 +836,8 @@ static void __init calgary_enable_translation(struct pci_dev *dev)
* http://bugzilla.kernel.org/show_bug.cgi?id=7180
*/
if (busnum == 1)
calgary_increase_split_completion_timeout(bbar, busnum);
calgary_set_split_completion_timeout(bbar, busnum,
CCR_2SEC_TIMEOUT);

init_timer(&tbl->watchdog_timer);
tbl->watchdog_timer.function = &calgary_watchdog;
Expand Down

0 comments on commit a835a43

Please sign in to comment.