Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jul 2001 17:22:10 -0700
From:      Nick Sayer <nsayer@quack.kfu.com>
To:        Nick Sayer <nsayer@quack.kfu.com>
Cc:        SXren Schmidt <sos@freebsd.dk>, Richard Johnson <raj@cisco.com>, Robert Sexton <robert@kudra.com>, freebsd-mobile@FreeBSD.ORG
Subject:   Re: ATA idle spindown patch.
Message-ID:  <3B635732.6030409@quack.kfu.com>
References:  <200107280841.f6S8fvR80063@freebsd.dk> <3B6354F9.2070801@quack.kfu.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Nick Sayer wrote:


> 
> I tried to put it in ad_reinit(), but that seems to be causing panics at 
> resume. The theory was that ad_reinit() seems to be called at resume time.


I spoke too soon. I just had to use ATA_WAIT_READY instead of ATA_WAIT_INTR.

So I have the same patch as the one that was posted, but I duplicated 
the 'if ( ata_suspend > 0 )' block at the end if ad_reinit() with 
ATA_WAIT_READY instead of ATA_WAIT_INTR. With that, spindown survives 
suspend/resume (well, on resume the drive spins up, obviously, but then 
after the wait time it spins back down).



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B635732.6030409>