wait for phy communication

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22294 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen
2007-09-24 21:38:21 +00:00
parent 22cf14cfbe
commit de372c5c6b
@@ -187,6 +187,12 @@ AHCIPort::ResetDevice()
fRegs->cmd |= PORT_CMD_ST; fRegs->cmd |= PORT_CMD_ST;
FlushPostedWrites(); FlushPostedWrites();
if (fRegs->ssts & 1)
if (wait_until_set(&fRegs->ssts, 0x3, 1000000) < B_OK) {
TRACE("AHCIPort::ResetDevice port %d device present but no phy communication\n", fIndex);
}
}
return B_OK; return B_OK;
} }