Patchwork [13/13] ahci: set pci revision id

login
register
mail settings
Submitter Alexander Graf
Date Dec. 8, 2010, 12:13 p.m.
Message ID <1291810400-11309-14-git-send-email-agraf@suse.de>
Download mbox | patch
Permalink /patch/74693/
State New
Headers show

Comments

Alexander Graf - Dec. 8, 2010, 12:13 p.m.
From: Sebastian Herbszt <herbszt@gmx.de>

Set pci revision id to 0x01.

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
---
 hw/ide/ahci.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c
index 2ef03ed..fdfc011 100644
--- a/hw/ide/ahci.c
+++ b/hw/ide/ahci.c
@@ -1322,6 +1322,7 @@  static int pci_ahci_init(PCIDevice *dev)
                              PCI_DEVICE_ID_INTEL_ICH7_AHCI);
 
     pci_config_set_class(d->card.config, PCI_CLASS_STORAGE_SATA);
+    pci_config_set_revision(d->card.config, 0x01);
     pci_config_set_prog_interface(d->card.config, AHCI_PROGMODE_MAJOR_REV_1);
 
     d->card.config[PCI_CACHE_LINE_SIZE] = 0x08;  /* Cache line size */