diff options
author | Mayurkumar Patel <[email protected]> | 2016-09-09 09:10:17 -0500 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2016-09-14 14:24:40 -0500 |
commit | 0c923d1da394b96727b813d1e64412b72f1dc580 (patch) | |
tree | 7a023b2ba1d8efbbb9a57c97ec40ff9a65a662d4 /tools/perf/util/trace-event-scripting.c | |
parent | fad214b0aa726ee21adcac4308d388efcb89d6bd (diff) |
PCI: pciehp: Don't re-read Slot Status when queuing hotplug event
Previously we read Slot Status to learn about hotplug events, then cleared
the events, then re-read Slot Status to find out what happened. But Slot
Status might have changed before the second read.
Capture the Slot Status once before clearing the events. Also capture the
Link Status if we had a link status change.
[bhelgaas: changelog, split to separate patch]
Tested-by: Lukas Wunner <[email protected]>
Signed-off-by: Mayurkumar Patel <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Mika Westerberg <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions