]> git.hungrycats.org Git - linux/commit
[PATCH] pdc202xx_old.c: sanitize 66MHz clock use
authorBartlomiej Zolnierkiewicz <b.zolnierkiewicz@elka.pw.edu.pl>
Mon, 19 Jan 2004 13:44:11 +0000 (05:44 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 19 Jan 2004 13:44:11 +0000 (05:44 -0800)
commitf154cb928e126a917301061517ec3a974ffa523f
treedcf68206bac76d33a1af2db0c66178f78ab52c73
parent749949ea57f14d30623a76bc52ccca8afdeccd1c
[PATCH] pdc202xx_old.c: sanitize 66MHz clock use

Sanitize 66MHz clock use: "enable" 66MHz clock before starting UDMA3/4/5
read/write transfer and "disable" it after finishing transfer.

- fixes timings for non-UDMA3/4/5 operations (correct 33MHz timings are used)

- allows using UDMA3/4/5 modes on a capable drive even if non-UDMA3/4/5 drive
  is present on the same channel

- fixes corner case when one drive on the channel was using UDMA66/100 + LBA48
  (so clock was enabled/disabled for each read/write) and other one was using
  UDMA66/100 + LBA28, it could happen that request on LBA48 drive disabled
  66MHz clock and it was not enabled for the next transfer on LBA28 drive
drivers/ide/pci/pdc202xx_old.c