]> git.baikalelectronics.ru Git - kernel.git/commit
libata: Check PCI sub-class code before disabling AHCI
authorGreg Felix <gregfelixlkml@gmail.com>
Thu, 28 Jul 2005 19:54:15 +0000 (15:54 -0400)
committerJeff Garzik <jgarzik@pobox.com>
Thu, 28 Jul 2005 19:54:15 +0000 (15:54 -0400)
commit26b339ae1a5e4ba4cf7ead4bcd511f8f2b81f05e
tree54160c4c0aa0970d3daa8b9a8f40c7a31f9527fe
parent7ea619fa63128c32f7a695f7bb2df2fd9fe519fe
libata: Check PCI sub-class code before disabling AHCI

This patch adds functionality to check the PCI sub-class code of an
AHCI capable device before disabling AHCI.  It fixes a bug where an
ICH7 sata controller is being setup by the BIOS as sub-class 1 (ide)
and the AHCI control registers weren't being initialized, thus causing
an IO error in piix_disable_ahci().

Signed-off-by: Gregory Felix <greg.felix@gmail.com>
drivers/scsi/ata_piix.c