2020-09-30 19:03:08 +00:00
|
|
|
From 1864d7b1990cc68c21bd43b5f96760a9e8f04e2c Mon Sep 17 00:00:00 2001
|
2020-06-29 14:52:34 +00:00
|
|
|
From: Dalton <dalton@ubports.com>
|
|
|
|
Date: Tue, 23 Jun 2020 20:54:12 -0500
|
2020-09-30 19:03:08 +00:00
|
|
|
Subject: [PATCH] Disable 8723cs power saving
|
2020-06-29 14:52:34 +00:00
|
|
|
|
|
|
|
The runtime power management features in the 8723cs firmware on the
|
|
|
|
PinePhone don't seem to work correctly. While we expect the chipset to
|
|
|
|
leave a low power state when it's time to send or receive data, instead
|
|
|
|
we get a delay of 10-20 seconds before any packets are sent.
|
|
|
|
---
|
|
|
|
drivers/staging/rtl8723cs-new/os_dep/linux/os_intfs.c | 7 ++++++-
|
|
|
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/drivers/staging/rtl8723cs-new/os_dep/linux/os_intfs.c b/drivers/staging/rtl8723cs-new/os_dep/linux/os_intfs.c
|
|
|
|
index 3e6ba0a0fd17..5bb850a4caf0 100644
|
|
|
|
--- a/drivers/staging/rtl8723cs-new/os_dep/linux/os_intfs.c
|
|
|
|
+++ b/drivers/staging/rtl8723cs-new/os_dep/linux/os_intfs.c
|
|
|
|
@@ -54,7 +54,12 @@ int rtw_adhoc_tx_pwr = 1;
|
|
|
|
int rtw_soft_ap = 0;
|
|
|
|
/* int smart_ps = 1; */
|
|
|
|
#ifdef CONFIG_POWER_SAVING
|
|
|
|
- int rtw_power_mgnt = PS_MODE_MAX;
|
|
|
|
+ // Setting PS_MODE_ACTIVE by default keeps the power saving code in the
|
|
|
|
+ // driver but works around an issue where the 8723cs won't leave Leisure
|
|
|
|
+ // Power Saving mode without long delays. Allows for testing different
|
|
|
|
+ // firmwares.
|
|
|
|
+ // int rtw_power_mgnt = PS_MODE_MAX;
|
|
|
|
+ int rtw_power_mgnt = PS_MODE_ACTIVE;
|
|
|
|
#ifdef CONFIG_IPS_LEVEL_2
|
|
|
|
int rtw_ips_mode = IPS_LEVEL_2;
|
|
|
|
#else
|
|
|
|
--
|
2020-09-30 19:03:08 +00:00
|
|
|
2.25.4
|
2020-06-29 14:52:34 +00:00
|
|
|
|