]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r220615:
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 19 Apr 2011 20:44:44 +0000 (20:44 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 19 Apr 2011 20:44:44 +0000 (20:44 +0000)
commita3937c049d010b71f210ec4f3e4e3215a1bd325f
treecfe03b26805f4d4f132469645f3e48acee7e0b59
parent656170959d8b7f41d97c0e557701cc8e0f109107
MFC r220615:
Refactor hard-reset implementation in mvs(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@220872 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/mvs/mvs.c
sys/dev/mvs/mvs.h