]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r220576:
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 19 Apr 2011 17:13:14 +0000 (17:13 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 19 Apr 2011 17:13:14 +0000 (17:13 +0000)
commitb2fe4e6365c35134362210aadef6d92edc9186c8
treef067698fbf4211a26c8c23da1969f773e0e3ca9c
parente10ec6c49dbd57e9083f649227bd4443b8dcfd1e
MFC r220576:
Refactor hard-reset implementation in ahci(4).

Instead of spinning in a tight loop for up to 15 seconds, polling for device
readiness while it spins up, return reset completion just after PHY reports
"connect well" or 100ms connection timeout. If device was found, use callout
for checking device readiness with 100ms period up to full 31 second timeout.

This fixes system freeze for 5-10 seconds on drives hot plug-in.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220859 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/ahci/ahci.c
sys/dev/ahci/ahci.h