From fd987219fce295902360df40c9ba09c59298c678 Mon Sep 17 00:00:00 2001 From: Cole Deck Date: Sun, 9 Aug 2020 23:05:16 +0000 Subject: [PATCH] try again --- bbswitch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bbswitch.c b/bbswitch.c index f3c86f0..944fcf1 100644 --- a/bbswitch.c +++ b/bbswitch.c @@ -287,7 +287,7 @@ static void bbswitch_on(void) { return; pr_info("enabling discrete graphics\n"); - pci_bridge_secondary_bus_reset(dis_dev); + //pci_bridge_secondary_bus_reset(dis_dev); if (bbswitch_acpi_on()) 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); } else { dis_dev = pdev; - pci_d3cold_enable(pdev); + pci_d3cold_disable(pdev); dis_handle = handle; pr_info("Found discrete VGA device %s: %s\n", dev_name(&pdev->dev), (char *)buf.pointer);