]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
vgacon: Set VGA struct resource types
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 1 Dec 2017 17:06:39 +0000 (11:06 -0600)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Mon, 26 Mar 2018 12:16:27 +0000 (09:16 -0300)
commitc1adba6c6207bd7eae6c84ab38116529b36fcb4e
treead5f834afe5bd17ba1f59638dc5e63475a75844f
parent373c24662e2ab69b13b9497f3a2eae86dd2a4604
vgacon: Set VGA struct resource types

BugLink: http://bugs.launchpad.net/bugs/1758886
[ Upstream commit c82084117f79bcae085e40da526253736a247120 ]

Set the resource type when we reserve VGA-related I/O port resources.

The resource code doesn't actually look at the type, so it inserts
resources without a type in the tree correctly even without this change.
But if we ever print a resource without a type, it looks like this:

  vga+ [??? 0x000003c0-0x000003df flags 0x0]

Setting the type means it will be printed correctly as:

  vga+ [io  0x000003c0-0x000003df]

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
arch/alpha/kernel/console.c
drivers/video/console/vgacon.c