]> git.baikalelectronics.ru Git - kernel.git/commit
drm/bochs: Fix the ID mismatch error
authorAlistair Francis <Alistair.Francis@wdc.com>
Thu, 21 Feb 2019 00:33:03 +0000 (00:33 +0000)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 21 Feb 2019 11:51:37 +0000 (12:51 +0100)
commit82d73e7aabddced33c62675113ae3ae1d0acbc98
tree67796cfeae87d40b97398b4d3f92951f2b0c6b7d
parent281e6f89f4639d62bc61cd02a7c9addbae97433c
drm/bochs: Fix the ID mismatch error

When running RISC-V QEMU with the Bochs device attached via PCIe the
probe of the Bochs device fails with:
    [drm:bochs_hw_init] *ERROR* ID mismatch

This was introduced by this commit:
    0555aa91b5 bochs: convert to drm_dev_register

To fix the error we ensure that pci_enable_device() is called before
bochs_load().

Fixes: 0555aa91b586 ("bochs: convert to drm_dev_register")
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reported-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20190221003231.31625-1-alistair.francis@wdc.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/bochs/bochs_drv.c