video: fbdev: offb: Call pci_enable_device() before using the PCI VGA device
authorYongji Xie <xyjxie@linux.vnet.ibm.com>
Tue, 13 Sep 2016 05:53:46 +0000 (13:53 +0800)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 27 Sep 2016 07:55:02 +0000 (10:55 +0300)
commit5bda8f7b54687ab6397a383db38d53fd51bb1c6e
tree37c6fa829400ee4730adce898f670f87da5e5b0a
parent220be8d0e1729fc6f4bb10b009393cd0c1f5574e
video: fbdev: offb: Call pci_enable_device() before using the PCI VGA device

Currently the offb module will use the PCI VGA device as frame
buffer device without calling something like pci_enable_device().
However, this would cause some problem if we disable memory
decoding of the upstream bridge before. When the console driver
issued memory access to the VGA device, the access cannot be
supported by the bridge which will cause EEH error on Power machine.

Signed-off-by: Yongji Xie <xyjxie@linux.vnet.ibm.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/offb.c