Received: by 10.213.65.68 with SMTP id h4csp2608028imn; Mon, 9 Apr 2018 06:20:31 -0700 (PDT) X-Google-Smtp-Source: AIpwx48vEQ8l/PdKBnl4HxXF15oFyRAFcPhQbFJTdX9/ptuNSKxddUr41LUksykTz2dLvUzzqF5z X-Received: by 10.98.66.203 with SMTP id h72mr29136533pfd.156.1523280031358; Mon, 09 Apr 2018 06:20:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523280031; cv=none; d=google.com; s=arc-20160816; b=eqP4CmFDJUl8ozYd+PvC/ATquRVMBUOdgwKeoEtgrhyCi9U3AQmN7Auc7dHoDNXD6J EXVD9gsuS9vFX6eHYANQyl4XIs80CkkagCE3MmnOb6uTNVYrJCJ4sZIpm+ycKyMqwWfV P6sBBUln57UVCUb11n6/+B81VsW2T7zCSefVVAoS53jStA00VsK59eY2x5XOr8230ADW p9aD3oC5FwF/UDchjI3BEStYV2/UslL10BPbYFDG9agrx5u4rtsS5mGASqcbcXJwrau9 c4v5aC1fMd5X+Zy2YouEuNYzCTwRKqmc2U6pZtFo5wUJLnW131QasihOWkj2TOTDS8Fy YYow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date :arc-authentication-results; bh=l9I7n5J6ha5yfxXYUylpjVQ8xy4dZTQQGP/NxO6Khjc=; b=PRtkVeMHtWmXpi0KZtFCo60b1gGJAJCOR/B6eIVwJc7wcSaKA3oc7wGc/SPtpGlUQ3 zqZZRtmTnaHkR9zVXOTwFjsLiZvbf26sgii0Uos2AqDlcJAy4+J8m2h3znbTTFWcwzzd 9ymAaGoS1lh3HtqKod1FPWWyiegD6/nDEEumeIFyI8g1mLDXPBnD8mbBqGvfnEuNnL4Y wJecFtS6W8Y3ModZkPOBoRTbGGYlSyY5ZaUxlpRdQil3ATzE8GPUBiMlCYCXJIbfjz2s Y4uWPc9mbksuGbzfhY/J61F6qmavA+/EjK0HRanv83n/fjr+BpewLznUYHI7Z54G+fAp ylzA== 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 9si216055pgg.286.2018.04.09.06.19.53; Mon, 09 Apr 2018 06:20:31 -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 S1752100AbeDINRM (ORCPT + 99 others); Mon, 9 Apr 2018 09:17:12 -0400 Received: from mx2.suse.de ([195.135.220.15]:43221 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750982AbeDINRL (ORCPT ); Mon, 9 Apr 2018 09:17:11 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id A3FC2AF14; Mon, 9 Apr 2018 13:17:09 +0000 (UTC) Date: Mon, 09 Apr 2018 15:17:09 +0200 Message-ID: From: Takashi Iwai To: "Jia-Ju Bai" Cc: , , , , Subject: Re: [PATCH 1/2] sound: ad1889: Replace mdelay with usleep_range in snd_ad1889_init In-Reply-To: <1523279000-23973-1-git-send-email-baijiaju1990@gmail.com> References: <1523279000-23973-1-git-send-email-baijiaju1990@gmail.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 09 Apr 2018 15:03:20 +0200, Jia-Ju Bai wrote: > > snd_ad1889_init() is never called in atomic context. > > The call chain ending up at snd_ad1889_init() is: > [1] snd_ad1889_init() <- snd_ad1889_create() <- snd_ad1889_probe() > > snd_ad1889_probe() is only set as ".probe" in struct pci_driver. > This function is not called in atomic context. > > Despite never getting called from atomic context, snd_ad1889_init() > calls mdelay for busy 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. > > Signed-off-by: Jia-Ju Bai Since it's no urgent fix, I'll postpone to 4.18. thanks, Takashi