]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[libata] sata_svw: fix reversed port count
authorJeff Garzik <jeff@garzik.org>
Sat, 12 Apr 2008 04:11:35 +0000 (00:11 -0400)
committerJeff Garzik <jeff@garzik.org>
Sat, 12 Apr 2008 04:11:35 +0000 (00:11 -0400)
According to Broadcom, two chips have their port counts flipped.  The proper
count is:

0x241 is 8 ports
0x242 is 4 ports

Reported by Yohei Honda on kernel bz 10424.

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/sata_svw.c

index 840d1c4a7850e831651f897758a8005516799515..019e367b59fc3e9293df0800606010f950a31597 100644 (file)
@@ -531,8 +531,8 @@ static int k2_sata_init_one(struct pci_dev *pdev, const struct pci_device_id *en
  * */
 static const struct pci_device_id k2_sata_pci_tbl[] = {
        { PCI_VDEVICE(SERVERWORKS, 0x0240), chip_svw4 },
-       { PCI_VDEVICE(SERVERWORKS, 0x0241), chip_svw4 },
-       { PCI_VDEVICE(SERVERWORKS, 0x0242), chip_svw8 },
+       { PCI_VDEVICE(SERVERWORKS, 0x0241), chip_svw8 },
+       { PCI_VDEVICE(SERVERWORKS, 0x0242), chip_svw4 },
        { PCI_VDEVICE(SERVERWORKS, 0x024a), chip_svw4 },
        { PCI_VDEVICE(SERVERWORKS, 0x024b), chip_svw4 },
        { PCI_VDEVICE(SERVERWORKS, 0x0410), chip_svw42 },