Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1024157imm; Wed, 22 Aug 2018 17:33:03 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxdcE8XTc8Jy0yGuvjT8p2/rfnQEXyGonT3BzErZgdgJ6TWqRQEP/BJ++R7DJpwQjNj1haG X-Received: by 2002:a63:a441:: with SMTP id c1-v6mr22760601pgp.182.1534984383404; Wed, 22 Aug 2018 17:33:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534984383; cv=none; d=google.com; s=arc-20160816; b=kDDQt7EsS9x3VmSf4vcrBeGNV8Qg5Kf7jiWqAAKXJwKey0sQlL+LcKN4+xdERiJEE/ iBjDFHCP9vOhzXnH/AR9kolB1VprseCQwKjPWZGpFyq8jR2P2OW4KuP5i7imPnMA+Wq7 ezTOD3Qvyy008M2H8Qn7LgAWpWLmoDe+Y9yUCyv1dWoZrD2Nqb5IdCDH39exNwwW5FgS dBX0KDYY9SRg9aMF9FaSqNr7SfVm9RTk7cKeSGBygs8d79ea1vK47pRMt2RkEzWoEpY0 zBZuDcge43nwsCDytZJ7/r1DtO81f8zvREVPdCbdFQBrQXeMTittI1Ttm9ZCcj0V9ydX Vjdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=6925iiie6tuwwZJFL4Rn5JOI2tv4y6p3InezbfqJRHk=; b=eS/fI04onbsi/qZ4mFaPoUH+MHbHDJM633wLsSabzplmGOLi+1CvhoCtpi+Z033crE ETpH3Hb2rlRsG4raLVA67+TeWL6qn9nQg4h5tSxUjSLNeqNkCG6SD/Fut5JZZJ5W0Lfy vvtdxUJ5eg6CbQlF4fMFjjRExD1/xaIQa/ZqAQ3c0cEgqzouJ5aSSDBBY6tiZhPbvKnQ J7Lq3nAHxYVBfnSVTd2DdkfczKt9jSSHMjOL/dp6tdOBgOaYhDjeTAVWd13tu+MKjK2m EXOCQK0NMjA3hbXX4D4YbpVncOSCxW68nzRDKjBgy2CyO4W49For4SyNPIhOXmFxxKW3 EsMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JCkxaUvQ; 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 s29-v6si2874473pgn.47.2018.08.22.17.32.47; Wed, 22 Aug 2018 17:33:03 -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=JCkxaUvQ; 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 S1727629AbeHWD6U (ORCPT + 99 others); Wed, 22 Aug 2018 23:58:20 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:38086 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727322AbeHWD6U (ORCPT ); Wed, 22 Aug 2018 23:58:20 -0400 Received: by mail-lj1-f195.google.com with SMTP id p6-v6so2787928ljc.5 for ; Wed, 22 Aug 2018 17:31:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6925iiie6tuwwZJFL4Rn5JOI2tv4y6p3InezbfqJRHk=; b=JCkxaUvQwln0nGhaYjgL/au+TN8ozebCjrQt9cQIbR6iiRY/IPFxhw99TmeGXGMqaN +76qQtD1/A1TGhCxZaWk/O4MmWGqsqhrwVZt/5N5o5EcHiUqj4+bRFalkysRI0AuQTU8 adiVG1jyOoEdH3KCr/8GYmfokQ2Czl9bOfIk7ZRYvj4Z9BVNLXs0vSs8SOZRW6cZk4ye l/5YSPvsDTmwC+9G83HgQrNVWUXF4tIEcd6oBJqCd61ycIElclJKRzldsNuX0a7Tbo1h Nl/9ZthyHaYM6ihbX6Ll7yfDDvk9mHG0yjk9HPpEK6C7855QsoAArHAsE7k4NDji2mBr qkQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6925iiie6tuwwZJFL4Rn5JOI2tv4y6p3InezbfqJRHk=; b=kSDluCLMTRiFhYP9Ls8he1GaxDRrnC899OBsoBLL0nav3C5d0rviX5vaZXyo07j9zN Z6jkuv8hsqtYOXXZ/DDuguXuZR67BQHKinrSx2RbMQ6jd12neg84JRS9Vh2lW3LuR3Tm GZX84KHV7+3NQdjByFlQfjAnibtaJPFyZYniG5run/dhwtHK/UXEoVJwbyACSZ2oMU/i uDW44/LpyZLFEoRxLzqsjF0ph/6c5kq11a21YClGqMKx3NG6gTte3q2JZzP1N2rChpiL R6eqUvjHm899GXiPDnxsBSLLvUpSvGp4qgcmKrhrJsWrh6Rzc0Trm5RnJkTlZFPWAiYM 13fA== X-Gm-Message-State: APzg51Dj+AI8axRJVZBvcA9TECfGNoBxQl6gi7jOh9YlGrfPYYFK0Asi 6+RXCo0Ainy6zuSoelZ4Pm0B1TBTkWmGzYRtDfA= X-Received: by 2002:a2e:1290:: with SMTP id 16-v6mr6334452ljs.94.1534984276375; Wed, 22 Aug 2018 17:31:16 -0700 (PDT) MIME-Version: 1.0 References: <20180823001519.20056-1-ryans.lee@maximintegrated.com> In-Reply-To: <20180823001519.20056-1-ryans.lee@maximintegrated.com> From: Dmitry Torokhov Date: Wed, 22 Aug 2018 17:31:04 -0700 Message-ID: Subject: Re: [PATCH] ASoC: max98373: Added 10ms delay after amp software reset To: ryans.lee@maximintegrated.com Cc: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Kuninori Morimoto , "alsa-devel@alsa-project.org" , lkml , ryan.lee.maxim@gmail.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 22, 2018 at 5:21 PM Ryan Lee wrote: > > Signed-off-by: Ryan Lee > --- > Changes : Applied 10ms delay after amp software reset. > 10ms guard time is required for stability. > sound/soc/codecs/max98373.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/sound/soc/codecs/max98373.c b/sound/soc/codecs/max98373.c > index 2764fae..6aaff03 100644 > --- a/sound/soc/codecs/max98373.c > +++ b/sound/soc/codecs/max98373.c > @@ -730,6 +730,7 @@ static int max98373_probe(struct snd_soc_component *component) > /* Software Reset */ > regmap_write(max98373->regmap, > MAX98373_R2000_SW_RESET, MAX98373_SOFT_RESET); > + mdelay(10); Is it really necessary for the CPU to spin for 10msec here? usleep_range() would be better solution. > > /* IV default slot configuration */ > regmap_write(max98373->regmap, > @@ -818,6 +819,7 @@ static int max98373_resume(struct device *dev) > > regmap_write(max98373->regmap, > MAX98373_R2000_SW_RESET, MAX98373_SOFT_RESET); > + mdelay(10); > regcache_cache_only(max98373->regmap, false); > regcache_sync(max98373->regmap); > return 0; > -- > 2.7.4 > Thanks. -- Dmitry