The sata_sis driver supports SATA and PATA ports. The broken support
of both types in one controller is fixed.

the PATA-port of SiS180 controller does not support a drive present status
in the pci configspace like the other SiS PATA controllers, check skipped.

Signed-off-by: Uwe Koziolek <[EMAIL PROTECTED]>

--- a/drivers/ata/sata_sis.c    2007-05-22 11:05:38.000000000 +0200
+++ b/drivers/ata/sata_sis.c    2007-05-23 00:24:28.000000000 +0200
@@ -255,7 +255,7 @@
 {
        static int printed_version;
        struct ata_port_info pi = sis_port_info;
-       const struct ata_port_info *ppi[] = { &pi, NULL };
+       const struct ata_port_info *ppi[] = { &pi, &pi };
        struct ata_host *host;
        u32 genctl, val;
        u8 pmr;
--- a/drivers/ata/pata_sis.c    2007-05-22 11:05:38.000000000 +0200
+++ b/drivers/ata/pata_sis.c    2007-05-25 07:50:50.000000000 +0200
@@ -146,7 +146,8 @@
 
        struct pci_dev *pdev = to_pci_dev(ap->host->dev);
 
-       if (!pci_test_config_bits(pdev, &sis_enable_bits[ap->port_no]))
+       if ((pdev->device != 0x0180) && (pdev->device != 0x0181) &&
+           !pci_test_config_bits(pdev, &sis_enable_bits[ap->port_no]))
                return -ENOENT;
 
        return ata_std_prereset(ap, deadline);

-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to