sdiahci: only wait for drives that are in the process of becoming ready when onlining, add *noahci option
This commit is contained in:
parent
3a79bf2ae6
commit
5c4f2f9d35
1 changed files with 5 additions and 1 deletions
|
@ -908,6 +908,7 @@ configdrive(Drive *d)
|
|||
|
||||
ilock(d);
|
||||
switch(d->port->sstatus & Smask){
|
||||
default:
|
||||
case Smissing:
|
||||
d->state = Dmissing;
|
||||
break;
|
||||
|
@ -1497,7 +1498,7 @@ iaonline(SDunit *u)
|
|||
c = u->dev->ctlr;
|
||||
d = c->drive[u->subno];
|
||||
|
||||
while(waitready(d) == 1)
|
||||
while(d->state != Dmissing && waitready(d) == 1)
|
||||
esleep(1);
|
||||
|
||||
dprint("%s: iaonline: %s\n", dnam(d), diskstates[d->state]);
|
||||
|
@ -2137,6 +2138,9 @@ iapnp(void)
|
|||
return nil;
|
||||
done = 1;
|
||||
|
||||
if(getconf("*noahci") != nil)
|
||||
return nil;
|
||||
|
||||
if(getconf("*ahcidebug") != nil){
|
||||
debug = 1;
|
||||
datapi = 1;
|
||||
|
|
Loading…
Reference in a new issue