[OEM-B][SRU][PATCH 07/11] UBUNTU: SAUCE: rsi: Fix for wowlan hibernate resume issue

Shrirang Bagul shrirang.bagul at canonical.com
Tue Jul 17 11:07:49 UTC 2018


From: Ganapathi Raju <ganapathi.kondraju at redpinesignals.com>

BugLink: https://bugs.launchpad.net/bugs/1782070

While resuming from hibernate, observed a system hang due to
a wait event for wlan initialization, which will not happen at this
instant, due to that an infinite wait is happening. Removed that
redundant wait event.

Signed-off-by: Ganapathi Raju <ganapathi.kondraju at redpinesignals.com>
(cherry picked from commit 2b1b13a8bd8c2bd948c43825e4c578f2440bac24)
Signed-off-by: Shrirang Bagul <shrirang.bagul at canonical.com>
---
 drivers/net/wireless/rsi/rsi_91x_mac80211.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/wireless/rsi/rsi_91x_mac80211.c b/drivers/net/wireless/rsi/rsi_91x_mac80211.c
index 890790c5b1e4..c9b71a9629f9 100644
--- a/drivers/net/wireless/rsi/rsi_91x_mac80211.c
+++ b/drivers/net/wireless/rsi/rsi_91x_mac80211.c
@@ -2008,8 +2008,7 @@ static int rsi_mac80211_resume(struct ieee80211_hw *hw)
 
 	if (common->hibernate_resume) {
 		common->mac_ops_resumed = true;
-		if (common->reinit_hw)
-			wait_for_completion(&common->wlan_init_completion);
+
 		/* Device need a complete restart of all MAC operations.
 		 * returning 1 will serve this purpose.
 		 */
-- 
2.17.1





More information about the kernel-team mailing list