projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25dc194
)
drm/bochs: Fix the ID mismatch error
author
Alistair Francis
<
[email protected]
>
Thu, 21 Feb 2019 00:33:03 +0000
(
00:33
+0000)
committer
Gerd Hoffmann
<
[email protected]
>
Thu, 21 Feb 2019 11:51:37 +0000
(12:51 +0100)
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:
7780eb9ce8
bochs: convert to drm_dev_register
To fix the error we ensure that pci_enable_device() is called before
bochs_load().
Fixes: 7780eb9ce80f ("bochs: convert to drm_dev_register")
Signed-off-by: Alistair Francis <
[email protected]
>
Reported-by: David Abdurachmanov <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
Signed-off-by: Gerd Hoffmann <
[email protected]
>
drivers/gpu/drm/bochs/bochs_drv.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/bochs/bochs_drv.c
b/drivers/gpu/drm/bochs/bochs_drv.c
index f3dd66ae990aebc8a9518127f74d63c1ee98b252..aa35007262cdb995f4ddba8392ca6da20b100a9a 100644
(file)
--- a/
drivers/gpu/drm/bochs/bochs_drv.c
+++ b/
drivers/gpu/drm/bochs/bochs_drv.c
@@
-154,6
+154,10
@@
static int bochs_pci_probe(struct pci_dev *pdev,
if (IS_ERR(dev))
return PTR_ERR(dev);
+ ret = pci_enable_device(pdev);
+ if (ret)
+ goto err_free_dev;
+
dev->pdev = pdev;
pci_set_drvdata(pdev, dev);