PCI: pciehp: Make pcie_wait_cmd() self-contained
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 13 Jun 2014 19:58:35 +0000 (13:58 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 16 Jun 2014 17:47:59 +0000 (11:47 -0600)
commit4283c70e91dcabe36f3545afabc5ee2b7d4da34a
treea21257faabcd4bff13e254e4a3c7a3446f2ca459
parent62e4492c3063048a163d238cd1734273f2fc757d
PCI: pciehp: Make pcie_wait_cmd() self-contained

pcie_wait_cmd() waits for the controller to finish a hotplug command.  Move
the associated logic (to determine whether waiting is required and whether
we're using interrupts or polling) from pcie_write_cmd() to
pcie_wait_cmd().

No functional change.

Tested-by: Rajat Jain <rajatxjain@gmail.com> (IDT 807a controller)
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
drivers/pci/hotplug/pciehp.h
drivers/pci/hotplug/pciehp_hpc.c