Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mwifiex: Add quirk resetting the PCI bridge on Surface Pro 5 devices
The most recent firmware of the 88W8897 card reports a hardcoded LTR value to the system during initialization (probably as an (unsuccessful) attempt of the developers to fix firmware crashes). This LTR value prevents certain systems like the Microsoft Surface Pro 5 from entering deep powersaving states (platform C-State 10), because the exit latency of that state would be higher than what the card can tolerate. Now the card works just the same (including the firmware crashes) when that hardcoded LTR value is reported, so it's kind of useless and only prevents us from saving power. It appears that the power management core of the PCH resets its stored LTR values when doing a function level reset of the PCI bridge device. ALso the card firmware won't report a new LTR unless it's restarted, so resetting the bridge device seems to be a good solution for resetting the LTR value to 0 and thus allowing deep powersaving states.
- Loading branch information