mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-25 21:54:06 +08:00
vgaarb: Keep adding VGA device in queue
If failed to find the deivice owning the boot framebuffer, try to use the first VGA device instead of the last one. Usually the 1st device is integrated GPU who owns the boot framebuffer. Signed-off-by: Aaron Ma <aaron.ma@canonical.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/1535739600-8842-2-git-send-email-aaron.ma@canonical.com
This commit is contained in:
parent
a81c9ab678
commit
3d42f1ddc4
@ -676,7 +676,7 @@ static bool vga_arbiter_add_pci_device(struct pci_dev *pdev)
|
||||
vga_arbiter_check_bridge_sharing(vgadev);
|
||||
|
||||
/* Add to the list */
|
||||
list_add(&vgadev->list, &vga_list);
|
||||
list_add_tail(&vgadev->list, &vga_list);
|
||||
vga_count++;
|
||||
vgaarb_info(&pdev->dev, "VGA device added: decodes=%s,owns=%s,locks=%s\n",
|
||||
vga_iostate_to_str(vgadev->decodes),
|
||||
|
Loading…
Reference in New Issue
Block a user