Received: by 10.192.165.156 with SMTP id m28csp424363imm; Wed, 11 Apr 2018 01:07:01 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+rxAd5jy3BBMu6+7lhV6EKmskqu86oG558xzOit/eiC4yqmRcKy0rIGOUQhuYC8ZHcYITW X-Received: by 2002:a17:902:76c3:: with SMTP id j3-v6mr3915286plt.257.1523434021871; Wed, 11 Apr 2018 01:07:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523434021; cv=none; d=google.com; s=arc-20160816; b=BG059JqbJlflj8k/GJJ2qPwVoaZUcajTReqzcH4L8bIj/GoQfRMTqa+LUkhmtwubKA KDcpuJF/24/tdBhaIZcKxKVr3f4pzid56foXg/xOsId79nFnLZ6AWpNUceB+d/1qXYTx yP+q8vDsMUC2d5QP1F8x1VqGEM7eG8JiYGzGq7ql4GToQyn5vMjHhEzb24Z0B2yI3+UN m5GEc+sEBpSgBmy0ZVZMS6CiZaZtIq1WxJIQVkuki4C9iH0galRktZ8Lhd/suMHBgW3P 0e9zC2ZBt+VYbog9uqeHRO15Oe6lSIPL4C2FFGUOCEUtlrxYnhPDkVF77oZYDdFpHPGj 8RZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Ay533MHcN1DQuJAubRkQVkEyBKszcDfj43FcRYpbz9M=; b=twNiEg4r49sTLC+6HDYeEgclbebjxumh6s8Rep/B2qVEK6SUl5yseMJtq6EXhqfyOe QbuzN5I+4X0FKIuSx5ndU6st7HcNYg4xrHUow57pKBP/izAiinsB+fFY+2gHeLMridbd wrKIgW7evuqaCYVQgNbw4DlNSJPej4+xt6BGi7dVJVTzkQm15asL9HwcLuA6DE9DmDi8 NnXe1f4gSXwyUvRhbz/xAy0uC/fr/d/qV79ly55Y52Cynu1CXQwAMC9Ll65RfNlAU1k9 BupJbHqMWzBc1WUXWq24lPuYqwa+711IlcFx/dWgPonCMGfu5cd89SHbQFRRfCk6Lz9k EmqQ== ARC-Authentication-Results: i=1; mx.google.com; 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 z33-v6si598367plb.694.2018.04.11.01.06.24; Wed, 11 Apr 2018 01:07:01 -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; 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 S1752068AbeDKID0 (ORCPT + 99 others); Wed, 11 Apr 2018 04:03:26 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:44326 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751734AbeDKIDY (ORCPT ); Wed, 11 Apr 2018 04:03:24 -0400 Received: from localhost (unknown [37.173.10.135]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id CE8D6C9B; Wed, 11 Apr 2018 08:03:22 +0000 (UTC) Date: Wed, 11 Apr 2018 10:03:11 +0200 From: Greg KH To: Jia-Ju Bai Cc: devel@driverdev.osuosl.org, samuel@sortiz.org, netdev@vger.kernel.org, johan@kernel.org, linux-kernel@vger.kernel.org, arvind.yadav.cs@gmail.com, davem@davemloft.net Subject: Re: [PATCH 1/2] staging: irda: Replace mdelay with usleep_range in stir421x_fw_upload Message-ID: <20180411080311.GB2137@kroah.com> References: <1523410174-1553-1-git-send-email-baijiaju1990@gmail.com> <20180411064135.GA28354@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 11, 2018 at 03:17:10PM +0800, Jia-Ju Bai wrote: > > > On 2018/4/11 14:41, Greg KH wrote: > > On Wed, Apr 11, 2018 at 09:29:34AM +0800, Jia-Ju Bai wrote: > > > stir421x_fw_upload() is never called in atomic context. > > > > > > The call chain ending up at stir421x_fw_upload() is: > > > [1] stir421x_fw_upload() <- stir421x_patch_device() <- irda_usb_probe() > > > > > > irda_usb_probe() is set as ".probe" in struct usb_driver. > > > This function is not called in atomic context. > > > > > > Despite never getting called from atomic context, stir421x_fw_upload() > > > calls mdelay() to busily wait. > > > This is not necessary and can be replaced with usleep_range() 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 > > > --- > > > drivers/staging/irda/drivers/irda-usb.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > Please, at the very least, work off of Linus's tree. There is no > > drivers/staging/irda/ anymore :) > > > > Okay, sorry. > Could you please recommend me a right tree or its git address? Have you looked in the MAINTAINERS file? Worst case, always use linux-next. greg k-h