Skip to contentSkip to conversation

ht6560b can only do up to PIO mode 4

PATCH Applied Jan Evert van Grootheest 2 participants 2 messages Feb 18, 2008 – Feb 19, 2008 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ht6560b can only do up to PIO mode 4

According to the datasheet, ht6560b only supports up to PIO mode 4.

drivers/ide/legacy/ht6560b.c +2 -2
@@ -343,7 +343,7 @@ int __init ht6560b_init(void)
 	hwif->chipset = ide_ht6560b;
 	hwif->selectproc = &ht6560b_selectproc;
 	hwif->host_flags = IDE_HFLAG_ABUSE_PREFETCH;
-	hwif->pio_mask = ATA_PIO5;
+	hwif->pio_mask = ATA_PIO4;
 	hwif->set_pio_mode = &ht6560b_set_pio_mode;
 	hwif->serialized = 1;	/* is this needed? */
 	hwif->mate = mate;
@@ -351,7 +351,7 @@ int __init ht6560b_init(void)
 	mate->chipset = ide_ht6560b;
 	mate->selectproc = &ht6560b_selectproc;
 	mate->host_flags = IDE_HFLAG_ABUSE_PREFETCH;
-	mate->pio_mask = ATA_PIO5;
+	mate->pio_mask = ATA_PIO4;
 	mate->set_pio_mode = &ht6560b_set_pio_mode;
 	mate->serialized = 1;	/* is this needed? */
 	mate->mate = hwif;
#1 lore raw
Quoted 3 lines · Jan Evert van Grootheest

According to the datasheet, ht6560b only supports up to PIO mode 4.

applied, thanks!

PS I had to manually port it over 2.6.25-rc2, patch below

From: Jan Evert van Grootheest <[email protected]>
Subject: [PATCH] ht6560b can only do up to PIO mode 4

According to the datasheet, ht6560b only supports up to PIO mode 4.

[bart: manually ported it over 2.6.25-rc2]

---
 drivers/ide/legacy/ht6560b.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ide/legacy/ht6560b.c +1 -1
Index: b/drivers/ide/legacy/ht6560b.c
===================================================================
@@ -323,7 +323,7 @@ static const struct ide_port_info ht6560
 				  IDE_HFLAG_NO_DMA |
 				  IDE_HFLAG_NO_AUTOTUNE |
 				  IDE_HFLAG_ABUSE_PREFETCH,
-	.pio_mask		= ATA_PIO5,
+	.pio_mask		= ATA_PIO4,
 };
 
 static int __init ht6560b_init(void)