Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754886AbZLCIzj (ORCPT ); Thu, 3 Dec 2009 03:55:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754364AbZLCIzi (ORCPT ); Thu, 3 Dec 2009 03:55:38 -0500 Received: from mailrelay007.isp.belgacom.be ([195.238.6.173]:4734 "EHLO mailrelay007.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750882AbZLCIzh (ORCPT ); Thu, 3 Dec 2009 03:55:37 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqEEAMIKF0vCTtAn/2dsb2JhbACBTtU6hDEEgWo Date: Thu, 3 Dec 2009 09:55:39 +0100 From: Philippe De Muyter To: David Miller 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 Message-ID: <20091203085539.GB23867@frolo.macqel> References: <20091026162011.GA3289@frolo.macqel> <4AE64031.5060105@gmail.com> <4AEC420A.9030502@rtr.ca> <20091202.215738.12118816.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091202.215738.12118816.davem@davemloft.net> User-Agent: Mutt/1.5.16 (2007-06-09) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1286 Lines: 32 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 Signed-off-by: Philippe De Muyter > > 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 */ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/