Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1910145imu; Wed, 28 Nov 2018 17:56:57 -0800 (PST) X-Google-Smtp-Source: AFSGD/WWXUVmhhDvcvcXs46iS2IW1wLIaGMIPXK6J7FmVieEz5Ev8tcH8WgfhXgvnnHkZahNa+GE X-Received: by 2002:a17:902:6e16:: with SMTP id u22mr38741951plk.175.1543456617029; Wed, 28 Nov 2018 17:56:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543456617; cv=none; d=google.com; s=arc-20160816; b=XN+UJOT1pTnxjq5di3ho4TkFdP5JEsm0PtDEPaz+LQaN65bQj0pR+NxVUY4sE87qI4 N/O5Hj/MxOgYAv9T0ZGdjkGMKUbjTcZiuP6XY+g5yzL99Ta7vpUn6byzfUn5tN3kAlBa ASMH8NOuKk94dvsCQOMlnP7MEioiBmid75Zi2yWt4nXLU7CpVNVHanWuIlXOnc5jnGeH XOniZzMOt9esRUvg3RHXRZSYLTM2kmeSpwLDk3eclBP+QXKNVQm/BwdBXol0MSxfip+3 zVvDrARUC1eMBdXwgUIL8a/3dh2f6VcdtmZk2o1W7aJ8SGno4lr3QztAjEZeKFXvmhBp mwBQ== 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; bh=0xlLEq1ulY6epJsDII+p9Ka0heaTLS34lV6yWaj1F0M=; b=W0+O+SyeV6EhEvap4TE5umRSSlzPXD3tPXkxOmoc13M17wzVnCXp4WYO/JUuCi9O0J Ff6kYK30G3GFVKarVNlc5aeHDXivV5k0BweWmOyOdw21Gg6idZEGYPlbABRZzw9WJ0XX yyxxNcbsPE5jRVCyhq6K+J/IsXNrMiirdtSWrwcsA5Fa57+iyCD4380uVLYWzq+7JoQ/ 7YB3jw85/+b4SnNlS+Ta8BViS5OBs7kONWyCjc5pvRf5H4lx2dXonuQf1EmB1lG2m3+l sAE5/lsVGgISNatfz4cX371OnvkQiw9mObyLD0EZWmp1Sz1JXOl45Z23ltKfYSa7ODJO xR9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=oBl84pv5; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 43si377794plb.176.2018.11.28.17.56.42; Wed, 28 Nov 2018 17:56:56 -0800 (PST) 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=@chromium.org header.s=google header.b=oBl84pv5; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727448AbeK2M7l (ORCPT + 99 others); Thu, 29 Nov 2018 07:59:41 -0500 Received: from mail-io1-f67.google.com ([209.85.166.67]:36538 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726795AbeK2M7k (ORCPT ); Thu, 29 Nov 2018 07:59:40 -0500 Received: by mail-io1-f67.google.com with SMTP id m19so274229ioh.3 for ; Wed, 28 Nov 2018 17:56:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0xlLEq1ulY6epJsDII+p9Ka0heaTLS34lV6yWaj1F0M=; b=oBl84pv5w64W2C8h9mgHrMCVD/c6fzTAcMScHg9WWy2Va1E9IhyNb8dOdm0G9E6/d/ l3QX2Z+L6Wj/BpoGKDhqtyJsirVeTCf6hUt0AnBiXpTlYmaRKOVSJZRMVD1s7qMtLemV dAZpUr+Oo0VZs5+GRGQ19L1e5OxVYSgKNdyq4= 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=0xlLEq1ulY6epJsDII+p9Ka0heaTLS34lV6yWaj1F0M=; b=lPUMj5PF/0DFpmbIVxS1uEM5BcWqTxE3qNGVYv5jWBXSsLPxxcdeQgIaFobf85zSjt OO2BqulrPOC6BWan4HdmAZmAqSx7Aa2lPcaUQ4RmoclcxuPqQJayoLljYCeMYA2PgCSi bA8sAV1iJQeJXQx7JKRejzKdd80QlvMVvJ5eDcwkimr75S6quQ2p308GZxvtsX6jhtOs DBI6f9y7obQJBpJVqQNJcLQDoPXTD5gn0nFrnYjiQJlM5LULWyA1TWX9Efj6tJ7Yfzin +lqJU9EZCtJ/64K8NKR0Qy0IbcxpMRpb1VLhBawZZncy7RG+wgy08FB6ce4FKh65IUH/ PYIQ== X-Gm-Message-State: AA+aEWZj2HkIJVZxcu98HPVICEVDt9LH0/Jz8DanNRB5cQRAqt1aSjw0 WfQf/GgS5XyzcVVvG9G6Bk6JlnaFx7Ym8JSDbO2k8A== X-Received: by 2002:a6b:c948:: with SMTP id z69mr21312734iof.161.1543456560336; Wed, 28 Nov 2018 17:56:00 -0800 (PST) MIME-Version: 1.0 References: <20181128031926.7157-1-ryans.lee@maximintegrated.com> <20181128094955.GG6828@sirena.org.uk> In-Reply-To: From: Grant Grundler Date: Wed, 28 Nov 2018 17:55:48 -0800 Message-ID: Subject: Re: [PATCH V2] ASoC: max98373: Added max98373_reset for stable amp reset To: RyanS.Lee@maximintegrated.com Cc: broonie@kernel.org, Liam Girdwood , perex@perex.cz, tiwai@suse.com, Grant Grundler , Kuninori Morimoto , Benson Leung , 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, Nov 28, 2018 at 9:07 AM Ryan Lee wrote: > > >-----Original Message----- > >From: Mark Brown > >Sent: Wednesday, November 28, 2018 1:50 AM > >To: Ryan Lee > >Cc: Liam Girdwood ; Jaroslav Kysela > >; Takashi Iwai ; Grant Grundler > >; Kuninori Morimoto > >; Benson Leung > >; alsa-devel@alsa-project.org; linux- > >kernel@vger.kernel.org; ryan.lee.maxim@gmail.com > >Subject: Re: [PATCH V2] ASoC: max98373: Added max98373_reset for stable > >amp reset > > > >On Wed, Nov 28, 2018 at 03:20:16AM +0000, Ryan Lee wrote: > >> Signed-off-by: Ryan Lee > >> --- > > > >Not seeing a changelog here like I asked for :( > > Actually I added changelog as below. Do you mean this is not sufficient? The text is probably sufficient but not in a format that Mark can directly apply. Please take a quick look at Documentation/process/submitting-patches.rst. Mark wants the "commit message" to be before the '---' line. So move the "Changes:" text up to become the commit message and drop the "Changes" line. That should explain why this commit is needed and include the S-o-B line. cheers, grant > > Changes since v1 : Removed unusual repeat for amp software reset and verification. > Amp software reset will be performed once and it repeats verification maximum 3 times if it is failed. > Wait 10ms before every verification trial. Maximum 30ms delay will be applied to wait AMP idle state. > > > > >> Changes : Created max98373_reset function to minimize code duplication. > >> Changed regmap_write to regmap_update_bits. Other bits except LSB > >need to be masked. > >> Added reset verification step to make sure software reset is completed > >well. Software reset is done in 10ms in normal case. > >> Revision ID is available when the amp is in the idle state which means > >software reset is completed. > >> Software reset will be performed maximum 3 times to avoid amp reset > >failure. Generally it is done in the first trial. > >> sleep time after software reset is increased + 30ms for every retrial. > >Maximum possible msleep time is 100 ms (initial 10 ms + 30 ms * 3 times). > > > >This looks like it's supposed to be a changelog but it isn't one?