Reduce priority of ATA/SATA drivers.

Legacy ata(4) -> BUS_PROBE_LOW_PRIORITY;  more functional ahci(4), siis(4),
mvs(4) -> BUS_PROBE_DEFAULT;  BUS_PROBE_VENDOR leave for vendor drivers.

MFC after:	2 weeks
This commit is contained in:
Alexander Motin 2015-03-23 19:47:52 +00:00
parent d3995fdd6a
commit 3036de3c48
31 changed files with 35 additions and 35 deletions

View File

@ -638,7 +638,7 @@ ahci_ch_probe(device_t dev)
{
device_set_desc_copy(dev, "AHCI channel");
return (0);
return (BUS_PROBE_DEFAULT);
}
static int

View File

@ -340,13 +340,13 @@ ahci_probe(device_t dev)
snprintf(buf, sizeof(buf), "%s AHCI SATA controller",
ahci_ids[i].name);
device_set_desc_copy(dev, buf);
return (BUS_PROBE_VENDOR);
return (BUS_PROBE_DEFAULT);
}
}
if (!valid)
return (ENXIO);
device_set_desc_copy(dev, "AHCI SATA controller");
return (BUS_PROBE_VENDOR);
return (BUS_PROBE_DEFAULT);
}
static int
@ -366,11 +366,11 @@ ahci_ata_probe(device_t dev)
snprintf(buf, sizeof(buf), "%s AHCI SATA controller",
ahci_ids[i].name);
device_set_desc_copy(dev, buf);
return (BUS_PROBE_VENDOR);
return (BUS_PROBE_DEFAULT);
}
}
device_set_desc_copy(dev, "AHCI SATA controller");
return (BUS_PROBE_VENDOR);
return (BUS_PROBE_DEFAULT);
}
static int

View File

@ -65,7 +65,7 @@ ahci_em_probe(device_t dev)
{
device_set_desc_copy(dev, "AHCI enclosure management bridge");
return (0);
return (BUS_PROBE_DEFAULT);
}
static int

View File

@ -91,7 +91,7 @@ FEATURE(ata_cam, "ATA devices are accessed through the cam(4) driver");
int
ata_probe(device_t dev)
{
return (BUS_PROBE_DEFAULT);
return (BUS_PROBE_LOW_PRIORITY);
}
int

View File

@ -83,7 +83,7 @@ ata_acard_probe(device_t dev)
ata_set_desc(dev);
ctlr->chipinit = ata_acard_chipinit;
return (BUS_PROBE_DEFAULT);
return (BUS_PROBE_LOW_PRIORITY);
}
static int

View File

@ -96,7 +96,7 @@ ata_ali_probe(device_t dev)
ata_set_desc(dev);
ctlr->chipinit = ata_ali_chipinit;
ctlr->chipdeinit = ata_ali_chipdeinit;
return (BUS_PROBE_DEFAULT);
return (BUS_PROBE_LOW_PRIORITY);
}
static int

View File

@ -75,7 +75,7 @@ ata_adaptec_probe(device_t dev)
ata_set_desc(dev);
ctlr->chipinit = ata_marvell_edma_chipinit;
return (BUS_PROBE_DEFAULT);
return (BUS_PROBE_LOW_PRIORITY);
}
ATA_DECLARE_DRIVER(ata_adaptec);

View File

@ -82,7 +82,7 @@ ata_amd_probe(device_t dev)
ata_set_desc(dev);
ctlr->chipinit = ata_amd_chipinit;
return (BUS_PROBE_DEFAULT);
return (BUS_PROBE_LOW_PRIORITY);
}
static int

View File

@ -123,7 +123,7 @@ ata_ati_probe(device_t dev)
ctlr->chipinit = ata_ati_chipinit;
break;
}
return (BUS_PROBE_DEFAULT);
return (BUS_PROBE_LOW_PRIORITY);
}
static int

View File

