From: Philippe De Muyter <phdm@macqel.be>
To: David Miller <davem@davemloft.net>
Cc: liml@rtr.ca, hancockrwd@gmail.com, linux-ide@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH ide] : Increase WAIT_DRQ to support slow CF cards
Date: Thu, 3 Dec 2009 09:55:39 +0100 [thread overview]
Message-ID: <20091203085539.GB23867@frolo.macqel> (raw)
In-Reply-To: <20091202.215738.12118816.davem@davemloft.net>
On Wed, Dec 02, 2009 at 09:57:38PM -0800, David Miller wrote:
> ide: Increase WAIT_DRQ to accomodate some CF cards and SSD drives.
>
> Based upon a patch by Philippe De Muyter, and feedback from Mark
> Lord and Robert Hancock.
>
> As noted by Mark Lord, the outdated ATA1 spec specifies a 20msec
> timeout for setting DRQ but lots of common devices overshoot this.
>
> Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Philippe De Muyter <phdm@macqel.be>
>
> diff --git a/include/linux/ide.h b/include/linux/ide.h
> index e4135d6..0ec6129 100644
> --- a/include/linux/ide.h
> +++ b/include/linux/ide.h
> @@ -125,8 +125,8 @@ struct ide_io_ports {
> * Timeouts for various operations:
> */
> enum {
> - /* spec allows up to 20ms */
> - WAIT_DRQ = HZ / 10, /* 100ms */
> + /* spec allows up to 20ms, but CF cards and SSD drives need more */
> + WAIT_DRQ = 1 * HZ, /* 1s */
> /* some laptops are very slow */
> WAIT_READY = 5 * HZ, /* 5s */
> /* should be less than 3ms (?), if all ATAPI CD is closed at boot */
prev parent reply other threads:[~2009-12-03 8:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-26 16:20 Philippe De Muyter
2009-10-27 0:34 ` Robert Hancock
2009-10-27 0:45 ` David Miller
2009-10-27 1:07 ` Robert Hancock
2009-10-27 1:19 ` David Miller
2009-10-27 1:40 ` Robert Hancock
2009-10-27 1:43 ` David Miller
2009-10-27 9:45 ` Philippe De Muyter
2009-10-27 10:24 ` Sergei Shtylyov
2009-10-31 13:56 ` Mark Lord
2009-12-03 5:57 ` David Miller
2009-12-03 8:55 ` Philippe De Muyter [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091203085539.GB23867@frolo.macqel \
--to=phdm@macqel.be \
--cc=davem@davemloft.net \
--cc=hancockrwd@gmail.com \
--cc=liml@rtr.ca \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®