rtw88: 8822c: update power sequence to v15
authorTzu-En Huang <tehuang@realtek.com>
Fri, 20 Dec 2019 09:21:49 +0000 (17:21 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 26 Jan 2020 15:38:07 +0000 (17:38 +0200)
Update card enable power sequence flow, to fix CMD11 fail after
reboot and wrong PLL clock.

Signed-off-by: Tzu-En Huang <tehuang@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/rtw8822c.c

index 655ca92..3865097 100644 (file)
@@ -3487,12 +3487,12 @@ static struct rtw_pwr_seq_cmd trans_cardemu_to_act_8822c[] = {
         RTW_PWR_CUT_ALL_MSK,
         RTW_PWR_INTF_ALL_MSK,
         RTW_PWR_ADDR_MAC,
-        RTW_PWR_CMD_WRITE, BIT(7), 0},
-       {0x0005,
+        RTW_PWR_CMD_WRITE, (BIT(4) | BIT(3)), 0},
+       {0x1018,
         RTW_PWR_CUT_ALL_MSK,
         RTW_PWR_INTF_ALL_MSK,
         RTW_PWR_ADDR_MAC,
-        RTW_PWR_CMD_WRITE, (BIT(4) | BIT(3)), 0},
+        RTW_PWR_CMD_WRITE, BIT(2), BIT(2)},
        {0x0005,
         RTW_PWR_CUT_ALL_MSK,
         RTW_PWR_INTF_ALL_MSK,