ref: 6172dbd996e16dbc386c713afbab20f786e29729
parent: 8c8149965994d4122bd22d29fbcf114282175ec9
author: cinap_lenrek <[email protected]>
date: Fri Jan 4 18:09:16 EST 2013
sdiahci: do port reset on stuck drive on boot
--- a/sys/src/9/pc/sdiahci.c
+++ b/sys/src/9/pc/sdiahci.c
@@ -912,6 +912,8 @@
d->state = Dmissing;
break;
case Spresent:
+ if(d->state == Dnull)
+ d->state = Dportreset;
break;
case Sphylink:
if(d->state == Dready)