diff mbox series

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

Message ID 20180717110753.6085-8-shrirang.bagul@canonical.com
State Accepted, archived
Headers show
Series Redpine: upgrades to improve throughput and stability | expand

Commit Message

Shrirang Bagul July 17, 2018, 11:07 a.m. UTC
From: Ganapathi Raju <ganapathi.kondraju@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@redpinesignals.com>
(cherry picked from commit 2b1b13a8bd8c2bd948c43825e4c578f2440bac24)
Signed-off-by: Shrirang Bagul <shrirang.bagul@canonical.com>
---
 drivers/net/wireless/rsi/rsi_91x_mac80211.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

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.
 		 */