pata_sis: add mode_filter method for certain sis5513 chipsets
authorDan McGee <dpmcgee@gmail.com>
Wed, 7 Sep 2011 16:23:19 +0000 (11:23 -0500)
committerJeff Garzik <jgarzik@redhat.com>
Sat, 8 Oct 2011 04:07:15 +0000 (00:07 -0400)
commitf30f9a5e7bc130c727712342dd064ae8d188b170
treeb32c45ad1dfd693eb9d0219648b4fbfeaf1039f7
parent023a0175ad4beaa14b303e133963c971ad31c338
pata_sis: add mode_filter method for certain sis5513 chipsets

This mirrors a very old commit (3160d5416f39da9d9, "sis5513: add
->udma_filter method for chipset_family >= ATA_133") to the old sis5513
IDE driver that prevents certain setups from working.

UDMA6 (ATA/133) is not supported on some chipsets and we need to ensure
this mode is not chosen even if a connected drive supports it. Port this
old patch forward to the new PATA driver to ensure UDMA5 is the highest
mode used if that is what is supported.

Kernel bugzilla #41582.

Reviewed-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/pata_sis.c