• Jason Gunthorpe's avatar
    ARM: Kirkwood: Support basic hotplug for PCI-E · b73690c8
    Jason Gunthorpe authored
    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: default avatarJason Gunthorpe <jgunthorpe@obsidianresearch.com>
    Signed-off-by: default avatarJason Cooper <jason@lakedaemon.net>
    b73690c8
pcie.c 6.35 KB