From patchwork Tue Jun 1 15:09:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 451386 Delivered-To: patch@linaro.org Received: by 2002:a02:c735:0:0:0:0:0 with SMTP id h21csp1870546jao; Tue, 1 Jun 2021 08:08:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybW0izB3nUhgj2Nd731ezEkNDbV+gcpKvSya+/5Z7GJQfLElZsRmTfTtizRGHr2+8fTEPz X-Received: by 2002:a5d:8516:: with SMTP id q22mr21935652ion.173.1622560108085; Tue, 01 Jun 2021 08:08:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622560108; cv=none; d=google.com; s=arc-20160816; b=Hyq+R/1sCphQH0F0A3r39E1uN2cSXjzhVAyfOVEeF+4wtKvd9JFvz58Hswp18AYbU3 R/F/iF0eQrf5ywuROoTeq+sCtQafdHqqFz6wqZ0rX/rAPU3WWN2sIVekk/Kwa5EbMP0d p8T6UVHHGcJ+C7KR0eoxuAIQcfEWBOMIVHf0frfYsHgnjJl4cAigC7lRPTOH4PbvJjpW Cgcmq36VCRu2SYnqKDOBAWo5dWHSvw+WGqIWglFO1ysBZJ/GCSvCuOtZVQMGgBZW+sJF E1xGFlqnn1i/dIO77Z3fGD2uYg0yk6jKsGR6B7sH7zb4EeUEDrznVxbKZ6SytwUVcAo+ TGTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SquAaKfKT+XFRM7MHN5IY0d9iler2O6E6du+Hc36euc=; b=1Bbt1b/QQY2Kay0T0iqYkxEBHz7aiNUmknOxrjCz4BI8liDJAyvglEEdabmw5Rcx7p +kkYJasLt7xiyUZjWs9dFyrE4ewHVPQ2r3knt9zjH1/Qh3poCEJiUc4APbH2MCLqB8yg 6jOeYU+rrItrkoXU/Ue/Kt+IcQmUwEIG2FMjnML69NaDE9G2JKLrbJBf1AGUahJGs7i3 f/WbyiWfmDduzSu6FNgln3uzLpLw99t148fVZ1+heGx3mP8zFPIT1FflOZHXDlbU0C7g Xt5ctaHckF61y/s7PnO0iHj+Kc2mC59xD1sV02YpIDKkSMpQQV4m34Q+1r15lOIezj6u sC9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bhSI5t2L; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f4si19067448ilq.138.2021.06.01.08.08.28; Tue, 01 Jun 2021 08:08:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bhSI5t2L; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234393AbhFAPKI (ORCPT + 2 others); Tue, 1 Jun 2021 11:10:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234363AbhFAPKG (ORCPT ); Tue, 1 Jun 2021 11:10:06 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61688C06174A for ; Tue, 1 Jun 2021 08:08:25 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id o127so8408949wmo.4 for ; Tue, 01 Jun 2021 08:08:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SquAaKfKT+XFRM7MHN5IY0d9iler2O6E6du+Hc36euc=; b=bhSI5t2LXcO0cI7OzuFyOUtXr8NHcb9UAqoLbi7dW/hD4qG+aYzOG31ENCjvp6UIt8 Np0Apn2vTHHE7H31zx8xSOyZi665SxJm15SsRLfnjcYkcJEM/bmlD4iNZ21EEqE8dOg6 BKZPVAZHGbxc0gbeSaP7PtTwk+xWz414s5qrKEwuDCznGoPsZp4lnWy9OrcXstD3rg8X ARpfqUBnVbrMRhoyThCFlDOOPmEH3K7ONxRh/+dzgrLd5BKcOJoSnpTz2qgwdUWSpsIQ QHGf2UOTWZBxqlsRZ5qFZNRQjYp67qahODJrAPYqW6DDRM7jqiIo2Z7FcT8633hNVR9B JvlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SquAaKfKT+XFRM7MHN5IY0d9iler2O6E6du+Hc36euc=; b=BSrqZebYlWLenBrtdapHr8V9qny16QdPqrZuz3DWSq5EqOYu4dA1x1rovpkKQZPhJE ijr3xq93tt00hM11Pzk4PDAbFZnKXHyTsrjadve/I5xoVEYNba8Wps5CFunCb6fRd2MF Uq4zb4nkUdTMP4hXT8J9qaPLIGHLFZPzbAHc6Oihc5d6OSIOjkEE5Js8i9HRCRq9VKCA KHIoHZ4jXYVFZXoE1YE1iCVf0fMQdTMLD0QmwkR9rfvHZ32VUGmIhBT+G/760HmeGqHT gDyQqNiunEwryPQ3QfUzXvBF2xYuAHqP4q4g4PCdYCtQhQcITCvUXLYwouDZ3B+2hHow DcIA== X-Gm-Message-State: AOAM5326txT9ABwe+SI6a8Pk4PscXOhwV1L2PszK7IoSsQfJkdYC8Pvh knX/N4RJwlM7x1PIoV55iA0PGg== X-Received: by 2002:a1c:bdd6:: with SMTP id n205mr19395846wmf.74.1622560103997; Tue, 01 Jun 2021 08:08:23 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id o129sm2822237wmo.22.2021.06.01.08.08.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Jun 2021 08:08:23 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Cc: bryan.odonoghue@linaro.org, shawn.guo@linaro.org, benl@squareup.com, loic.poulain@linaro.org, bjorn.andersson@linaro.org Subject: [PATCH v5 04/12] wcn36xx: Do not flush indication queue on suspend/resume Date: Tue, 1 Jun 2021 16:09:53 +0100 Message-Id: <20210601151001.1450540-5-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210601151001.1450540-1-bryan.odonoghue@linaro.org> References: <20210601151001.1450540-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Testing on Android reveals that the flush on both suspend and resume of the firmware indication work-queue can stall indefinitely. Given this code path doesn't appear to have been exercised up until now, removing this flush to unblock this situation. Signed-off-by: Bryan O'Donoghue Tested-by: Benjamin Li --- drivers/net/wireless/ath/wcn36xx/main.c | 2 -- 1 file changed, 2 deletions(-) -- 2.30.1 diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index 0da123660fa1..9731fcbe2e7f 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -1110,7 +1110,6 @@ static int wcn36xx_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wow) wcn36xx_dbg(WCN36XX_DBG_MAC, "mac suspend\n"); - flush_workqueue(wcn->hal_ind_wq); mutex_lock(&wcn->conf_mutex); vif = wcn36xx_get_first_assoc_vif(wcn); @@ -1132,7 +1131,6 @@ static int wcn36xx_resume(struct ieee80211_hw *hw) wcn36xx_dbg(WCN36XX_DBG_MAC, "mac resume\n"); - flush_workqueue(wcn->hal_ind_wq); mutex_lock(&wcn->conf_mutex); vif = wcn36xx_get_first_assoc_vif(wcn); if (vif) {