]> git.baikalelectronics.ru Git - kernel.git/commit
vgaarb: a NULL bridge is acceptable for root devices.
authorDave Airlie <airlied@redhat.com>
Mon, 10 Oct 2011 08:29:18 +0000 (09:29 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 14 Nov 2011 10:03:15 +0000 (10:03 +0000)
commit5ba4fb9f2c84278d19bd2c64b6895b79b74f39ef
treed4fc856af59dc962a7af5117eff0587de97edfbc
parent97ecb1c0d1fdfb8548d322cff8fbb27d83f53fe6
vgaarb: a NULL bridge is acceptable for root devices.

I assumed all PCI buses had a bridge, but playing with qemu recently, I
discovered vgaarb bug where it wasn't detecting both devices shared a bridge
at the root level.

Don't check for NULL, if two buses have a NULL bridge, assume they share the
root bus.

Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/vga/vgaarb.c