Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 48550
b: refs/heads/master
c: 7de970e
h: refs/heads/master
v: v3
  • Loading branch information
Nate Dailey authored and Jeff Garzik committed Feb 15, 2007
1 parent b70cc1c commit aab3e39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 5278b50cea851d8264b7b28212a483328650476f
refs/heads/master: 7de970e11fb832a56c897276967fb0e49f59b313
8 changes: 6 additions & 2 deletions trunk/drivers/ata/sata_vsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ static int __devinit vsc_sata_init_one (struct pci_dev *pdev, const struct pci_d
struct ata_probe_ent *probe_ent;
void __iomem *mmio_base;
int rc;
u8 cls;

if (!printed_version++)
dev_printk(KERN_DEBUG, &pdev->dev, "version " DRV_VERSION "\n");
Expand Down Expand Up @@ -383,9 +384,12 @@ static int __devinit vsc_sata_init_one (struct pci_dev *pdev, const struct pci_d
INIT_LIST_HEAD(&probe_ent->node);

/*
* Due to a bug in the chip, the default cache line size can't be used
* Due to a bug in the chip, the default cache line size can't be
* used (unless the default is non-zero).
*/
pci_write_config_byte(pdev, PCI_CACHE_LINE_SIZE, 0x80);
pci_read_config_byte(pdev, PCI_CACHE_LINE_SIZE, &cls);
if (cls == 0x00)
pci_write_config_byte(pdev, PCI_CACHE_LINE_SIZE, 0x80);

if (pci_enable_msi(pdev) == 0)
pci_intx(pdev, 0);
Expand Down

0 comments on commit aab3e39

Please sign in to comment.