Received: by 10.192.165.156 with SMTP id m28csp438737imm; Wed, 11 Apr 2018 01:25:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/viau7OiUsmrtQzwrI4XMQDAE/LR/iUBFzQ9EJmxd8zJbJn0g2GqAvIy9lX+5Nw+DOOUcA X-Received: by 2002:a17:902:594c:: with SMTP id e12-v6mr4019753plj.233.1523435100392; Wed, 11 Apr 2018 01:25:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523435100; cv=none; d=google.com; s=arc-20160816; b=WKsaHXcSvq+Y2ZBMeR2Lv8yeXG7SkUP4Fq8/q0+8OiWc0P8Nzvpnf7lrVWj5yETpqB w/dL/eqLWDHV7lX0vWJQGOXUxzOQ7J2PNVKRLS+JscaMS0o/DuQpeNIkd9LsV39P70Y+ bB42tXEyKOIFoTw3kTNLNz8hwMIOef4nx+NFdKx0dqAqCmXQyzgzZ1kE5P9+dYNDUJ+/ pTe8O7etJUpDejvuDvybp6hg4ldVzxe52BG+C3gnZvKFauWGbV87RjBF4gxYQj7sOAwP n0SzlyiQynBy5WucNeUvlrcVXAhhNbJ48FAbBz5TuRODpn76IxAhWW39ZiATR1nB3KsO Rziw== 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=dMZEPb2h3IN/McnC3aV7lYzNyz1B9zu58l63ABw4dL4=; b=08fGLK1zCOHmZjmFLT5wG6F7KJ81WK7IKEPOELji70ROvzqlnU2pedaFU21rnvFr6a /iErB5sV9jhzUaYM+5FUutakMh++5vXGSgSKfqCDKZ8V7sOXNzLBpHhHNp4c7oWIZFVo bqd4+NYrAhqIpYT7GHIRtQ1Z+KMNSJlg9T3nEjYjQPEb+jhFyD7bkByuLMeBUcmCmYVz MPNDk1i4rfOP4vp4AivQSLfx/p/WAUQ1V2o9ASWpmV/z4slhXa4xawdLryJARUHiGHFt C2r77topnn9qojk5SFYC0iMX9jNBtw3EDgmVA+83G4W1r47JL1pWnI+xuRUWgi9cXlCC i0iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FGeb7JSV; 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 e15-v6si620603pli.163.2018.04.11.01.24.23; Wed, 11 Apr 2018 01:25:00 -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=FGeb7JSV; 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 S1752584AbeDKIUw (ORCPT + 99 others); Wed, 11 Apr 2018 04:20:52 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:42219 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751854AbeDKIUt (ORCPT ); Wed, 11 Apr 2018 04:20:49 -0400 Received: by mail-pl0-f65.google.com with SMTP id t20-v6so833621ply.9; Wed, 11 Apr 2018 01:20:49 -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=dMZEPb2h3IN/McnC3aV7lYzNyz1B9zu58l63ABw4dL4=; b=FGeb7JSVxyXbKNJpYZAKz2SmKuZWu/viH5mJSJ+2ZBPYzZ/c1YXdlF9LObDwqKvHuo CD6d2bMPmzq547npOFnJxSTA1sP5ZUi+OF0j2Hr5SQp7Z68HldDSPpGYq96oBY2Vw7J1 8boDdAgPFSq1Hi5djUI+SGqRaE31YIosE07avTJiXJnFUYA5xM3mBZai+ef5Gvnoa9Kz EnIG1WV0MIM+RJIzhCSmVY79+zoauQmlKGFDStxKzPmrEA3BM68u8P6GICfuWEOiwZAF /GweZwm9eOcwDxxSnYALATmVaMhn7K585rzm6zl4fO4rxhnvAfvp5rVsLKK3pOTDS7vu Iy7w== 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=dMZEPb2h3IN/McnC3aV7lYzNyz1B9zu58l63ABw4dL4=; b=U0N12zop/XkeTNR8jKjDEwm0ieJhuBPXKXV7IswXOr9x9TaHmQyhAY/7IC+B+Ytv0W UFKOUfNRYg5ispMkO0QRmq0QhUgjCEgbfiVw5I5IKELSB0wznBIKOzYzayKgcoiWgzsR iz8Cf7YJLADylqO+Y/PJx9NQWkgvSdyNdgim/vGaSt9/fFgJvKfRBNskf8Fm6vJa8D14 63HtXtIIm0lTauJpg8YPZIhCsUAIy3hChhYg/wwfbk1uyC4l18xjBpeiYlip9PDmuVFM 8Zym3SJ45iPgH2qJYbVQU027cjIWL/8HrbDnxa3bWyAWrp8qKfhZA3EYAJn63dFXWj6C uM/Q== X-Gm-Message-State: ALQs6tBJrO7ttJk2qrJfYj7ZoRfHA1Hg3WBfBkTOr3Hy1CyAIwyHRmFh 2UXuonhdQ0S0ue55QiaIPpQ= X-Received: by 2002:a17:902:5581:: with SMTP id g1-v6mr3993636pli.351.1523434848925; Wed, 11 Apr 2018 01:20:48 -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 d8sm1807052pfh.177.2018.04.11.01.20.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Apr 2018 01:20:48 -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> <20180411081724.GA4155@kroah.com> From: Jia-Ju Bai Message-ID: <865ad04e-ccbc-6144-c6ea-fc39790f861f@gmail.com> Date: Wed, 11 Apr 2018 16:20:22 +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: <20180411081724.GA4155@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:17, Greg KH wrote: > On Wed, Apr 11, 2018 at 04:11:00PM +0800, Jia-Ju Bai wrote: >> >> 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. > linux-stable is almost never the tree to use as it is almost always > 12000 patches behind what is in Linus's tree and about 20000 changes > behind linux-next. > Okay, I now know why many of my patches were not replied. I should choose correct tree in the MAINTAINERS file. Thanks :) Best wishes, Jia-Ju Bai