Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4831981imm; Tue, 31 Jul 2018 00:27:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfEAV9VFiQTBHe/J1pd6lhT6NXcnOGErE3ljCwK1qqK18xzE9MeOZZyBsgsW2LN0LEEw1ER X-Received: by 2002:a63:ef10:: with SMTP id u16-v6mr19620308pgh.269.1533022051846; Tue, 31 Jul 2018 00:27:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533022051; cv=none; d=google.com; s=arc-20160816; b=Mx8rf3psPTiDkTY5hWtr0AOToZIbTWh0cE0KLgsUO2OGFgP4y1Doqr3Hz4nJgCOoKl 4WYmkbN+fKxavpMs9GU7SipLM2YjxEjEygdEHmzKMxBnCmboxot2tT/78/Ppzg1RC/7B WHN2qg5bvPflPv75BLATY+ilula70fBfG7zZZgLHep70SEwCSnbfSsw9u4CW9BKUQcWr QKUfoRnhE7mn2rHRFK6kyqqQB001Msv3/yh0zRHmafBBVHIzOQOIZ0JSWl1RvbrEALN4 zuFrZ31StEKHgbAGkGEguweVDzv7Xastct7Z0tM+YAnCkyEpX8m3ehCvydkRvMwp+X4j 4iCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:user-agent:cc:to :references:in-reply-to:from:subject:content-transfer-encoding :mime-version:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=bXNL23tkmu5NGhY/9bTQGaAyDZiQ8UvD2W/h5ygRIRo=; b=DQSOCYA8CLDSMchhgYAUaTEJp7oOFegRREtJuvNs965Vsx6yPsQ0X/1F4DOzSM/RL9 0hm3LRIHSrTNGZiRsUNDo8B4aqH0w633eMKfcloyLJQmT7XwsjsdVJ92MzK1yS5X/Fl/ ZbPk4X+RWoNGYZNWoaoZi7FH1Y3lm6KtPNUpEiTjkzSfb+kptSGifGTwe0L+N2FryJ1M UkMeexJ2p4La1Sl47Fb20Mwy3u7PklSEuQdDR2PDlfbIotH1TKvqomzVhLIbM9xtenuR d7+YqxnvngNuylakS/g48qOGMkr6bpojp7f5/XBjgzttSTTh8sgHQi1FVqMGxyjIAb9U INvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b="XFC/oBhd"; dkim=pass header.i=@codeaurora.org header.s=default header.b=gp5UetPl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t137-v6si12511139pgb.528.2018.07.31.00.27.17; Tue, 31 Jul 2018 00:27:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b="XFC/oBhd"; dkim=pass header.i=@codeaurora.org header.s=default header.b=gp5UetPl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731905AbeGaJEw (ORCPT + 99 others); Tue, 31 Jul 2018 05:04:52 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:33886 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729784AbeGaJEw (ORCPT ); Tue, 31 Jul 2018 05:04:52 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 26D726071C; Tue, 31 Jul 2018 07:25:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1533021956; bh=4QqzVQIXhQWrmiOYWBn8J2jvUQkYQusrX/6Ko5R0hGE=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=XFC/oBhd6AczJLwfK/Mc8eP99na9zFqXdyOJOq+SPJuel7HQXGw6nJCL/YvYr8BwU jxjzONuMC10Fq8Ui8xQ+0HqXSSLpx9+tKiZVdqmcTl8UmvBpTTDqQDrALCBuSUReMT +SQcTVdXuVa6gVZROoeYRxDZrLg1PQ+TG5kwclJY= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,MISSING_DATE,MISSING_MID,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-52.elisa-laajakaista.fi [88.114.240.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5AB8260397; Tue, 31 Jul 2018 07:25:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1533021955; bh=4QqzVQIXhQWrmiOYWBn8J2jvUQkYQusrX/6Ko5R0hGE=; h=Subject:From:In-Reply-To:References:To:Cc:From; b=gp5UetPlkzMGND+7YGxRDNyqnHObqW0UjcEDhYIKbngG1sdtpy3+5O3Epw8BZMvPQ mIted78Bf8aEb/aLBbCm6fFPjEo5YjVNjuCiWz2zfhB00f8pvjajAIeNon9w183eFw 9tRLpfDA/qouxGheszSt+Z0K618cIGb+WB3RUcvk= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5AB8260397 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] atmel: Replace mdelay() with msleep() in probe_atmel_card() From: Kalle Valo In-Reply-To: <20180727084535.3848-1-baijiaju1990@gmail.com> References: <20180727084535.3848-1-baijiaju1990@gmail.com> To: Jia-Ju Bai Cc: simon@thekelleys.org.uk, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jia-Ju Bai User-Agent: pwcli/0.0.0-git (https://github.com/kvalo/pwcli/) Python/2.7.12 Message-Id: <20180731072556.26D726071C@smtp.codeaurora.org> Date: Tue, 31 Jul 2018 07:25:56 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jia-Ju Bai wrote: > probe_atmel_card() is never called in atomic context. > It calls mdelay() to busily wait, which is not necessary. > mdelay() can be replaced with msleep(). > > This is found by a static analysis tool named DCNS written by myself. > > Signed-off-by: Jia-Ju Bai Patch applied to wireless-drivers-next.git, thanks. 5685bee313e9 atmel: Replace mdelay() with msleep() in probe_atmel_card() -- https://patchwork.kernel.org/patch/10546747/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches