Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2235975imm; Thu, 23 Aug 2018 17:12:22 -0700 (PDT) X-Google-Smtp-Source: AA+uWPy44a9CSeXoulf3ypIkKgVHtUWwjXALf2088llzbASowvxWytYEPBD+A+9Afl9UC0j2/Jd8 X-Received: by 2002:a62:4704:: with SMTP id u4-v6mr65304989pfa.76.1535069542624; Thu, 23 Aug 2018 17:12:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535069542; cv=none; d=google.com; s=arc-20160816; b=S+XB1P6jKlmB31jmRvQz6Cj7Nfv4A9gq5Hp6VTu3vguEZuk0RuBZX9WtUIKkxGRT1m +9eCySXjTqioch5nSQQpBJc3he0TTZCQrtE7lhFxB/6iAQ2qo6Qw9q8Kddo1RtKG457l zFUjtb8PRH+bHP7xGagkEGwMJ+H7PGHJr3qhH0fc0XR3pms1lQJVUQamyZ/S2B2uk7yB oDSwOKPK8i/CArtXdfstP4Y6YgJVhU1q4Xg2SYb+Pr04lAno03vcxet4qx1eKqnYu5/U EEx2jUZdRL2Zc0Rel9xe7IOPBjZbvYcLOcO1J2REuGFVRScUifdn/sEQwUjYEVjXzDEx gipQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=UoCSvgQ7RQhA78+dPcHxGBrTqDUH9h2Z/zZv1xU16yg=; b=P9aFpUC+m1XPg/XFRHntBt+wGVC9qZVJfUdFj3hCQFgAcbSQ3QeAXOi800GX6k+wKs z9QtvK9M5ooja6woWoju9SvxTZg3bfLS9fgVzDRYITFK8ELi3Zs76Q0ckdqLBt39m583 1xSrnLfKqea03/T/S3Eg/knIfc9d2MxM7Bl23UfUR9CwOC5kqtHvqZYCULl9u23bm5XN TZygxO3AFsKl6i9Y+VXAL7VB4sYJGahWMu0L2ltL8t9nhONzyHyF+iKPnazeCzDH2OHR igrBUtfE9ElqFCuBMivq2D58EjTtEHZ4NSS9aZkJ6r46urargk1ZxNSVsrNlgnbdwSmE YM5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IvjCc8P5; 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 e12-v6si5724995pfn.322.2018.08.23.17.11.40; Thu, 23 Aug 2018 17:12:22 -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=IvjCc8P5; 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 S1727100AbeHXDkO (ORCPT + 99 others); Thu, 23 Aug 2018 23:40:14 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:34524 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726148AbeHXDkO (ORCPT ); Thu, 23 Aug 2018 23:40:14 -0400 Received: by mail-pf1-f193.google.com with SMTP id k19-v6so3642930pfi.1 for ; Thu, 23 Aug 2018 17:08:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=UoCSvgQ7RQhA78+dPcHxGBrTqDUH9h2Z/zZv1xU16yg=; b=IvjCc8P5QSgmdTQstOJQdRe1c3HaGcxUMIQKc08hNihmkcqTr1PoxmjbpWWQ/LQcUt wWF+X9lhvj/q43fn8DGg/XkZq01X2sW0Hc7iY5nFb6+cwDjcysH98eD7purPoLZztVHH RlePVEOBImoZwOeQbeSQLMWqm655OF2kqHI0afzb8bOUHW6bGIXAw2ZLTfVKv+egU4/T omQGnUa5+hz06OhrlcL5UV5v8oDLYRbg2RP61DBroWa2feMieOtXb3+EJZdGC93gFz9F 5pvfnA6WdPFqZ/xdRlgX2JmfVGDznvibYilinjv1WQuE3hL8wARRHn3lULxXcX8p79P5 YgKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=UoCSvgQ7RQhA78+dPcHxGBrTqDUH9h2Z/zZv1xU16yg=; b=RPhPo8feaNQVxt/Ruyo+pcEn7Xnl7AD+rFfaFjPFqmVP5bMR0YyE85kcx6iMHTIySK keknpvJTyOo2c8j9+Igv7iqF/vU71Biq6ycheCIUP6OS88eclm6gmW8p39xEyxB+M/KM iQD7Sgi1S/iVrSamJrvF2t5MCVT0qj6QsA7mIGxzT1JKtax2M0eKBI/03+vPHRv8i6SJ E2xpFJ2KFJMCWCkSeCZVeruN2F8H2qIeQ9ZyU0mtbEdwfFurR42XRTaXXyoI+A+Y19ZC Q3zjGe+M5MmfDPEA6UlVuDQKrAmKxLPfXMtCaHR2a3X2LYwrTxfrAjeeEpQ4ebMnQW/+ VBzA== X-Gm-Message-State: APzg51DKvUCqhjqHs5aK10FDJy+4AOCN8ZoNFKZaq35OrDKIVw8cVa0e XGasN8uSdjJrhW+fOacoua8= X-Received: by 2002:a63:d90b:: with SMTP id r11-v6mr4082150pgg.315.1535069290489; Thu, 23 Aug 2018 17:08:10 -0700 (PDT) Received: from dtor-ws ([2620:15c:202:201:3adc:b08c:7acc:b325]) by smtp.gmail.com with ESMTPSA id t14-v6sm6116424pgu.0.2018.08.23.17.08.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Aug 2018 17:08:09 -0700 (PDT) Date: Thu, 23 Aug 2018 17:08:07 -0700 From: Dmitry Torokhov To: Mark Brown Cc: ryans.lee@maximintegrated.com, Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Kuninori Morimoto , "alsa-devel@alsa-project.org" , lkml , ryan.lee.maxim@gmail.com Subject: Re: [PATCH] ASoC: max98373: Added 10ms delay after amp software reset Message-ID: <20180824000807.GF53155@dtor-ws> References: <20180823001519.20056-1-ryans.lee@maximintegrated.com> <20180823095107.GA5207@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180823095107.GA5207@sirena.org.uk> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 23, 2018 at 10:51:07AM +0100, Mark Brown wrote: > On Wed, Aug 22, 2018 at 05:31:04PM -0700, Dmitry Torokhov wrote: > > On Wed, Aug 22, 2018 at 5:21 PM Ryan Lee wrote: > > > + mdelay(10); > > > Is it really necessary for the CPU to spin for 10msec here? > > usleep_range() would be better solution. > > Or msleep() for that matter, it's not going ot be the end of the world > if we delay a bit too long. Frankly, I'd rather we did not introduce extra delays. I do not know if we use this part, but on ChromeOS we are interested in shaving as much from the boot time as possible and 10 msecs here and 10 msecs there do add up. Thanks. -- Dmitry