Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3218296pxu; Tue, 15 Dec 2020 01:22:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzyZJFDAvk2kN4o1d7uLuiTNCRFEILKFmd0eOwZq9mQAavkBcqOF7G5l6e1G70ByPp522ZL X-Received: by 2002:a50:9e8b:: with SMTP id a11mr28145395edf.276.1608024156725; Tue, 15 Dec 2020 01:22:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608024156; cv=none; d=google.com; s=arc-20160816; b=OloufT1jSXZ5ANBVSGbClidOgNcgBPwNm67kqwQO+9NSLv+XSnH1rq57eYCP3OZsza HxCZ+LmPGfaoIkqb33Ckg2hgVIZr0cGXhkgEz6Xgke4WGo+mBqzOPHEIdpwFzGLbE3K3 L7bQN9xxFsmH3/bt0OiP51sJSucB3yVg5vAL9Y4yGC8w8mg6AV5cjQXI1y6BrWMfuTeu lbXt/on5vPVY3hLWn8H5tX2XFN3pIqAzmc0gBW+hT/QDxslOjtvx+rvFH317RzXofxZv SvlH5ODSuOwXxxj925skfmp+Sc6yQzBQUwr/lPp7YHAaae5Q5JsZqQl2ubkdwfLNE713 MIfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=bkM2HbhDcW0W7natkzNnj9048me2YUlGqvZ/Ms8LWRY=; b=qPnV/bfwdhMqWvLBmJ2FgV+0PTRuvGPaayfzTGUSWZbpAbOQYSzi5Vpf/mgkqiuATp kbT5ZZ9668RexEi6FGP0d1h2RYd7wsRKD+cD/lvekUbM24xn+tv7ubufnDlE+gViaW38 jfv30z8tdlZhg8ApAeNTodmp7vMqRRv5/AYc1BI5lYVLHigjnu/JFQzvkz0CChM69rIN bN0Pzvs/VoGlIn+NHSn0GXQKm79i6zENuvwPyI3iF0Sgi97+Czf/MGfeITfU3yX7Roju gWLXJ7yGZ7MgCmb8Lg2rPX9qGGroe9KI/3oVQiNCAO/4Fei1o/s1qPGwnZozWPkqbq2Z e4pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=v+qyurL3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p89si549922edp.328.2020.12.15.01.22.11; Tue, 15 Dec 2020 01:22:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=v+qyurL3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727820AbgLOJTI (ORCPT + 99 others); Tue, 15 Dec 2020 04:19:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727724AbgLOJS4 (ORCPT ); Tue, 15 Dec 2020 04:18:56 -0500 Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC29EC0617A7 for ; Tue, 15 Dec 2020 01:18:09 -0800 (PST) Received: by mail-qk1-x742.google.com with SMTP id b64so14374947qkc.12 for ; Tue, 15 Dec 2020 01:18:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=bkM2HbhDcW0W7natkzNnj9048me2YUlGqvZ/Ms8LWRY=; b=v+qyurL3slnKuwSPDsELpzzsc50fSVMPcAZBbsFiRPhaPFh3tabqlSbjpu3erjAZXl Ld6OYWnssIrKYY12qg5+6UQxLhjD/FbSa6bmJGGBpCP666O6EqyGHzKv4BIqGqT1fOlj zyitO2VGDTL5UBBj+hC1sIJg+wcA2feF+VMuU+waAOrkUy+Oz4H2fdPi2jAKk/36QgX1 1kKJykJSn8JxzTULwyOL2hpnA/ejDukDh7FzTO5TDAP7BSxr54VIJYz601bg2JyigPYI Q1T/3EpnvxupDzoR/OR9yIThXAssgKCxpnQLvJw3f6ZS4ENYRscJr3sem5ivPulPCr+/ B1mg== 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:content-transfer-encoding; bh=bkM2HbhDcW0W7natkzNnj9048me2YUlGqvZ/Ms8LWRY=; b=FRA8oOQDU0YytyLaG40vrgg4tQFk8uZLfKga8krFXYInCXS0m2/1WvhNEeFxAzKvB+ a4h/gyXAtqNE0AAsqlxBJrQ86X6hDbDaUQGscAEt5S25jyou+gqpn7w1MXiTMi7rsgrH jgUkWenE0LJg5NrztWkGEpqsgXyCV8dw0CyLeF9Gx5fL88XPqmbYPl9UfapdF0Y3IEhF rsDYbFl69rliTu7ThuqkU/yb5BL1+ch6C3vMUUFNGZTbqf4s+xEwL3G/miVxZuLxnMJW k/s9s5tnkC3lN6NSM/wj1Qq51MCA5vbVmVRfeIbX86oAg7VkTwZfM3JPJAQssjbB7k+M FDow== X-Gm-Message-State: AOAM5301+6zIVYi+QvzZvUhLEgQ9VEo5gN6pqyjsZVIsrQbQ6XcIh8M8 CdWtaYu90TCQS1/xLxGia58kJpUQgbtu1Cg5LngGjQ== X-Received: by 2002:ae9:e855:: with SMTP id a82mr38490647qkg.300.1608023888983; Tue, 15 Dec 2020 01:18:08 -0800 (PST) MIME-Version: 1.0 References: <20201211141656.24915-1-mw@semihalf.com> In-Reply-To: From: Marcin Wojtas Date: Tue, 15 Dec 2020 10:17:57 +0100 Message-ID: Subject: Re: [PATCH] mmc: sdhci-xenon: fix 1.8v regulator stabilization To: Adrian Hunter Cc: Linux Kernel Mailing List , linux-mmc@vger.kernel.org, Ulf Hansson , Ziji Hu , Grzegorz Jaszczyk , Tomasz Nowicki , Kostya Porotchkin , Alex Leibovich , stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org wt., 15 gru 2020 o 09:04 Adrian Hunter napisa=C5= =82(a): > > On 11/12/20 4:16 pm, Marcin Wojtas wrote: > > From: Alex Leibovich > > > > Automatic Clock Gating is a feature used for the power > > consumption optimisation. It turned out that > > during early init phase it may prevent the stable voltage > > switch to 1.8V - due to that on some platfroms an endless > > platfroms -> platforms > > > printout in dmesg can be observed: > > "mmc1: 1.8V regulator output did not became stable" > > Fix the problem by disabling the ACG at very beginning > > of the sdhci_init and let that be enabled later. > > > > Fixes: 3a3748dba881 ("mmc: sdhci-xenon: Add Marvell Xenon SDHC core fun= ctionality") > > Signed-off-by: Alex Leibovich > > Signed-off-by: Marcin Wojtas > > Cc: stable@vger.kernel.org > > Acked-by: Adrian Hunter > Thank you, I'll repost right away with the typos correction. Best regards, Marcin > > --- > > drivers/mmc/host/sdhci-xenon.c | 7 ++++++- > > 1 file changed, 6 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/mmc/host/sdhci-xenon.c b/drivers/mmc/host/sdhci-xe= non.c > > index c67611fdaa8a..4b05f6fdefb4 100644 > > --- a/drivers/mmc/host/sdhci-xenon.c > > +++ b/drivers/mmc/host/sdhci-xenon.c > > @@ -168,7 +168,12 @@ static void xenon_reset_exit(struct sdhci_host *ho= st, > > /* Disable tuning request and auto-retuning again */ > > xenon_retune_setup(host); > > > > - xenon_set_acg(host, true); > > + /* > > + * The ACG should be turned off at the early init time, in order > > + * to solve a possile issues with the 1.8V regulator stabilizatio= n. > > a possile -> possible > > > + * The feature is enabled in later stage. > > + */ > > + xenon_set_acg(host, false); > > > > xenon_set_sdclk_off_idle(host, sdhc_id, false); > > > > >