Received: by 10.192.165.148 with SMTP id m20csp409795imm; Wed, 25 Apr 2018 01:16:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/vOM/otMe3cfhED9qvADja6VDpUxRQ3XmhxuAglxexnvH1VsswLKZaTH72Gw3c6AJ8sjhT X-Received: by 2002:a17:902:a70c:: with SMTP id w12-v6mr27813509plq.74.1524644211305; Wed, 25 Apr 2018 01:16:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524644211; cv=none; d=google.com; s=arc-20160816; b=H6naYJiv8jXR755NhcBTcwfgEk6cwXCxgA8lBxGjMkGHhrd4fByE6Vlef/TLuTv/W6 eFXGlZ3NSzmjRJWrelhrpNPix+yEKbxZQJ0NY9HlRNs7d0mNDiGOz/UzwGENrlyM3NVE f9ffMP/RJ3Kb98dZjUUHS2cylJdJmGBhKwTky70EaO1904F+IZtuFacrsa8GqIRyJgU5 0r7SaIzdocIR+spqOTs3wocOeu1xg4HxKg1EzZrrsR9V2+hqFMo0ISJRW7HWiT6nyblh muhK1/lBYbFiD6v+VrcxzlBGwiAVYvGSoECRTeya95TRJgPGIQpyHGwcF1tFYkDh6k/h UPPQ== 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=YWt31z23C31fEk5bpMK65qTcF5xYGDVixKfLF92bRTQ=; b=xmDQ6XMgoHLxz9r56EAOh5z7slWvu6VOrxdHQrexjddZPW6VOEf3MReY89Z3HG7/cM SJlL69d17Ni61aUpzzLrFlhgUCSsvu+8mlgveg6FsA6mRqWpXrLLaXBUe+MobO6KIDjk yA01nvs3+nRlJkLvyJzwSQoaqbM+AAZyAVJNKFPyn0oSXErj4cAQ3tvEeXpguAYZU6Cs vMq2uto3nqwi2dDiHkQ3Rx7BZzHdnsmFMstiPxaTK21xG77stEXIEQPz2o4crVH9XY0P JyvnQrsyUrbw9r1asZTJudnt9UvDId5BKV/8AR7/lS3cSfLyfng9LWhc0BCGUaISOiuo cBwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=NmtCVuHE; dkim=pass header.i=@codeaurora.org header.s=default header.b=c+6Eeash; 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 i21si15271022pfj.208.2018.04.25.01.16.36; Wed, 25 Apr 2018 01:16:51 -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=NmtCVuHE; dkim=pass header.i=@codeaurora.org header.s=default header.b=c+6Eeash; 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 S1751359AbeDYIP2 (ORCPT + 99 others); Wed, 25 Apr 2018 04:15:28 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:48102 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750882AbeDYIPY (ORCPT ); Wed, 25 Apr 2018 04:15:24 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 98D9D60556; Wed, 25 Apr 2018 08:15:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524644123; bh=h0Fkds5mw6pcUvcDHQR13XymFfWBTXLAKeT8EEBUE7k=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=NmtCVuHE9wD8tqvmn7k2e5Q5y4tZ0p7AJACgUhiKq0VBKeJIycrH9Quj2/J7aBQJQ ncDmzYbmkEZawyyDqiIWtFREJbArl3J3VhHR3cHJTyqjIHxFXXvEm70tKJRGwF6v/x Nuy7agj3nAIZ7jUpq0YuSNA4tbfGgFleUW7dVSGM= 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 35B4960556; Wed, 25 Apr 2018 08:15:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1524644123; bh=h0Fkds5mw6pcUvcDHQR13XymFfWBTXLAKeT8EEBUE7k=; h=Subject:From:In-Reply-To:References:To:Cc:From; b=c+6Eeash+iU6TyVGcErmMAw/OyJoq8A/2PcL/cPsHmpeVBVclyKEeBPopIx48s48f tN9ZPk9ZwAeLGQgKH6ns/WNiO7/O6akAWUe+nt+as5aLy7jjP18hyRbYXbsOb4S12G +MoQCrkjoNEu10Dgnm49vKgzwulFlroYfHFgOy/g= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 35B4960556 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: [1/2] net: wireless: zydas: Replace mdelay with msleep in zd1201_probe From: Kalle Valo In-Reply-To: <1523367004-31935-1-git-send-email-baijiaju1990@gmail.com> References: <1523367004-31935-1-git-send-email-baijiaju1990@gmail.com> To: Jia-Ju Bai Cc: davem@davemloft.net, stephen@networkplumber.org, arvind.yadav.cs@gmail.com, johannes.berg@intel.com, 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: <20180425081523.98D9D60556@smtp.codeaurora.org> Date: Wed, 25 Apr 2018 08:15:23 +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: > zd1201_probe() is never called in atomic context. > > zd1201_probe() is only set as ".probe" in struct usb_driver. > > Despite never getting called from atomic context, zd1201_probe() > calls mdelay() to busily wait. > This is not necessary and can be replaced with msleep() to > avoid busy waiting. > > This is found by a static analysis tool named DCNS written by myself. > And I also manually check it. > > Signed-off-by: Jia-Ju Bai I need a review from someone else before I'm willing to take this. -- https://patchwork.kernel.org/patch/10333189/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches