From: Jason Gunthorpe Date: Tue, 1 Oct 2013 17:58:00 +0000 (-0600) Subject: PCI: mvebu: Dynamically detect if the PEX link is up to enable hot plug X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~49^2~1^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f352f0e6c0fa2dc608812df297769789b7ecc51;p=pandora-kernel.git PCI: mvebu: Dynamically detect if the PEX link is up to enable hot plug Otherwise hotplugging the PEX doesn't work at all since the driver detects the link state at probe time. Simply replacing the two tests of haslink with a register read is enough to fix it. Tested on kirkwood with repeated plug/unplug of the link partner. Signed-off-by: Jason Gunthorpe Acked-by: Thomas Petazzoni Tested-by: Thomas Petazzoni Signed-off-by: Jason Cooper --- Reading git-diff-tree failed