Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp68242pxp; Wed, 16 Mar 2022 00:06:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziABLnjn+Y1F/Y38087ap3XN4rZ7l4+AC2Inq09JxpqRZjbg9SjEF2q+hv18H8MxQ9DWFc X-Received: by 2002:a50:baa8:0:b0:415:b0bc:6353 with SMTP id x37-20020a50baa8000000b00415b0bc6353mr28839249ede.220.1647414385002; Wed, 16 Mar 2022 00:06:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647414384; cv=none; d=google.com; s=arc-20160816; b=DY8b6hm81X7rYBFwKw8VzMM4pP35ylETwKQwz7uFI0fYllNF2FOmcZVfefnHLTtGRx UKVsGl14A/EL/tlMPF5uN13tlQkGMrp77hZdRNk26w7Dnssm6E9dhTMZkfcZC5wo0xhA AIc2YodpbGhmJBSE3pUdqnZYlSutFCntWLySF93PmEfFwB+mf4RyednSIliLgL5cH4bT TRphPE75sTW642My2AgKvqMiLqXDjs3j2LX0Sd/EOz3+PnWfJVMBI+iMNh534Bo/TWRO 8HmfZqQnW3HReEx/avS9MCd2p+W/QQkmuq4scjgYUG/NcrtMoF9iarx+fgZ2sF5kKvr5 yQbg== 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=nhmwtf/VjoQV7F5h0NhBM6NJo4NB3/oDyqq5QgKUcBo=; b=vDmBKCE8gHakB5g3KshCQpKOcmpT/YZurM2S1JEcO3C7fzklmsjeTpTZeJtMVpY7/o x2+yDwwBMI6OCKHJCOLFb1LskIdogdiZWMdyZSmw3u4Bl9zGoG+ykEFgmuKPb4oXT0la ecKn+TI9Vc1bzZiLaUhiZQZgxdUjApd1T8/Q7iOF1W+PgL9IV0CLFszAe0oGoFLC1tyz w77tzXNiDTLOWkpUsd44hV8XuSHJABDwVF+hsGLfGI4/0BFOU+qIGLn+WUymT5/s6QVt yhvGeHgzccO9avQa8obUuCPrqqqgrzAiHK/jczpzwfPBeDpQ1T9Be4cYJ3PUa1sTOyc5 ELyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf-com.20210112.gappssmtp.com header.s=20210112 header.b=XK6ukyJc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o4-20020a50fd84000000b0041599071e8asi800982edt.24.2022.03.16.00.05.46; Wed, 16 Mar 2022 00:06:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@semihalf-com.20210112.gappssmtp.com header.s=20210112 header.b=XK6ukyJc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347362AbiCPBFC (ORCPT + 99 others); Tue, 15 Mar 2022 21:05:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236125AbiCPBFB (ORCPT ); Tue, 15 Mar 2022 21:05:01 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCA60B87E for ; Tue, 15 Mar 2022 18:03:47 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id q5so1146296ljb.11 for ; Tue, 15 Mar 2022 18:03:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=nhmwtf/VjoQV7F5h0NhBM6NJo4NB3/oDyqq5QgKUcBo=; b=XK6ukyJcvRudCRFreqwkI/ZibKG5OxRAZAZKt0vdZYPRwhihL8jVgAQutWBInC/+U8 oN5bKJWIL9Czm3Hd68rOx+kHlXfrmAWFcSl8HeEkMtvg4YfWoz39R/zC2bhsip5jCXYb CauKoudJ/QFlP5RZAGpoVbY8Td6WINL6xtG5d6DKEI/nEeoCG7guBuT2VFRPFGT0DsKp MIJeksid/Uj8o84X19iL0UQQuhCnbMErWbUZP9TSWCNz0v3ob76iQku5az/2z2dtziZ6 2d1gAahHloqs/pUJYO4C08f8gPodGcAhc8ZLxWqJ77MRVGwl0n9WMz+HQotsY9FEp7VG JHpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=nhmwtf/VjoQV7F5h0NhBM6NJo4NB3/oDyqq5QgKUcBo=; b=zJKnrt14Gha5n+/aQ2sAxs4meXhXiQo3S0a7SA/eQAk2XPuwXDpBupTQRlNc/Wom5M N7ya2J3pIcF5TdifwINlSPiDOcgL5/Gs9dyb/CJJ9NmUS7wVecsVtxME5dz3Wn5n34s7 jWM1t47e/KkhrksVsA04j6REWgTaVOXFeP9IAIqp/yk+CSaPVZ1d7EZD+kuWTSMemISg kyIqGI+q9b2XYPG7hfCHhfHT0RpZ8I33bAVuUHdl0Ri3XBM1idYzQdY30OZ091qaUGDM IoSERR1gHrdTgCcAsSbvyncotrxDPCcXfqal9t9WYjoUYfwQWR6yRkuI1oWwiUd7vnrh H4ow== X-Gm-Message-State: AOAM531QAJ0c1QVAFVr+6nFBuhsClWys88A33Q5BiaDm19o8AF9frQgd +hsKycitPqhTU0n1rJIkgEG7pdZdDXZIC9+6wfC7cg== X-Received: by 2002:a05:651c:a06:b0:246:71a3:556a with SMTP id k6-20020a05651c0a0600b0024671a3556amr18781599ljq.5.1647392625976; Tue, 15 Mar 2022 18:03:45 -0700 (PDT) MIME-Version: 1.0 References: <20201211141656.24915-1-mw@semihalf.com> <20220314154033.4x74zscayee32rrj@pali> <20220315230333.eyznbu5tuxneizbs@pali> In-Reply-To: <20220315230333.eyznbu5tuxneizbs@pali> From: Marcin Wojtas Date: Wed, 16 Mar 2022 02:03:35 +0100 Message-ID: Subject: Re: [PATCH] mmc: sdhci-xenon: fix 1.8v regulator stabilization To: =?UTF-8?Q?Pali_Roh=C3=A1r?= Cc: Ulf Hansson , Linux Kernel Mailing List , "linux-mmc@vger.kernel.org" , Ziji Hu , Adrian Hunter , Grzegorz Jaszczyk , Tomasz Nowicki , Kostya Porotchkin , Alex Leibovich , "# 4.0+" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Pali, =C5=9Br., 16 mar 2022 o 00:03 Pali Roh=C3=A1r napisa=C5= =82(a): > > Hello! > > On Monday 14 March 2022 16:51:25 Marcin Wojtas wrote: > > Hi Pali, > > > > > > pon., 14 mar 2022 o 16:40 Pali Roh=C3=A1r napisa=C5= =82(a): > > > > > > On Monday 11 January 2021 19:06:24 Ulf Hansson wrote: > > > > On Fri, 11 Dec 2020 at 15:17, 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 > > > > > 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 co= re functionality") > > > > > Signed-off-by: Alex Leibovich > > > > > Signed-off-by: Marcin Wojtas > > > > > Cc: stable@vger.kernel.org > > > > > > > > Applied for fixes (by fixing the typos), thanks! > > > > > > Hello! > > > > > > Is not this patch address same issue which was fixed by patch which w= as > > > merged earlier? > > > > > > bb32e1987bc5 ("mmc: sdhci-xenon: fix annoying 1.8V regulator warning"= ) > > > https://lore.kernel.org/linux-mmc/CAPDyKFqAsvgAjfL-c9ukFNWeGJmufQosR2= Eg9SKjXMVpNitdkA@mail.gmail.com/ > > > > > > > This indeed look similar. This fix was originally developed for CN913x > > platform without the mentioned patch (I'm wondering if it would also > > suffice to fix A3k board's problem). Anyway, I don't think we have an > > issue here, as everything seems to work fine on top of mainline Linux > > with both changes. > > Yea, there should be no issue. Just question is if we need _both_ fixes. > > I could probably try to revert bb32e1987bc5 and check what happens on > A3k board. > Yes, that would be interesting. Please let me know whenever you find time to check. 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/sd= hci-xenon.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_ho= st *host, > > > > > /* 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, i= n order > > > > > + * to solve a possile issues with the 1.8V regulator stab= ilization. > > > > > + * The feature is enabled in later stage. > > > > > + */ > > > > > + xenon_set_acg(host, false); > > > > > > > > > > xenon_set_sdclk_off_idle(host, sdhc_id, false); > > > > > > > > > > -- > > > > > 2.29.0 > > > > >