| Submitter | Michael Tokarev |
|---|---|
| Date | Feb. 4, 2013, 10:40 a.m. |
| Message ID | <1359974470-17044-10-git-send-email-mjt@msgid.tls.msk.ru> |
| Download | mbox | patch |
| Permalink | /patch/217862/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index 267198e..1b5b5bf 100644 --- a/hw/ide/ahci.c +++ b/hw/ide/ahci.c @@ -1168,7 +1168,6 @@ void ahci_init(AHCIState *s, DeviceState *qdev, int ports) ad->port_no = i; ad->port.dma = &ad->dma; ad->port.dma->ops = &ahci_dma_ops; - ad->port_regs.cmd = PORT_CMD_SPIN_UP | PORT_CMD_POWER_ON; } } @@ -1193,6 +1192,7 @@ void ahci_reset(void *opaque) pr->irq_stat = 0; pr->irq_mask = 0; pr->scr_ctl = 0; + pr->cmd = PORT_CMD_SPIN_UP | PORT_CMD_POWER_ON; ahci_reset_port(&d->ahci, i); } }