Commit 1f02a8b0 authored by Jeremy Higdon's avatar Jeremy Higdon Committed by James Bottomley

[PATCH] per-port LED control for sata_vsc

signed-off-by: default avatarJeremy Higdon <jeremy@sgi.com>
parent e58d2eb0
...@@ -333,6 +333,14 @@ static int __devinit vsc_sata_init_one (struct pci_dev *pdev, const struct pci_d ...@@ -333,6 +333,14 @@ static int __devinit vsc_sata_init_one (struct pci_dev *pdev, const struct pci_d
pci_set_master(pdev); 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 */ /* FIXME: check ata_device_add return value */
ata_device_add(probe_ent); ata_device_add(probe_ent);
kfree(probe_ent); kfree(probe_ent);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment