[PATCH] ahci: kill AHCI_FLAG_RESET_NEEDS_CLO
Now that ahci_softreset() is fixed to automatically perform CLO if BSY/DRQ is set on entry, AHCI_FLAG_RESET_NEEDS_CLO is redundant. Kill it. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
@@ -167,9 +167,8 @@ enum {
|
|||||||
AHCI_FLAG_MSI = (1 << 0),
|
AHCI_FLAG_MSI = (1 << 0),
|
||||||
|
|
||||||
/* ap->flags bits */
|
/* ap->flags bits */
|
||||||
AHCI_FLAG_RESET_NEEDS_CLO = (1 << 24),
|
AHCI_FLAG_NO_NCQ = (1 << 24),
|
||||||
AHCI_FLAG_NO_NCQ = (1 << 25),
|
AHCI_FLAG_IGN_IRQ_IF_ERR = (1 << 25), /* ignore IRQ_IF_ERR */
|
||||||
AHCI_FLAG_IGN_IRQ_IF_ERR = (1 << 26), /* ignore IRQ_IF_ERR */
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ahci_cmd_hdr {
|
struct ahci_cmd_hdr {
|
||||||
@@ -291,8 +290,7 @@ static const struct ata_port_info ahci_port_info[] = {
|
|||||||
.sht = &ahci_sht,
|
.sht = &ahci_sht,
|
||||||
.flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY |
|
.flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY |
|
||||||
ATA_FLAG_MMIO | ATA_FLAG_PIO_DMA |
|
ATA_FLAG_MMIO | ATA_FLAG_PIO_DMA |
|
||||||
ATA_FLAG_SKIP_D2H_BSY |
|
ATA_FLAG_SKIP_D2H_BSY | AHCI_FLAG_NO_NCQ,
|
||||||
AHCI_FLAG_RESET_NEEDS_CLO | AHCI_FLAG_NO_NCQ,
|
|
||||||
.pio_mask = 0x1f, /* pio0-4 */
|
.pio_mask = 0x1f, /* pio0-4 */
|
||||||
.udma_mask = 0x7f, /* udma0-6 ; FIXME */
|
.udma_mask = 0x7f, /* udma0-6 ; FIXME */
|
||||||
.port_ops = &ahci_ops,
|
.port_ops = &ahci_ops,
|
||||||
@@ -729,17 +727,6 @@ static int ahci_clo(struct ata_port *ap)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ahci_prereset(struct ata_port *ap)
|
|
||||||
{
|
|
||||||
if ((ap->flags & AHCI_FLAG_RESET_NEEDS_CLO) &&
|
|
||||||
(ata_busy_wait(ap, ATA_BUSY, 1000) & ATA_BUSY)) {
|
|
||||||
/* ATA_BUSY hasn't cleared, so send a CLO */
|
|
||||||
ahci_clo(ap);
|
|
||||||
}
|
|
||||||
|
|
||||||
return ata_std_prereset(ap);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int ahci_softreset(struct ata_port *ap, unsigned int *class)
|
static int ahci_softreset(struct ata_port *ap, unsigned int *class)
|
||||||
{
|
{
|
||||||
struct ahci_port_priv *pp = ap->private_data;
|
struct ahci_port_priv *pp = ap->private_data;
|
||||||
@@ -1196,7 +1183,7 @@ static void ahci_error_handler(struct ata_port *ap)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* perform recovery */
|
/* perform recovery */
|
||||||
ata_do_eh(ap, ahci_prereset, ahci_softreset, ahci_hardreset,
|
ata_do_eh(ap, ata_std_prereset, ahci_softreset, ahci_hardreset,
|
||||||
ahci_postreset);
|
ahci_postreset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user