]> git.hungrycats.org Git - linux/commitdiff
[PATCH] per-port LED control for sata_vsc
authorJeremy Higdon <jeremy@sgi.com>
Thu, 14 Oct 2004 20:32:32 +0000 (16:32 -0400)
committerJames Bottomley <jejb@titanic.il.steeleye.com>
Thu, 14 Oct 2004 20:32:32 +0000 (16:32 -0400)
signed-off-by: Jeremy Higdon <jeremy@sgi.com>

drivers/scsi/sata_vsc.c

index 880f7f115caa1f4913badb92cc31a9b94fcf6c76..1b2bf9aac1d9f8d0206c1f9fc786080451545f73 100644 (file)
@@ -333,6 +333,14 @@ static int __devinit vsc_sata_init_one (struct pci_dev *pdev, const struct pci_d
 
        pci_set_master(pdev);
 
+       /* 
+        * Config offset 0x98 is "Extended Control and Status Register 0"
+        * Default value is (1 << 28).  All bits except bit 28 are reserved in
+        * DPA mode.  If bit 28 is set, LED 0 reflects all ports' activity.
+        * If bit 28 is clear, each port has its own LED.
+        */
+       pci_write_config_dword(pdev, 0x98, 0);
+
        /* FIXME: check ata_device_add return value */
        ata_device_add(probe_ent);
        kfree(probe_ent);