From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-m963.mail.126.com ([123.126.96.3]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkfRH-0000gd-9u for ath10k@lists.infradead.org; Thu, 03 Dec 2020 03:37:52 +0000 From: zhouliangya@126.com Subject: [PATCH 1/1] ath10k_pci_wait_for_target_init() should relax cpu for other task instead of calling medelay() so that cpu can run other tasks. Signed-off-by: lzhou --- Date: Thu, 3 Dec 2020 11:37:29 +0800 Message-Id: <20201203033729.382088-2-zhouliangya@126.com> In-Reply-To: <20201203033729.382088-1-zhouliangya@126.com> References: <20201203033729.382088-1-zhouliangya@126.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ath10k" Errors-To: ath10k-bounces+kvalo=adurom.com@lists.infradead.org To: ath10k@lists.infradead.org Cc: lzhou , linux-wireless@vger.kernel.org From: lzhou --- drivers/net/wireless/ath/ath10k/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index 8ab262931dce..2941fbb6a412 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c @@ -3309,7 +3309,7 @@ int ath10k_pci_wait_for_target_init(struct ath10k *ar) /* Fix potential race by repeating CORE_BASE writes */ ath10k_pci_enable_legacy_irq(ar); - mdelay(10); + schedule_timeout_interruptible(msecs_to_jiffies(10)); } while (time_before(jiffies, timeout)); ath10k_pci_disable_and_clear_legacy_irq(ar); -- 2.17.1 _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k