]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: pciehp: Leave power indicator on when enabling already-enabled slot
authorAshok Raj <ashok.raj@intel.com>
Sat, 19 Nov 2016 08:32:46 +0000 (00:32 -0800)
committerDhaval Giani <dhaval.giani@oracle.com>
Mon, 16 Jan 2017 21:10:11 +0000 (16:10 -0500)
commit5604ba1205200813cd3f717d578199363eca1f68
treea0159c15abea2ffacae8a12cb980b2864868058c
parentea0a6f8efa4b2ee3dfd1068a969b42d5015c4074
PCI: pciehp: Leave power indicator on when enabling already-enabled slot

If an error occurs when enabling a slot, pciehp_power_thread() turns off
the power indicator.  But if the only error is that the slot was already
enabled, we should leave the power indicator on.

Return success if called to enable an already-enabled slot.
This is in the same spirit of the special handling for EEXISTS when
pciehp_configure_device() determines the slot devices already exist.

Orabug: 25312751

Signed-off-by: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Keith Busch <keith.busch@intel.com>
(cherry picked from commit c4ae2adedb38240be5a1a16588406980b948a3e7)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/pci/hotplug/pciehp_ctrl.c