]> git.baikalelectronics.ru Git - kernel.git/commit
rtw88: pci: Power cycle device during shutdown
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Mon, 28 Sep 2020 16:55:08 +0000 (00:55 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 1 Oct 2020 13:28:09 +0000 (16:28 +0300)
commit9fd0b1a1bbf8a678bcd0e3243e4c8f4935c387fd
tree449f11adb120e0dd0e8e439e0c74d2359e6a9ec4
parentc1646cadcf90cb9e49527ea57323ea59513b978e
rtw88: pci: Power cycle device during shutdown

There are reports that 8822CE fails to work rtw88 with "failed to read DBI
register" error. Also I have a system with 8723DE which freezes the whole
system when the rtw88 is probing the device.

According to [1], platform firmware may not properly power manage the
device during shutdown. I did some expirements and putting the device to
D3 can workaround the issue.

So let's power cycle the device by putting the device to D3 at shutdown
to prevent the issue from happening.

[1] https://bugzilla.kernel.org/show_bug.cgi?id=206411#c9

BugLink: https://bugs.launchpad.net/bugs/1872984
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200928165508.20775-1-kai.heng.feng@canonical.com
drivers/net/wireless/realtek/rtw88/pci.c