Received: by 10.192.165.156 with SMTP id m28csp431637imm; Wed, 11 Apr 2018 01:15:56 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/FSQiO1qrM/g1zKwBp4QnB8mDXssfmcKTD/f0nmlJm//+T3T5W5fkNF3VOs8Qrp7E50rj6 X-Received: by 10.99.120.74 with SMTP id t71mr2750317pgc.310.1523434556301; Wed, 11 Apr 2018 01:15:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523434556; cv=none; d=google.com; s=arc-20160816; b=WtvrSb8rqBm2CQp3VwGTjNGt3NejFV2EEqwN/7wjnsM20XJBe/tu0R2AL87yZDGQ1R bfCAvl8PfgxUq6Mr22wLfoo/Tnj7bB0EUzjHZjPHpW378xIuKYiUb1Gm8Pm6RxDsksSo B4FXcSHnJHPbjb6y4Y/VDDuTehXlfduVPBd8lkUtogEuCF4y2byn2wtTGDhgvSPrPWT3 zOquANh+WaPeButCfjwj5PJbPIEqkygSgTR1wCtnt2tPdJ/yMHTA+O9/erLq7RPtZD9o tS0C5wnkeNgBQzHbqpB5WN3JpsM7nx7X8OiIgjA26OnzGk7OgAGj4ZS7kr8Qr/VM4QNj kvFQ== 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=qrh9Io6+i4bQTc9Jq9mH6vXLL+t0n/l5Qo7TmIlbfnM=; b=YKtqGsIM4UFJiTUA20wsszz3dablCipKhOxomA38vxE1VoijCEzrAVcXObKBiEOA2a 3q78aTM4UGL/LGhXa8jb2VL6g9O3Hf5DvJIIQzTxlLOKFNEBCcYlh5SxKQtC5sDGw3xl BDlo5FKGY1U+MuTKYqm95E9HnbBLLy5hj9djg1vk+iVpzCOeFZDF7b6E8/G7YQLV7ccd R/vmFP3cu84hWxVT+ML5OzPsvaJleyTZVVzGf7AJ446VTCIpr20xA0WgfohbIGG3XksC mEDJykTTMsjut99v4tLRHfNBiGMXpddqbvkXiqqrAvSQZ7PG/xYxMa2+AM9CObxVwqqD IHeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kx30GhCu; 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 o3-v6si602999pld.384.2018.04.11.01.15.19; Wed, 11 Apr 2018 01:15:56 -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=kx30GhCu; 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 S1752736AbeDKILV (ORCPT + 99 others); Wed, 11 Apr 2018 04:11:21 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:42086 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751837AbeDKILT (ORCPT ); Wed, 11 Apr 2018 04:11:19 -0400 Received: by mail-pl0-f65.google.com with SMTP id t20-v6so815316ply.9; Wed, 11 Apr 2018 01:11:18 -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=qrh9Io6+i4bQTc9Jq9mH6vXLL+t0n/l5Qo7TmIlbfnM=; b=kx30GhCu+t5W1xUg6hnH+bZbZVgVwOJlwn2YgE1YNSMqGkcwgqpcsqLpEEYbff/K+4 mBAmx0KU6CtuyUK6hmosSIsG/exYem9FcRUQea7IrUm4c5Lluaz904RN2eI9MG238pdh gzTnmx6jt9npLgM7HoiqmiW2MonDYalsg7KJByn+FNlwNrw49jc+dlHbHBGXy/2fwMfg IdZP1LwyyWbL/2cby4AyJRId87y5vM3rrS7H5Z8zlsxrK9p1KxhIjc8/kdfchsa6gy8g NS+zflYIjrlgUTYsHp2Waxy0Zey53KKO7JT/7kWZBKzBl4v3IGlhtj+W7NSa5ezqsfyN wbtQ== 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=qrh9Io6+i4bQTc9Jq9mH6vXLL+t0n/l5Qo7TmIlbfnM=; b=NvGNdN7F/7tEQ5BffeCrDqBESETM9sQHzY6DUshgABDbRAbgWVgL8rzGAeXkueJGVo bSLa6N4QW0LXRXSM8p5Xj+fD0C4nB6w10Kq1fEk1qEKQEYq412o6oWXCSu1d9PqMNPOl 0VO3QBwKyzHqmXYvk1mNhGrgj3+Ch8RdZcQoFbSpKvg5JGwxQothOkiFurTxiSm6dTDw 1TkN5fdBXk0W5tp0XhswnCggVnYaf8A92iqc7dx19J6VYpJN855QVjIHWq0/xYESJopw 8/8/CxK+fT3F12GxwGQOgj5scg4Q6gnt/dGeGUaESWpcu+sJ6jixuXqdvWehHTclMiCw pDDA== X-Gm-Message-State: ALQs6tCaMEkSHoIiYAINzbN0DVZl9X8X5JMVekBX9/pACCIV5O5pl1RP KzOpg0G5152ubU20Qj2zvrM= X-Received: by 2002:a17:902:7894:: with SMTP id q20-v6mr4052531pll.86.1523434278485; Wed, 11 Apr 2018 01:11:18 -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 c28sm2594301pfe.27.2018.04.11.01.11.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Apr 2018 01:11:17 -0700 (PDT) Subject: Re: [PATCH 1/2] staging: irda: Replace mdelay with usleep_range in stir421x_fw_upload To: Greg KH 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 References: <1523410174-1553-1-git-send-email-baijiaju1990@gmail.com> <20180411064135.GA28354@kroah.com> <20180411080311.GB2137@kroah.com> From: Jia-Ju Bai Message-ID: Date: Wed, 11 Apr 2018 16:11:00 +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: <20180411080311.GB2137@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 16:03, Greg KH wrote: > 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 Oh, sorry, I did notice the git tree in the MAINTAINERS file. I always used linux-stable. Thanks for telling me this :) Best wishes, Jia-Ju Bai