From patchwork Sun Dec 24 04:03:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jia-Ju Bai X-Patchwork-Id: 10131827 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1E2546037D for ; Sun, 24 Dec 2017 04:01:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 04DE128D96 for ; Sun, 24 Dec 2017 04:01:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EA21C28D9C; Sun, 24 Dec 2017 04:01:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9989A28D96 for ; Sun, 24 Dec 2017 04:01:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756822AbdLXEAx (ORCPT ); Sat, 23 Dec 2017 23:00:53 -0500 Received: from mail-pl0-f66.google.com ([209.85.160.66]:39133 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752042AbdLXEAv (ORCPT ); Sat, 23 Dec 2017 23:00:51 -0500 Received: by mail-pl0-f66.google.com with SMTP id bi12so15103897plb.6; Sat, 23 Dec 2017 20:00:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=1x5bTeXjZjlCY1V0fi1Y2ym+FYDTuOXrTwZjm1bqzXk=; b=AhOvGmCWHuRahR/jQArRYaLnMkOEwGMDj0Rsi80/CNrsKyC83lqXpNumFc165fIPZ2 p0xrvDmYxM4LniAK5hRvAxahOTWwWbGhsBa0p53yj6q6vz+jopEfkbcCG7L+L68AXLLr +vYVcbWBNBEDtebRNzf5maO9hpf/BDsbrecXZhXbrliYpU1p2qNxHuCL5rHhm8gDMKCq FbBCTH1WEOp32dxkIwLBgIik85WSM5/95E4GfPvnW7i4llmCvj+fJweY9RUcFfEQGWca CAWSOnjmDdlnvtx2z9C1yE4Y9XAaW6COy5dj8VRLzEKsRrmSHBMv/StzNOk5kCVBBIy5 d/wQ== 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; bh=1x5bTeXjZjlCY1V0fi1Y2ym+FYDTuOXrTwZjm1bqzXk=; b=PJthIzk4iy4P4oX7wUFmuislCuGh74X+jgaarRmNzFe9w2kmu9t62Nw6k6P17iPXKU Br7GgqgmG7bj4UNpkSSRICOJkj7TxEbs1xMZBzBIIm6J2NkNQQeTLHJKslji7tv8a5Ks zFJMFgjsX8ImpAzxS4SraJ5lg3KkKu3SOEXIoHaZNuCzFVHZvNncNE6EZN9hj1lGUMs3 n01/31BtgpXtD33RWanIcTztu8aS+7Gd0knXA4WA9+gM8RJmVID96NWFi+1hU29emPoo HpqXUZ2jBBBsPFQ8zU+PNO/JPYA/9Agzmod0SwYtx8cWfLe6729cJjFPWdth+aZMDMJS w8sw== X-Gm-Message-State: AKGB3mJGGmJTQNmyzzAqQD7N/BsaS2u39YKGKqmcjVcRUJzBkih1SJhd SyiKNZ180DyL7NNy0HazMRg= X-Google-Smtp-Source: ACJfBovV5Lzhp+9/eR3HLQQhMQjqvBwmF44PaQZ0IezUdPrlaie8B8vYqV0TXn2b8n1OOoSj8ybIxQ== X-Received: by 10.159.216.130 with SMTP id s2mr19459667plp.112.1514088051163; Sat, 23 Dec 2017 20:00:51 -0800 (PST) Received: from bai-oslab.tsinghua.edu.cn ([2402:f000:1:4413:459c:3cec:e067:3081]) by smtp.gmail.com with ESMTPSA id b9sm41048100pgv.44.2017.12.23.20.00.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Dec 2017 20:00:50 -0800 (PST) From: Jia-Ju Bai To: kvalo@codeaurora.org, colin.king@canonical.com, johannes.berg@intel.com, tiwai@suse.de, kstewart@linuxfoundation.org, gregkh@linuxfoundation.org, andrew.zaborowski@intel.com Cc: linux-wireless@vger.kernel.org, b43-dev@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jia-Ju Bai Subject: [PATCH] b43: Replace mdelay with msleep in b43_radio_2057_init_post Date: Sun, 24 Dec 2017 12:03:43 +0800 Message-Id: <1514088223-7411-1-git-send-email-baijiaju1990@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP b43_radio_2057_init_post is not called in an interrupt handler nor holding a spinlock. The function mdelay in it can be replaced with msleep, to reduce busy wait. Signed-off-by: Jia-Ju Bai --- drivers/net/wireless/broadcom/b43/phy_n.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/broadcom/b43/phy_n.c b/drivers/net/wireless/broadcom/b43/phy_n.c index a5557d7..5bc838e 100644 --- a/drivers/net/wireless/broadcom/b43/phy_n.c +++ b/drivers/net/wireless/broadcom/b43/phy_n.c @@ -1031,7 +1031,7 @@ static void b43_radio_2057_init_post(struct b43_wldev *dev) b43_radio_set(dev, R2057_RFPLL_MISC_CAL_RESETN, 0x78); b43_radio_set(dev, R2057_XTAL_CONFIG2, 0x80); - mdelay(2); + msleep(2); b43_radio_mask(dev, R2057_RFPLL_MISC_CAL_RESETN, ~0x78); b43_radio_mask(dev, R2057_XTAL_CONFIG2, ~0x80);