OSDN Git Service

sparc32/PCI/PCIC: Converge device enable path
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 21 May 2018 23:35:49 +0000 (18:35 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 21 May 2018 23:52:59 +0000 (18:52 -0500)
commitb30f46518a6c2695d389065994792efaa9c7bc75
tree8d7c643e466dec86f912c32094be3304050af699
parent4a33b3ca53c1b566e5cc5f52e6c8413fa32fc0c0
sparc32/PCI/PCIC: 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 PCIC did it in
pcibios_fixup_bus(), which is called during enumeration, before any drivers
are attached.

Implement pcibios_enable_device() for PCIC 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/pcic.c