]> asedeno.scripts.mit.edu Git - linux.git/commit
sparc32/PCI/LEON: Converge device enable path
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 21 May 2018 23:23:22 +0000 (18:23 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 21 May 2018 23:23:22 +0000 (18:23 -0500)
commit4a33b3ca53c1b566e5cc5f52e6c8413fa32fc0c0
tree0918c4feb5a07c0f271a20d81cb33e5722a6d5b0
parentc2eead0503b1409bc6954b20585f2213b7e0552d
sparc32/PCI/LEON: Converge device enable path

Most architectures turn on PCI_COMMAND_IO and PCI_COMMAND_MEMORY in
pci_enable_device() when a driver claims the device.  Sparc LEON did it in
pcibios_fixup_bus(), which is called during enumeration, before any drivers
are attached.

Implement pcibios_enable_device() for LEON so it will do the same as other
architectures.  This implementation is copied verbatim from sparc64.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
arch/sparc/kernel/leon_pci.c