Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2166
b: refs/heads/master
c: 4b0060f
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Garzik committed Jun 4, 2005
1 parent 4fd7dec commit 1713a6f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: ead5de996fc35f97fa120b414bfc098f1bca29d2
refs/heads/master: 4b0060f4bdec7484e8d1ad68f7b28b3f1c2e6bf8
11 changes: 6 additions & 5 deletions trunk/drivers/scsi/ahci.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ enum {
PORT_CMD_ICC_ACTIVE = (0x1 << 28), /* Put i/f in active state */
PORT_CMD_ICC_PARTIAL = (0x2 << 28), /* Put i/f in partial state */
PORT_CMD_ICC_SLUMBER = (0x6 << 28), /* Put i/f in slumber state */

/* hpriv->flags bits */
AHCI_FLAG_MSI = (1 << 0),
};

struct ahci_cmd_hdr {
Expand All @@ -153,7 +156,6 @@ struct ahci_sg {

struct ahci_host_priv {
unsigned long flags;
unsigned int have_msi; /* is PCI MSI enabled? */
u32 cap; /* cache of HOST_CAP register */
u32 port_map; /* cache of HOST_PORTS_IMPL reg */
};
Expand Down Expand Up @@ -797,8 +799,6 @@ static int ahci_host_init(struct ata_probe_ent *probe_ent)
return rc;
}
}

hpriv->flags |= HOST_CAP_64;
} else {
rc = pci_set_dma_mask(pdev, DMA_32BIT_MASK);
if (rc) {
Expand Down Expand Up @@ -1036,7 +1036,8 @@ static int ahci_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
probe_ent->mmio_base = mmio_base;
probe_ent->private_data = hpriv;

hpriv->have_msi = have_msi;
if (have_msi)
hpriv->flags |= AHCI_FLAG_MSI;

/* initialize adapter */
rc = ahci_host_init(probe_ent);
Expand Down Expand Up @@ -1084,7 +1085,7 @@ static void ahci_remove_one (struct pci_dev *pdev)
scsi_remove_host(ap->host);
}

have_msi = hpriv->have_msi;
have_msi = hpriv->flags & AHCI_FLAG_MSI;
free_irq(host_set->irq, host_set);

for (i = 0; i < host_set->n_ports; i++) {
Expand Down

0 comments on commit 1713a6f

Please sign in to comment.