Skip to content

Commit 1e6c5c4

Browse files
committed
Merge branch 'urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/kyle/parisc-2.6
* 'urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/kyle/parisc-2.6: parisc: Set PCI CLS early in boot.
2 parents 46fe243 + 5fd4514 commit 1e6c5c4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

arch/parisc/kernel/pci.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
#include <asm/io.h>
2020
#include <asm/system.h>
21-
#include <asm/cache.h> /* for L1_CACHE_BYTES */
2221
#include <asm/superio.h>
2322

2423
#define DEBUG_RESOURCES 0
@@ -123,6 +122,10 @@ static int __init pcibios_init(void)
123122
} else {
124123
printk(KERN_WARNING "pci_bios != NULL but init() is!\n");
125124
}
125+
126+
/* Set the CLS for PCI as early as possible. */
127+
pci_cache_line_size = pci_dfl_cache_line_size;
128+
126129
return 0;
127130
}
128131

@@ -171,7 +174,7 @@ void pcibios_set_master(struct pci_dev *dev)
171174
** upper byte is PCI_LATENCY_TIMER.
172175
*/
173176
pci_write_config_word(dev, PCI_CACHE_LINE_SIZE,
174-
(0x80 << 8) | (L1_CACHE_BYTES / sizeof(u32)));
177+
(0x80 << 8) | pci_cache_line_size);
175178
}
176179

177180

0 commit comments

Comments
 (0)