mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
Properly hook in devices found by SATA connect events.
This broke on the changes done to get atapicam happy earlier.
This commit is contained in:
parent
10687779a9
commit
77662bd705
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=145327
@ -69,7 +69,6 @@ static struct cdevsw ata_cdevsw = {
|
||||
static void ata_interrupt(void *);
|
||||
static void ata_boot_attach(void);
|
||||
device_t ata_add_child(device_t parent, struct ata_device *atadev, int unit);
|
||||
static int ata_identify(device_t dev);
|
||||
|
||||
/* global vars */
|
||||
MALLOC_DEFINE(M_ATA, "ATA generic", "ATA driver generic layer");
|
||||
@ -597,7 +596,7 @@ ata_add_child(device_t parent, struct ata_device *atadev, int unit)
|
||||
return child;
|
||||
}
|
||||
|
||||
static int
|
||||
int
|
||||
ata_identify(device_t dev)
|
||||
{
|
||||
struct ata_channel *ch = device_get_softc(dev);
|
||||
|
@ -453,6 +453,7 @@ int ata_detach(device_t dev);
|
||||
int ata_reinit(device_t dev);
|
||||
int ata_suspend(device_t dev);
|
||||
int ata_resume(device_t dev);
|
||||
int ata_identify(device_t dev);
|
||||
void ata_default_registers(struct ata_channel *ch);
|
||||
void ata_udelay(int interval);
|
||||
char *ata_mode2str(int mode);
|
||||
|
@ -294,8 +294,7 @@ ata_sata_phy_event(void *context, int dummy)
|
||||
|
||||
device_printf(tp->dev, "CONNECTED\n");
|
||||
ata_sata_connect(ch);
|
||||
bus_generic_probe(tp->dev);
|
||||
bus_generic_attach(tp->dev);
|
||||
ata_identify(tp->dev);
|
||||
}
|
||||
if (tp->action == ATA_C_DETACH) {
|
||||
if (!device_get_children(tp->dev, &children, &nchildren)) {
|
||||
|
Loading…
Reference in New Issue
Block a user