Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp604434imm; Fri, 27 Jul 2018 02:53:09 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe+QKkiXlngYicmS1j0MNvpoxrBJdf0UGrgdscmdxurf9Y2RqoaTPW/+gEK9xO2juuBzdVN X-Received: by 2002:a63:fc0a:: with SMTP id j10-v6mr5440549pgi.1.1532685189415; Fri, 27 Jul 2018 02:53:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532685189; cv=none; d=google.com; s=arc-20160816; b=Vi/+yQwV2jtVQ2TFsU4K4q1FbKqrzv2JOSdroiSQ6DhAQ4L/+0LL4WYTJzyMwSK47q Bh0+VvkZLKN/ws6bmJxXfaKq8eq8smmfg84ukh1aLjh07sK6T5K9+xJZWz5kQZ7naCsv rbtpOvamQZxsOBrdEckOf8Z9MZ8Y+cQkr+Igmhv+wySIy/V3mf8oF28jzSrqvhJ1D5vx f6J9X+dV/7fmKsNL3zJH8IGrUILh0xZNpKSfXi9wnJSGzaGKGIPfq4YGT8lvsrynVrMA WesfizkOTKXLJWVQ9RtZvXZ1NIGSREypbIxwN9TwOk/WS0/KxtuIdQWrpcSxyKHTcw+n RKCw== 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=Pr30jmqgUv/3ari7Fw05txxE6AUQznoabrMXqds//WI=; b=wGvq/ch6oea288cjuY07Okp6xNSyh7E1t9Rk2j2APp5qIMp8dxaXAiLbhOkzV6e5ky F0a6eSq4QhULfl5Ys8jmVldn/ld7AR7qt7mWC1byhpSXCWz6utZDDdv1pEsOxbmzWXIU Lotss75ITqYWQzGjzxs6TE9TIAbwvoB0eMa2lfMwiiaFk/uvTNcYVnC7mHHkUz9gqLiX cx5VV7RyMwlyaVw69fUkJGqut7413a4amexDCEf/Ns6wneBL002hCYKr0znnn5mz/lnt Bh8/rG3EwAdLsONCsdcqLI+S71LOeJnpmIJbGrf6THjs+qA3tHNqjAWnL8PWV2qn3hXM gTJw== 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 n11-v6si3142794plg.344.2018.07.27.02.52.54; Fri, 27 Jul 2018 02:53:09 -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 S2388512AbeG0LM2 (ORCPT + 99 others); Fri, 27 Jul 2018 07:12:28 -0400 Received: from mx2.suse.de ([195.135.220.15]:56486 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731077AbeG0LLF (ORCPT ); Fri, 27 Jul 2018 07:11:05 -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 D4363B089; Fri, 27 Jul 2018 09:49:58 +0000 (UTC) Date: Fri, 27 Jul 2018 11:49:58 +0200 Message-ID: From: Takashi Iwai To: "Jia-Ju Bai" Cc: , , , Subject: Re: [PATCH] sound: pci: cthw20k2: Replace mdelay() with msleep() and usleep_range() In-Reply-To: <20180727090143.18686-1-baijiaju1990@gmail.com> References: <20180727090143.18686-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 11:01:43 +0200, Jia-Ju Bai wrote: > > hw_pll_init(), hw_dac_stop(), hw_dac_start() and hw_adc_init() > are never called in atomic context. > They call 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