summaryrefslogtreecommitdiffstats
path: root/drivers/block/ns87415.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/ns87415.c')
-rw-r--r--drivers/block/ns87415.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/block/ns87415.c b/drivers/block/ns87415.c
index dbce52137..3275c0171 100644
--- a/drivers/block/ns87415.c
+++ b/drivers/block/ns87415.c
@@ -95,6 +95,12 @@ __initfunc(void ide_init_ns87415 (ide_hwif_t *hwif))
byte stat;
#endif
+ /* Set a good latency timer and cache line size value. */
+ (void) pci_write_config_byte(dev, PCI_LATENCY_TIMER, 64);
+#ifdef __sparc_v9__
+ (void) pci_write_config_byte(dev, PCI_CACHE_LINE_SIZE, 0x10);
+#endif
+
/*
* We cannot probe for IRQ: both ports share common IRQ on INTA.
* Also, leave IRQ masked during drive probing, to prevent infinite