[PATCH 01/24] ata_piix TIME0/TIME1 setup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: root <root@xxxxxxxxxxxxxxxxxxxxxxxxxxx>

We were using PIO 0 setup for PIO 2. Fix the off by one check

Signed-off-by: Alan Cox <alan@xxxxxxxxxx>


---

 drivers/scsi/ata_piix.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

4a153b397c817c9115b6a423fcadfaa0e7ad8a76
diff --git a/drivers/scsi/ata_piix.c b/drivers/scsi/ata_piix.c
index 31bc08f..f7893ef 100644
--- a/drivers/scsi/ata_piix.c
+++ b/drivers/scsi/ata_piix.c
@@ -717,7 +717,7 @@ static void piix_set_piomode (struct ata
 			    { 2, 1 },
 			    { 2, 3 }, };
 
-	if (pio > 2)
+	if (pio >= 2)
 		control |= 1;	/* TIME1 enable */
 	if (ata_pio_need_iordy(adev))
 		control |= 2;	/* IE enable */
-- 
1.2.GIT

-
: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux