Example #1
0
static void piix_sata_phy_reset(struct ata_port *ap)
{
    if (!piix_sata_probe(ap)) {
        ata_port_disable(ap);
        printk(KERN_INFO "ata%u: SATA port has no device.\n", ap->id);
        return;
    }

    ap->cbl = ATA_CBL_SATA;

    ata_port_probe(ap);

    ata_bus_reset(ap);
}
Example #2
0
static void piix_sata_phy_reset(struct ata_port *ap)
{
	if (!pci_test_config_bits(ap->host_set->pdev,
				  &piix_enable_bits[ap->port_no])) {
		ata_port_disable(ap);
		printk(KERN_INFO "ata%u: port disabled. ignoring.\n", ap->id);
		return;
	}

	if (!piix_sata_probe(ap)) {
		ata_port_disable(ap);
		printk(KERN_INFO "ata%u: SATA port has no device.\n", ap->id);
		return;
	}

	ap->cbl = ATA_CBL_SATA;

	ata_port_probe(ap);

	ata_bus_reset(ap);
}