ARM: Kirkwood: Support basic hotplug for PCI-E
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Wed, 21 Nov 2012 18:25:28 +0000 (11:25 -0700)
committerJason Cooper <jason@lakedaemon.net>
Wed, 30 Jan 2013 20:13:38 +0000 (20:13 +0000)
commitb73690c8f8b5d12ed32e10fb787f54e4b4ca232b
tree663c296ce01ab18b0c035c4c506b1efc575707b5
parent183cadc962a7d721c83e1922295262ea1c824ce1
ARM: Kirkwood: Support basic hotplug for PCI-E

Unconditionally register the PCI-E bus, even if the link is currently
down. When the link is brought up the bus can be scanned through
/sys/bus/pci/rescan or otherwise. Since the HW has no interrupt for
link up, userspace will have to take care of the timing.

An earlier version of this was contingent on CONFIG_HOTPLUG, but
that is being removed from the kernel.

This also fixes printing the link up/down message to be displayed
on one line (structured logging broke this?)

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/mach-kirkwood/pcie.c