Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 602da297 authored by David S. Miller's avatar David S. Miller
Browse files

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: default avatarDavid S. Miller <davem@davemloft.net>
parent 84920905
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -125,8 +125,8 @@ struct ide_io_ports {
 * Timeouts for various operations:
 * Timeouts for various operations:
 */
 */
enum {
enum {
	/* spec allows up to 20ms */
	/* spec allows up to 20ms, but CF cards and SSD drives need more */
	WAIT_DRQ	= HZ / 10,	/* 100ms */
	WAIT_DRQ	= 1 * HZ,	/* 1s */
	/* some laptops are very slow */
	/* some laptops are very slow */
	WAIT_READY	= 5 * HZ,	/* 5s */
	WAIT_READY	= 5 * HZ,	/* 5s */
	/* should be less than 3ms (?), if all ATAPI CD is closed at boot */
	/* should be less than 3ms (?), if all ATAPI CD is closed at boot */