Denis Efremov 688033f52d PCI: pciehp: Add pciehp_set_indicators() to set both indicators
Add pciehp_set_indicators() to set power and attention indicators with a
single register write.

This is a minor optimization because we frequently set both indicators and
this can do it with a single command.  It also reduces the number of
interfaces related to the indicators and makes them more discoverable
because callers use the PCI_EXP_SLTCTL_ATTN_IND_* and
PCI_EXP_SLTCTL_PWR_IND_* definitions directly.

[bhelgaas: extend commit log, s/PCI_EXP_SLTCTL_.*_IND_NONE/INDICATOR_NOOP/
so they don't look like things defined by the spec, add function doc, mask
commands to make it obvious we only send valid commands
(pcie_do_write_cmd() does mask it, but requires more effort to verify)]
Link: https://lore.kernel.org/r/20190903111021.1559-2-efremov@linux.com
Signed-off-by: Denis Efremov <efremov@linux.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
2019-09-05 15:39:36 -05:00
..
2019-07-12 17:08:41 -05:00
2019-07-15 20:44:49 -07:00
2019-07-09 07:24:53 -05:00
2018-03-19 14:20:43 -05:00
2019-01-14 17:01:20 -06:00
2019-07-09 07:24:53 -05:00
2019-07-15 20:44:49 -07:00
2019-07-15 20:44:49 -07:00
2018-03-19 14:20:43 -05:00
2018-10-02 10:14:32 +02:00
2019-07-15 20:44:49 -07:00
2019-07-15 20:44:49 -07:00
2019-07-15 20:44:49 -07:00
2019-07-11 11:13:26 -05:00
2018-06-29 21:17:26 -05:00
2018-03-19 14:20:43 -05:00
2019-06-13 16:49:45 -05:00
2018-03-19 14:20:43 -05:00
2018-02-01 11:40:07 -06:00
2019-05-13 18:34:46 -05:00