Patchwork ahci: fix global hba control default value

login
register
mail settings
Submitter Sebastian Herbszt
Date May 22, 2010, 8:44 p.m.
Message ID <1274561063$3598@local>
Download mbox | patch
Permalink /patch/53289/
State New
Headers show

Comments

Sebastian Herbszt - May 22, 2010, 8:44 p.m.
Global HBA Control default value should be zero.

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>

Patch

diff --git a/hw/ahci.c b/hw/ahci.c
index 178f9ea..ce87cbe 100644
--- a/hw/ahci.c
+++ b/hw/ahci.c
@@ -485,7 +485,6 @@  static void ahci_reg_init(AHCIState *s)
 {
 	int i;
 	s->control_regs.cap = 3 | (0x1f << 8) | (1 << 20) ; /* 4 ports, 32 command slots, 1.5 Gb/s */
-	s->control_regs.ghc = 1 << 31; /* AHCI Enable */
 	s->control_regs.impl = 15; /* Ports 0-3 implemented */
 	s->control_regs.version = 0x10000;
 	for(i=0;i<SATA_PORTS;i++)