]> git.karo-electronics.de Git - linux-beck.git/commit
PCI: pciehp: Don't re-read Slot Status when handling surprise event
authorMayurkumar Patel <mayurkumar.patel@intel.com>
Tue, 23 Aug 2016 08:58:51 +0000 (08:58 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 14 Sep 2016 19:24:45 +0000 (14:24 -0500)
commit69bd3c5b28e7c988886efb3c9a7614a612eef45d
treee66ead913a65b10d3e251214d7f5ea90cd09a0c3
parent0c923d1da394b96727b813d1e64412b72f1dc580
PCI: pciehp: Don't re-read Slot Status when handling surprise event

Previously we read Slot Status when handling a surprise event.  But Slot
Status might have changed since we identified the event, and the event_type
already tells us whether to enable or disable the slot, so there's no need
to read it again.

Remove handle_surprise_event() and queue the power work directly.

[bhelgaas: changelog]
Tested-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Mayurkumar Patel <mayurkumar.patel@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Rajat Jain <rajatxjain@gmail.com>
drivers/pci/hotplug/pciehp_ctrl.c