]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
hyperv-fb: add pci stub
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 2 Oct 2013 11:55:10 +0000 (13:55 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 9 Oct 2013 09:52:24 +0000 (12:52 +0300)
commit7ad9684721606efbfb9b347346816e1e6baff8bb
tree3cbc90799b0c613246fa22c8784f8241c0b9d0f0
parent7831b2ae4a348144be95ccac49d67aa54d6f0dc0
hyperv-fb: add pci stub

This patch adds a pci stub driver to hyper-fb.  The hyperv framebuffer
driver will bind to the pci device then, so linux kernel and userspace
know there is a proper kernel driver for the device active.  lspci shows
this for example:

[root@dhcp231 ~]# lspci -vs8
00:08.0 VGA compatible controller: Microsoft Corporation Hyper-V virtual
VGA (prog-if 00 [VGA controller])
        Flags: bus master, fast devsel, latency 0, IRQ 11
        Memory at f8000000 (32-bit, non-prefetchable) [size=64M]
        Expansion ROM at <unassigned> [disabled]
        Kernel driver in use: hyperv_fb

Another effect is that the xorg vesa driver will not attach to the
device and thus the Xorg server will automatically use the fbdev
driver instead.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/hyperv_fb.c