try again

develop
Cole Deck 4 years ago
parent 219c34f5a9
commit fd987219fc

@ -287,7 +287,7 @@ static void bbswitch_on(void) {
return; return;
pr_info("enabling discrete graphics\n"); pr_info("enabling discrete graphics\n");
pci_bridge_secondary_bus_reset(dis_dev); //pci_bridge_secondary_bus_reset(dis_dev);
if (bbswitch_acpi_on()) if (bbswitch_acpi_on())
pr_warn("The discrete card could not be enabled by a _DSM call\n"); pr_warn("The discrete card could not be enabled by a _DSM call\n");
@ -436,7 +436,7 @@ static int __init bbswitch_init(void) {
dev_name(&pdev->dev), (char *)buf.pointer); dev_name(&pdev->dev), (char *)buf.pointer);
} else { } else {
dis_dev = pdev; dis_dev = pdev;
pci_d3cold_enable(pdev); pci_d3cold_disable(pdev);
dis_handle = handle; dis_handle = handle;
pr_info("Found discrete VGA device %s: %s\n", pr_info("Found discrete VGA device %s: %s\n",
dev_name(&pdev->dev), (char *)buf.pointer); dev_name(&pdev->dev), (char *)buf.pointer);

Loading…
Cancel
Save