All of lore.kernel.org
 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
  0 siblings, 0 replies; 17+ messages in thread
From: Brian King @ 2013-04-04 21:58 UTC (permalink / raw)
  To: linux-pci; +Cc: bhelgaas, linuxppc-dev, benh, lucaskt, klebers, brking


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] 17+ messages in thread

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

Thread overview: 17+ 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-04 21:58 ` Brian King
2013-04-05 20:11 ` Bjorn Helgaas
2013-04-05 20:11   ` Bjorn Helgaas
2013-04-05 20:11   ` Bjorn Helgaas
2013-04-06  8:00   ` Benjamin Herrenschmidt
2013-04-06  8:00     ` Benjamin Herrenschmidt
2013-04-06  8:00     ` Benjamin Herrenschmidt
2013-04-06 16:12     ` Bjorn Helgaas
2013-04-06 16:12       ` Bjorn Helgaas
2013-04-06 16:12       ` Bjorn Helgaas
2013-04-08  5:25   ` Michael Ellerman
2013-04-08  5:25     ` Michael Ellerman
2013-04-08  5:25     ` Michael Ellerman
2013-04-08 13:07     ` Brian King
2013-04-08 13:07       ` Brian King
2013-04-08 13:07       ` Brian King

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.