diff options
author | Rajat Jain <rajatxjain@gmail.com> | 2014-02-20 17:42:31 -0800 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-04-24 16:47:09 -0600 |
commit | 476a357fd9045a4c91faa055fadabf550aedb8c5 (patch) | |
tree | e2c721314574e9e7607365c885128d4e03a5485d /drivers/pci/hotplug | |
parent | 17f830bb83ff64533f02cfd4b114d4a5957c2ee7 (diff) | |
download | blackbird-op-linux-476a357fd9045a4c91faa055fadabf550aedb8c5.tar.gz blackbird-op-linux-476a357fd9045a4c91faa055fadabf550aedb8c5.zip |
PCI: pciehp: Acknowledge spurious "cmd completed" event
In case of a spurious "cmd completed", pcie_write_cmd() does not clear it,
but yet expects more "cmd completed" events to be generated. This does not
happen because the previous (spurious) event has not been acknowledged.
Fix that.
Signed-off-by: Rajat Jain <rajatxjain@gmail.com>
Signed-off-by: Rajat Jain <rajatjain@juniper.net>
Signed-off-by: Guenter Roeck <groeck@juniper.net>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/hotplug')
-rw-r--r-- | drivers/pci/hotplug/pciehp_hpc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/hotplug/pciehp_hpc.c b/drivers/pci/hotplug/pciehp_hpc.c index d7d058fa19a4..1463412cf7f8 100644 --- a/drivers/pci/hotplug/pciehp_hpc.c +++ b/drivers/pci/hotplug/pciehp_hpc.c @@ -159,6 +159,8 @@ static void pcie_write_cmd(struct controller *ctrl, u16 cmd, u16 mask) pcie_capability_read_word(pdev, PCI_EXP_SLTSTA, &slot_status); if (slot_status & PCI_EXP_SLTSTA_CC) { + pcie_capability_write_word(pdev, PCI_EXP_SLTSTA, + PCI_EXP_SLTSTA_CC); if (!ctrl->no_cmd_complete) { /* * After 1 sec and CMD_COMPLETED still not set, just |