@ -63,7 +63,7 @@ ata_cenatek_probe(device_t dev)
ctlr->chipinit = ata_generic_chipinit;
device_set_desc(dev, "Cenatek Rocket Drive controller");
return (BUS_PROBE_DEFAULT);
return (BUS_PROBE_LOW_PRIORITY);
}
ATA_DECLARE_DRIVER(ata_cenatek);

View File

@ -75,7 +75,7 @@ ata_cypress_probe(device_t dev)
pci_get_subclass(dev) == PCIS_STORAGE_IDE) {
device_set_desc(dev, "Cypress 82C693 ATA controller");
ctlr->chipinit = ata_cypress_chipinit;
return (BUS_PROBE_DEFAULT);
return (BUS_PROBE_LOW_PRIORITY);
}
return ENXIO;
}

View File

@ -66,7 +66,7 @@ ata_cyrix_probe(device_t dev)
if (pci_get_devid(dev) == ATA_CYRIX_5530) {
device_set_desc(dev, "Cyrix 5530 ATA33 controller");
ctlr->chipinit = ata_cyrix_chipinit;
return (BUS_PROBE_DEFAULT);
return (BUS_PROBE_LOW_PRIORITY);
}
return ENXIO;
}

View File

@ -79,7 +79,7 @@ imx_ata_probe(device_t dev)
ctrl = device_get_softc(dev);
device_set_desc(dev, "Freescale Integrated PATA Controller");
return (BUS_PROBE_DEFAULT);
return (BUS_PROBE_LOW_PRIORITY);
}
static void

View File

@ -103,7 +103,7 @@ ata_highpoint_probe(device_t dev)
device_set_desc_copy(dev, buffer);
ctlr->chip = idx;
ctlr->chipinit = ata_highpoint_chipinit;
return (BUS_PROBE_DEFAULT);
return (BUS_PROBE_LOW_PRIORITY);
}
static int

View File

@ -264,7 +264,7 @@ ata_intel_probe(device_t dev)
ata_set_desc(dev);
ctlr->chipinit = ata_intel_chipinit;
ctlr->chipdeinit = ata_intel_chipdeinit;
return (BUS_PROBE_DEFAULT);
return (BUS_PROBE_LOW_PRIORITY);
}
static int

View File

@ -77,7 +77,7 @@ ata_ite_probe(device_t dev)
ata_set_desc(dev);
ctlr->chipinit = ata_ite_chipinit;
return (BUS_PROBE_DEFAULT);
return (BUS_PROBE_LOW_PRIORITY);
}
static int

View File

@ -86,7 +86,7 @@ ata_jmicron_probe(device_t dev)
device_set_desc_copy(dev, buffer);
ctlr->chip = idx;
ctlr->chipinit = ata_jmicron_chipinit;
return (BUS_PROBE_DEFAULT);
return (BUS_PROBE_LOW_PRIORITY);
}
static int

View File

@ -139,7 +139,7 @@ ata_marvell_probe(device_t dev)
ctlr->chipinit = ata_marvell_dummy_chipinit;
break;
}
return (BUS_PROBE_DEFAULT);
return (BUS_PROBE_LOW_PRIORITY);
}
static int

View File

@ -63,7 +63,7 @@ ata_micron_probe(device_t dev)
device_set_desc(dev,
"RZ 100? ATA controller !WARNING! data loss/corruption risk");
ctlr->chipinit = ata_generic_chipinit;
return (BUS_PROBE_DEFAULT);
return (BUS_PROBE_LOW_PRIORITY);
}
return (ENXIO);
}

View File

@ -67,7 +67,7 @@ ata_national_probe(device_t dev)
if (pci_get_devid(dev) == ATA_SC1100) {
device_set_desc(dev, "National Geode SC1100 ATA33 controller");
ctlr->chipinit = ata_national_chipinit;
return (BUS_PROBE_DEFAULT);
return (BUS_PROBE_LOW_PRIORITY);
}
return ENXIO;
}

View File

@ -66,7 +66,7 @@ ata_netcell_probe(device_t dev)
if (pci_get_devid(dev) == ATA_NETCELL_SR) {
device_set_desc(dev, "Netcell SyncRAID SR3000/5000 RAID Controller");
ctlr->chipinit = ata_netcell_chipinit;
return (BUS_PROBE_DEFAULT);
return (BUS_PROBE_LOW_PRIORITY);
}
return ENXIO;
}

View File

@ -187,7 +187,7 @@ ata_nvidia_probe(device_t dev)
ctlr->chipinit = ata_ahci_chipinit;
else
ctlr->chipinit = ata_nvidia_chipinit;
return (BUS_PROBE_DEFAULT);
return (BUS_PROBE_LOW_PRIORITY);
}
static int

View File

@ -209,7 +209,7 @@ ata_promise_probe(device_t dev)
device_set_desc_copy(dev, buffer);
ctlr->chip = idx;
ctlr->chipinit = ata_promise_chipinit;
return (BUS_PROBE_DEFAULT);
return (BUS_PROBE_LOW_PRIORITY);
}
static int

View File

@ -96,7 +96,7 @@ ata_serverworks_probe(device_t dev)
ata_set_desc(dev);
ctlr->chipinit = ata_serverworks_chipinit;
return (BUS_PROBE_DEFAULT);
return (BUS_PROBE_LOW_PRIORITY);
}
static int

View File

@ -113,7 +113,7 @@ ata_sii_probe(device_t dev)
ata_set_desc(dev);
ctlr->chipinit = ata_sii_chipinit;
return (BUS_PROBE_DEFAULT);
return (BUS_PROBE_LOW_PRIORITY);
}
int

View File

@ -154,7 +154,7 @@ ata_sis_probe(device_t dev)
device_set_desc_copy(dev, buffer);
ctlr->chip = idx;
ctlr->chipinit = ata_sis_chipinit;
return (BUS_PROBE_DEFAULT);
return (BUS_PROBE_LOW_PRIORITY);
}
static int

View File

@ -141,7 +141,7 @@ ata_via_probe(device_t dev)
ata_set_desc(dev);
ctlr->chipinit = ata_via_chipinit;
return (BUS_PROBE_DEFAULT);
return (BUS_PROBE_LOW_PRIORITY);
}
static int

View File

@ -107,7 +107,7 @@ mvs_ch_probe(device_t dev)
{
device_set_desc_copy(dev, "Marvell SATA channel");
return (0);
return (BUS_PROBE_DEFAULT);
}
static int

View File

@ -88,7 +88,7 @@ mvs_probe(device_t dev)
snprintf(buf, sizeof(buf), "%s SATA controller",
mvs_ids[i].name);
device_set_desc_copy(dev, buf);
return (BUS_PROBE_VENDOR);
return (BUS_PROBE_DEFAULT);
}
}
return (ENXIO);

View File

@ -91,7 +91,7 @@ mvs_probe(device_t dev)
snprintf(buf, sizeof(buf), "%s SATA controller",
mvs_ids[i].name);
device_set_desc_copy(dev, buf);
return (BUS_PROBE_VENDOR);
return (BUS_PROBE_DEFAULT);
}
}
return (ENXIO);

View File

@ -129,7 +129,7 @@ siis_probe(device_t dev)
snprintf(buf, sizeof(buf), "%s SATA controller",
siis_ids[i].name);
device_set_desc_copy(dev, buf);
return (BUS_PROBE_VENDOR);
return (BUS_PROBE_DEFAULT);
}
}
return (ENXIO);
@ -451,7 +451,7 @@ siis_ch_probe(device_t dev)
{
device_set_desc_copy(dev, "SIIS channel");
return (0);
return (BUS_PROBE_DEFAULT);
}
static int