PCI: pnv_php: Enable third attention indicator state
authorTimothy Pearson <tpearson@raptorengineering.com>
Tue, 15 Jul 2025 21:39:42 +0000 (16:39 -0500)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Sat, 26 Jul 2025 07:39:20 +0000 (13:09 +0530)
commita8f2b96ca9ee87be8091fcc2746b811c173648a0
treeda9697391f52024120694942bff3c95896fe8543
parenta2a2a6fc2469524caa713036297c542746d148dc
PCI: pnv_php: Enable third attention indicator state

The PCIe specification allows three attention indicator states, on, off,
and blink.  Enable all three states instead of basic on / off control.

This changes the userspace API (writes to the sysfs "attention" file) to
match the behavior of pciehp.  Here's the comparison of previous and new
indicator behavior:

  Value  Previous   New Behavior
  -----  --------   ------------------------
    0    off        (reserved, so undefined)
    1    on         on
    2    on         blink
    3    on         off

Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
[bhelgaas: add specifics of behavior change]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/1210309411.1359866.1752615582001.JavaMail.zimbra@raptorengineeringinc.com
drivers/pci/hotplug/pnv_php.c