PCI: pciehp: Combine adjacent indicator updates
authorDenis Efremov <efremov@linux.com>
Tue, 3 Sep 2019 11:10:19 +0000 (14:10 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 5 Sep 2019 20:43:33 +0000 (15:43 -0500)
commit94719ba090e2c111272eb97c053c6cc47a7b8856
tree73ab105c3e5894f6b6f497f8010d2a17cf41c9ac
parent688033f52d7192ea8ddf617b86af0a4120247b42
PCI: pciehp: Combine adjacent indicator updates

Combine adjacent updates of power and attention indicators into a single
pciehp_set_indicators() call.  This sends one command to the hotplug
controller instead of two.

Link: https://lore.kernel.org/r/20190903111021.1559-3-efremov@linux.com
Signed-off-by: Denis Efremov <efremov@linux.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Reviewed-by: Lukas Wunner <lukas@wunner.de>
drivers/pci/hotplug/pciehp_ctrl.c
drivers/pci/hotplug/pciehp_hpc.c