Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 69bd3c5b authored by Mayurkumar Patel's avatar Mayurkumar Patel Committed by Bjorn Helgaas
Browse files

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: default avatarLukas Wunner <lukas@wunner.de>
Signed-off-by: default avatarMayurkumar Patel <mayurkumar.patel@intel.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Reviewed-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: default avatarRajat Jain <rajatxjain@gmail.com>
parent 0c923d1d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment