]> 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)
committerDave Airlie <airlied@redhat.com>
Thu, 28 Feb 2019 04:05:33 +0000 (14:05 +1000)
commitd4bbc40276fa3dd2a4ce1e3598ffec8f8586f35d
tree766a25d61df42b19752f38b7643c1d35d3f31935
parentf36be78c8fef3318f500c40a6c66a80ddbc2b22e
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:
    70d5f52941 bochs: convert to drm_dev_register

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

Fixes: 70d5f5294196 ("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>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/bochs/bochs_drv.c