Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial conversion to a PCI device using runtime PM
bbswitch will now bind a driver to the PCI device, this should remove races that can occur when a PCI device is removed after bbswitch is loaded. Fixes: - Fixed a crash on some laptops that trigger a hotplug (a problem since Linux 3.12, #100) - As a driver is bound, you cannot "accidentally" load nouveau/nvidia anymore and confuse the power state. Removed pci_set_master, there is no need for access to the PCI BARs. pci_enable_device is removed too as the memory regions are not needed. TODO: - Remove unload_state, it is a no-op. - Update load_state doc (assume ON by default). - System suspend/resume probably needs special treatment to ensure that the device is off again.
- Loading branch information
1 parent
ca16c53
commit 5c7b3f5
Showing
1 changed file
with
154 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters