Received: by 10.192.165.156 with SMTP id m28csp390221imm; Wed, 11 Apr 2018 00:21:27 -0700 (PDT) X-Google-Smtp-Source: AIpwx49liXBp938yHkh1PplciKgMWGcvfFVZH8+5X+mZpxsWYhGQJqGIMeBDXQpnCAjlNf0X4suV X-Received: by 10.99.56.83 with SMTP id h19mr2571374pgn.230.1523431287795; Wed, 11 Apr 2018 00:21:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523431287; cv=none; d=google.com; s=arc-20160816; b=jzfctqY0UXZGPp7XNTstgAM9HPOZezmnND/RiiYR7znjM+AUcXLCKQVS9Bw+s0EMNG ynHCxExkM0SRCeTkgHs8KKbqxEdO8u1xTqEd4Y3/bRlk/CaJxYWHougCnIIoRZtEYqK2 0kIfnAJ14UQJ9Wj8PD+W3viQHFO6VnCvdz+wq2tEIOICny/t2CqYuJ78ZlN0JGAasnXg P1BP1ob+DmasUCXl9gFIjowbl6TSf2yUrvfVW/w6svwdG2wprMMlx4mj6LhX9S8iN5GA qSZhJZhfS0aFassF27WZkX9rQvYZd30UZXdVQ0/RzmgSqGRmFTI4UwrO+ahYgsiAPE94 IITg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=OIhp+q3dShXECFmJI9hJXVDPTis8UhVnAGMGhKho8j8=; b=MHvF1+LuPLCj9A17iISyZN514zitiyO2u+stz/fXheQS+YbptY3ayRNLaf2pVGjiAD nsyBGoWW0U+UIFXAXEa45gnfm/EcUozuzsNvUbP0R+DPzeMJh926wpU8VcwyMqmroh17 L8I7WkTS8MOXtG5Pxcuai+MMDSCt0h1XQQ+4HfDmUdrO0yuqkVof2M5JHSlpi6F3RPQ3 4pk1Sxa2IxaLIczY0EqjJhVq0bfpR5zpOcmiv+64JuUxdR/9YQ7CdbFuIKVcPUYOHQb3 o5W6spGiJuXhXyvgoMbssdhfDHdHoZeQJ+WOm8FRpFIK6tBk/v95S8LYSQBRAb46xZjB CMUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rY229fc9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s184si361471pgc.95.2018.04.11.00.20.50; Wed, 11 Apr 2018 00:21:27 -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=@gmail.com header.s=20161025 header.b=rY229fc9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752878AbeDKHRf (ORCPT + 99 others); Wed, 11 Apr 2018 03:17:35 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:40177 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752785AbeDKHRb (ORCPT ); Wed, 11 Apr 2018 03:17:31 -0400 Received: by mail-pf0-f194.google.com with SMTP id y66so503299pfi.7; Wed, 11 Apr 2018 00:17:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=OIhp+q3dShXECFmJI9hJXVDPTis8UhVnAGMGhKho8j8=; b=rY229fc9DDYeYAI3t8bArTpWLOrogXGW4Y3XJxsFh+nkMy6KDxsKnclwzApOvUDyLm ctxcSbahJuouB+vYfm+TFfdSj9CAW0XzaLpOI4dRvDHzFCTFmqPtXwNjrObNOZXBDRgq h0Aa55k4T8U+0k1N4rJZnPrUR6GCgfInXWaU7iqEJ3z/Cl4HgUlm9H96hkHVhnjkqE/D SAqAG27uhZM1c/8SzctIDdOAm/BLCGSDYK1s4q3MZ6vHDQ2BXAZjw2jWaiottKqKmAOl /sN56ClWQMfgEX/ydoRhm7JjLfAWuDGWrXF2oxJqtO3tk/IHS/TMdi2/6rpxOmAcPdeP /ehA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=OIhp+q3dShXECFmJI9hJXVDPTis8UhVnAGMGhKho8j8=; b=KClvk8Zi9VIrmhiRKm7PlBKhQIm+IxSBELF8N2ChK+LY7jop/kFFlGA/EQGqwDistE Gk7Xf3oVBsbnWCBc2BKLPKviYCEn8/5qbvITjq1Ix/SGGJbtkwNCwjN2FJz8IBdpdkXM FqASLG9V0/sLSMibOSS7vx3v+D/Kbx79c7yKBQBhG+ZjYw4MdIDGzMlAZdQzOzZmFswY SYRnnSBbJAZJo/vZ8PuZpewFuIxeTDjbBvGcARyE7sqNwlgtias1LUgDCWJp591jHZMB gTgrCbzG3Aj6WOB2a7DWmluPe1orNRouqgmNyEnmX89ccZiT+ETL09vmV7yc1RLs61t+ +UWA== X-Gm-Message-State: ALQs6tAEwwjlaxelcsAAuRAtfekfBnZp90K13vZz4eVUSM4CEXx2wBMz Zj8DNDWrtnmDroU9nUHof+n4WjzC8o4= X-Received: by 10.98.133.28 with SMTP id u28mr3044109pfd.190.1523431050507; Wed, 11 Apr 2018 00:17:30 -0700 (PDT) Received: from ?IPv6:2402:f000:1:1501:200:5efe:166.111.70.53? ([2402:f000:1:1501:200:5efe:a66f:4635]) by smtp.gmail.com with ESMTPSA id l8sm1124869pff.126.2018.04.11.00.17.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Apr 2018 00:17:30 -0700 (PDT) Subject: Re: [PATCH 1/2] staging: irda: Replace mdelay with usleep_range in stir421x_fw_upload To: Greg KH Cc: samuel@sortiz.org, davem@davemloft.net, johan@kernel.org, arvind.yadav.cs@gmail.com, devel@driverdev.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <1523410174-1553-1-git-send-email-baijiaju1990@gmail.com> <20180411064135.GA28354@kroah.com> From: Jia-Ju Bai Message-ID: Date: Wed, 11 Apr 2018 15:17:10 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <20180411064135.GA28354@kroah.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Best wishes, Jia-Ju Bai