Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp604186imm; Fri, 27 Jul 2018 02:52:45 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd8QW6MWl9sN+vDaAk22c1U8YE+Gn5OtzeViSRma+q/Kr1ZbLffJB3BJ7oXENMBwwkhG6pl X-Received: by 2002:a63:dd09:: with SMTP id t9-v6mr5502816pgg.370.1532685165301; Fri, 27 Jul 2018 02:52:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532685165; cv=none; d=google.com; s=arc-20160816; b=Lp9PUjgMogyUoQwAcNFU/nTOERpcembaJqVsISCssD6Kg9hF/RgXd0lCvtWOXZLc5L AQUaSv3yHZjVP13t4sUYUlWnpbUWPIUl9lebyZxR2KCmborYyIVIM4syY3RQefQFD9ZN 8e37LgnwxKB099hUjnyaYPyF8EivKikRTAIqjEc3pw+Q335ZIm81ErM5bDep5vYKKLBM K63qJsjv/MQCFkE8zd4loEPYz4wBHxVvjsOcgB8Vx9s6vLFz2EHdKUXgNhJfSDfm+5YN ZxcRyzLIL/neJmrcW+D1F45ZpI0ZmwCPwXkBOlmHtyF5E+11KGFUlnop4sxk2maCKahc D3PQ== 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=VZdlbyR+GwHILPDTrCBVAuLoOOgGHvbsVo/4ZfKCdNQ=; b=nb7DId5DPKrTIKkuaAxpx0MdB5pVtlwjtYcfCjSdmh9/YDtyE8SgWz5+OdzlwI78HK WCWCSeIRo5jmKlUNwcwAJaFATHKU/qOt75iuaPJH9hmgb4F0rvd0ESjpHA0hxiSAzskI vC74fUiQfYfdt8n+ecjeoyiz/KSkCEHlStGqsEEGmAriQS9cY2oxSEwQPNDpORbBzQli ohTly22U5FqAwjfZlKPWop6SlS4Ma1ArsXgAXRt6mBdl/4iuidxw5UUmIK6sqzioRLBv /3sy0MZC3yr0958qW3gMHEjtPUWzumnhBUOsrd2Ez96mGWeJ9TsDJRYRrRbmueObMbmP 08QQ== 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 i124-v6si3800860pfc.110.2018.07.27.02.52.30; Fri, 27 Jul 2018 02:52:45 -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 S2389007AbeG0LK4 (ORCPT + 99 others); Fri, 27 Jul 2018 07:10:56 -0400 Received: from mx2.suse.de ([195.135.220.15]:56298 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729431AbeG0LKz (ORCPT ); Fri, 27 Jul 2018 07:10:55 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 9E526B059; Fri, 27 Jul 2018 09:49:48 +0000 (UTC) Date: Fri, 27 Jul 2018 11:49:48 +0200 Message-ID: From: Takashi Iwai To: "Jia-Ju Bai" Cc: , , , Subject: Re: [PATCH] sound: pci: cthw20k1: Replace mdelay() with msleep() In-Reply-To: <20180727085756.12440-1-baijiaju1990@gmail.com> References: <20180727085756.12440-1-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/26 (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 Fri, 27 Jul 2018 10:57:56 +0200, Jia-Ju Bai wrote: > > hw_pll_init(), hw_reset_dac() and hw_card_init() are never > called in atomic context. > They calls mdelay() to busily wait, which is not necessary. > mdelay() can be replaced with msleep(). > > This is found by a static analysis tool named DCNS written by myself. > > Signed-off-by: Jia-Ju Bai Applied, thanks. Takashi