Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp602650imm; Fri, 27 Jul 2018 02:50:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeIxUlbfpPCh5XtBVlX6uI8cuhPqsj9g6Nunoa9lmr9CLXsDhWVtmYWZz6rR5mcaq90cJOJ X-Received: by 2002:a17:902:209:: with SMTP id 9-v6mr5438975plc.270.1532685036973; Fri, 27 Jul 2018 02:50:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532685036; cv=none; d=google.com; s=arc-20160816; b=CIvPKSZKErFa/zTRuxjnZ3niKWqGZRslHa8YrtoN73izYVIaMxdFqoW8pdAdFRj/VI 4tbP0UN7dJZ3Klmn3zRCZugCwTN48Yf3y6KyuUWDFxbcxjNElXkRAl8m5c1RfKI/Pqo6 FCxzvHjAIenu07yk8wIjWpKheLG7Z45Z/UqdWHrLmg5GADiOT0n0V2QeWBE1lyIBlB1r URjUhDqH4eyMbfVVMQg5ydtsaMeRhwrIXCSHq1/4+MMQIABHUEQDHm9UHMeDQZXLpuzz cbWWZJ028bKCHt47WKYFPmDQUgVlzCo+tJfwQIjigG8M+Q+B8j7tddoxADhHifhweUDt mPjw== 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=FG3+0actP2YO2kdTioPfzfafKGmuW/im2ZJhD6/FR0g=; b=mpqy1H3o3FCTRlN96/iktGGkHowfpb1v//Iz3967+14XuizQyDlAxZ7pgbWOn56J7d qdxafjetBQ5mF5j180SM0SF5Zyg5PY5YH2uwcM3+4j7LjC9HDawqg7ywwmnnUMikquer vh4G/TBi+ZEnYf2Opo2RywMFuZ/6tz07GQdnFR8ct8Q/ygmKiZNJRSycchhfOMy31nV/ W+vQ5peBReqoz6cwn09ZcGHGYk4uQaaiKNclt+hoSfeYCfo48h3oMu9yHV0OAXMmlJ62 xal2gppyktQd+h5Af7/pgFXLlq0y2Puv/WOLckbNbE+g2GDpW+4O2qVfPk/8TwUP6ZOu 6U1A== 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 p7-v6si3455266pgp.70.2018.07.27.02.50.22; Fri, 27 Jul 2018 02:50:36 -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 S2388663AbeG0LJh (ORCPT + 99 others); Fri, 27 Jul 2018 07:09:37 -0400 Received: from mx2.suse.de ([195.135.220.15]:55498 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730632AbeG0LJg (ORCPT ); Fri, 27 Jul 2018 07:09:36 -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 3B7BFAF6E; Fri, 27 Jul 2018 09:48:30 +0000 (UTC) Date: Fri, 27 Jul 2018 11:48:28 +0200 Message-ID: From: Takashi Iwai To: "Jia-Ju Bai" Cc: , , , , , , , , Subject: Re: [PATCH] sound: usb: quirks: Replace mdelay() with msleep() and usleep_range() In-Reply-To: <20180727085528.5802-1-baijiaju1990@gmail.com> References: <20180727085528.5802-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:55:28 +0200, Jia-Ju Bai wrote: > > snd_usb_select_mode_quirk(), snd_usb_set_interface_quirk() and > snd_usb_ctl_msg_quirk() are never called in atomic context. > They call mdelay() to busily wait, which is not necessary. > mdelay() can be replaced with msleep() and usleep_range(). > > This is found by a static analysis tool named DCNS written by myself. > > Signed-off-by: Jia-Ju Bai Applied, thanks. Takashi