]> git.hungrycats.org Git - linux/commit
[PATCH] fix ServerWorks PIO auto-tuning
authorBartlomiej Zolnierkiewicz <b.zolnierkiewicz@elka.pw.edu.pl>
Fri, 17 Oct 2003 03:49:11 +0000 (20:49 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Fri, 17 Oct 2003 03:49:11 +0000 (20:49 -0700)
commit2ede979b02038072f3dd488652352f0ef4284be9
tree5916d80e0d6d30e44c85bff661dad6b2a9914a7a
parent6d4289d1b43efc7c54289c142815008677377acb
[PATCH] fix ServerWorks PIO auto-tuning

If PIO mode should be auto-tuned xferspeed argument for svwks_tune_chipset()
is equal to 255 (0xFF).  It is then passed to ide_rate_filter() which matches
desired mode with chipset capabilities.  Since 255 is greater than any of the
values used for transfer modes, ide_rate_filter() will always return the
highest mode supported by both device/chipset (which sometimes should not be
used ie. when host is a simplex one) and the wrong mode will be set.

Thanks to Torben Mathiasen and Tomas Szepe for testing it.
drivers/ide/pci/serverworks.c