linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/3] powerpc: Enable boot_vga sysfs attribute for graphics adapters on Power
@ 2013-04-04 21:58 Brian King
  2013-04-05 20:11 ` Bjorn Helgaas
  0 siblings, 1 reply; 6+ messages in thread
From: Brian King @ 2013-04-04 21:58 UTC (permalink / raw)
  To: linux-pci; +Cc: klebers, brking, lucaskt, bhelgaas, linuxppc-dev


Initialize dev->dev.type such that the PCI group attributes for boot_vga
and SR-IOV can be displayed if appropriate. This fixes an issue seen on
Power preventing X from auto initializing a graphics adapter when using KMS.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
---

 arch/powerpc/kernel/pci_of_scan.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN arch/powerpc/kernel/pci_of_scan.c~powerpc_set_pci_dev_type arch/powerpc/kernel/pci_of_scan.c
--- linux/arch/powerpc/kernel/pci_of_scan.c~powerpc_set_pci_dev_type	2013-04-03 09:43:19.000000000 -0500
+++ linux-bjking1/arch/powerpc/kernel/pci_of_scan.c	2013-04-03 09:43:19.000000000 -0500
@@ -141,6 +141,7 @@ struct pci_dev *of_create_pci_dev(struct
 	dev->dev.of_node = of_node_get(node);
 	dev->dev.parent = bus->bridge;
 	dev->dev.bus = &pci_bus_type;
+	dev->dev.type = &pci_dev_type;
 	dev->devfn = devfn;
 	dev->multifunction = 0;		/* maybe a lie? */
 	dev->needs_freset = 0;		/* pcie fundamental reset required */
_

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-04-08 13:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-04 21:58 [PATCH 2/3] powerpc: Enable boot_vga sysfs attribute for graphics adapters on Power Brian King
2013-04-05 20:11 ` Bjorn Helgaas
2013-04-06  8:00   ` Benjamin Herrenschmidt
2013-04-06 16:12     ` Bjorn Helgaas
2013-04-08  5:25   ` Michael Ellerman
2013-04-08 13:07     ` Brian King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).