From: Bjorn Helgaas Date: Fri, 13 Jun 2014 19:58:35 +0000 (-0600) Subject: PCI: pciehp: Make pcie_wait_cmd() self-contained X-Git-Tag: cleanup-for-v3.18~155^2~1^3~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4283c70e91dcabe36f3545afabc5ee2b7d4da34a;p=pandora-kernel.git 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 (IDT 807a controller) Signed-off-by: Bjorn Helgaas Acked-by: Yinghai Lu --- Reading git-diff-tree failed