From: Sergei Shtylyov Date: Mon, 27 Sep 2010 18:01:32 +0000 (-0700) Subject: hpt366: fix clock turnaround X-Git-Tag: firefly_0821_release~7613^2~1346^2~6 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bbe54d78cc59a39f1ef3ffbe70423376ad9aab4c;p=firefly-linux-kernel-4.4.55.git hpt366: fix clock turnaround DPLL clock (0x21) should be used for writes and PCI clock (0x23) for reads, not vice versa. Signed-off-by: Sergei Shtylyov Signed-off-by: David S. Miller --- diff --git a/drivers/ide/hpt366.c b/drivers/ide/hpt366.c index c613ae170a84..58c51cddc100 100644 --- a/drivers/ide/hpt366.c +++ b/drivers/ide/hpt366.c @@ -838,7 +838,7 @@ static void hpt3xxn_set_clock(ide_hwif_t *hwif, u8 mode) static void hpt3xxn_rw_disk(ide_drive_t *drive, struct request *rq) { - hpt3xxn_set_clock(drive->hwif, rq_data_dir(rq) ? 0x23 : 0x21); + hpt3xxn_set_clock(drive->hwif, rq_data_dir(rq) ? 0x21 : 0x23); } /**