Commit 3ac5d508 authored by Jeff Garzik's avatar Jeff Garzik

[PCI] Remove cases where PCI_CACHE_LINE_SIZE is hardcoded.

Modifies drivers atm/eni.c, ide/pci/cmd64x.c, and
ide/pci/ns87415.c.  Ack'd by DaveM.
parent 94dffce6
...@@ -1809,10 +1809,6 @@ static int __devinit eni_start(struct atm_dev *dev) ...@@ -1809,10 +1809,6 @@ static int __devinit eni_start(struct atm_dev *dev)
"master (0x%02x)\n",dev->number,error); "master (0x%02x)\n",dev->number,error);
return error; return error;
} }
#ifdef __sparc_v9__ /* copied from drivers/net/sunhme.c */
/* NOTE: Cache line size is in 32-bit word units. */
pci_write_config_byte(eni_dev->pci_dev, PCI_CACHE_LINE_SIZE, 0x10);
#endif
if ((error = pci_write_config_byte(eni_dev->pci_dev,PCI_TONGA_CTRL, if ((error = pci_write_config_byte(eni_dev->pci_dev,PCI_TONGA_CTRL,
END_SWAP_DMA))) { END_SWAP_DMA))) {
printk(KERN_ERR DEV_LABEL "(itf %d): can't set endian swap " printk(KERN_ERR DEV_LABEL "(itf %d): can't set endian swap "
......
...@@ -628,10 +628,7 @@ static unsigned int __init init_chipset_cmd64x (struct pci_dev *dev, const char ...@@ -628,10 +628,7 @@ static unsigned int __init init_chipset_cmd64x (struct pci_dev *dev, const char
/* Set a good latency timer and cache line size value. */ /* Set a good latency timer and cache line size value. */
(void) pci_write_config_byte(dev, PCI_LATENCY_TIMER, 64); (void) pci_write_config_byte(dev, PCI_LATENCY_TIMER, 64);
#ifdef __sparc_v9__ /* FIXME: pci_set_master() to ensure a good latency timer value */
(void) pci_write_config_byte(dev, PCI_CACHE_LINE_SIZE, 0x10);
#endif
/* Setup interrupts. */ /* Setup interrupts. */
(void) pci_read_config_byte(dev, MRDMODE, &mrdmode); (void) pci_read_config_byte(dev, MRDMODE, &mrdmode);
......
...@@ -147,9 +147,7 @@ static void __init init_hwif_ns87415 (ide_hwif_t *hwif) ...@@ -147,9 +147,7 @@ static void __init init_hwif_ns87415 (ide_hwif_t *hwif)
/* Set a good latency timer and cache line size value. */ /* Set a good latency timer and cache line size value. */
(void) pci_write_config_byte(dev, PCI_LATENCY_TIMER, 64); (void) pci_write_config_byte(dev, PCI_LATENCY_TIMER, 64);
#ifdef __sparc_v9__ /* FIXME: use pci_set_master() to ensure good latency timer value */
(void) pci_write_config_byte(dev, PCI_CACHE_LINE_SIZE, 0x10);
#endif
/* /*
* We cannot probe for IRQ: both ports share common IRQ on INTA. * We cannot probe for IRQ: both ports share common IRQ on INTA.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment