Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp4296908pxp; Tue, 15 Mar 2022 17:42:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxjFzrr7Es88EaGPKbUZBygJhJrdlcRK2v5jMbQrRiNVDYpXiVJmiAV1T1ZqZvK5rGpqnc X-Received: by 2002:a17:902:e806:b0:151:ca94:740b with SMTP id u6-20020a170902e80600b00151ca94740bmr29925221plg.102.1647391325239; Tue, 15 Mar 2022 17:42:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647391325; cv=none; d=google.com; s=arc-20160816; b=HzG48a/SIYVXapSt6Jf97ElPBBX7X/6bFySMD3bdz0kWBtiK9Tvw8fZNh/UnN0sLjX kYot7+7cnTbRsP+ZPrnVqQEg3d6igaqvHKlR88rJW4jUEFSWq9ph59sXY3JA39m0NVKE axc5ltHvV5inrIubfHyOBAA1CzLK44fYgowXMnN6YT79+5K5PM5iBpia/alFBR5gc5sV wuBc1k4/2y4ew+D1mehCg1RBdxPR7fbaULabMCGKFeuw9dBa0lr/szgJJ+guzcojJYcu EF//kE5s/IN8Abpt/nQpKozMZyEifayvnXhNdGMexf1RaEz2SnoC77rTITeLsP//gQyU XMbw== 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=GO6DO22NyOz74pRKEaDBeavTF5IzNMteCDkoxNllIjs=; b=B6WwJGhsCDpO4KXJOt+nc5r8EgLIfTFuYzmw4jN3aTniIXdaT1AwlRPcC1shzNW/JF wiOTe3Yy2rx/Ib/Q37QrcqahRMz7XDEflpJufaNzYmWsHDnLc0NEmyvcE+V1OoMqlTE5 oKGNW0K2w5gMfql6hfpvNLPigEFnuwy6tss/NdYWQWMbfNSA3OmwCb22Sagmdv5ZypsQ ZDnc9oCAj9/oNBrG5caufjiIh+PExBKc04jqGfW9VQTtO0i4zD4leg0fyakwSScMd3Oe 6GdHwKNNE4p0h4nefyZHrUMaBCUnQPi00zCuDEUoSHkFIrnfG3qJChJD6kuGT68KyJwS yUrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf-com.20210112.gappssmtp.com header.s=20210112 header.b=C+MtGX9C; 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 z9-20020a633309000000b003767f42ab1bsi596435pgz.338.2022.03.15.17.41.49; Tue, 15 Mar 2022 17:42:05 -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=C+MtGX9C; 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 S242763AbiCNPwu (ORCPT + 99 others); Mon, 14 Mar 2022 11:52:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237643AbiCNPws (ORCPT ); Mon, 14 Mar 2022 11:52:48 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1732192BB for ; Mon, 14 Mar 2022 08:51:37 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id n19so27914830lfh.8 for ; Mon, 14 Mar 2022 08:51:37 -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=GO6DO22NyOz74pRKEaDBeavTF5IzNMteCDkoxNllIjs=; b=C+MtGX9CMvggkG1qaBzQ7cD7DzChnpKOxlIfkKuGP5QvXmw69IBulUXax1WvA1adD3 ddIMSnABoXDU2in9nYP4VXGeuIrxOGyP6u6nm81HlypZko7oyfWnQWOi4xdB4H3fDGO3 Au802GbTgksVMv+cI84WSDkhpI8RES1YS8dJ8KGY3NLhIZnrsA1z+nPcJLmWiScSPsOQ 3xbzgxQM9hrQSglBU6iUTGp07lNUv+EQWD0ji/zAJAA1vFeNcWq8GVWFu+Fz4KubEVoh Dd7tMx7xJDYZu5277JvRIlAepC2jprlPO74GXQEACdusmjs0E41lmYPnq5mrtWNg7giG NlTA== 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=GO6DO22NyOz74pRKEaDBeavTF5IzNMteCDkoxNllIjs=; b=ShddOidZJ6g5PaAhWNNPzHXQOp/J5sW9UQ9Kb8zyfpiB8+jBtAuT140zwelHUaFoT8 6VxtPZ4UmuNe1zI2BE4+FhyEoU5jjxZWCunxeW9u1cwbSo094e9qL4ZpHwFDiEen3xDz 8JtlaNGKB8PGJ4UcmCzWvQh3gfxrpplfqwu2KBBdTDymvsSl1NXQLipPhVGgEBlIMqt0 Y2I5vUV1Qba4j4oBGqFaBK5LilTrrrSk1c9t1SPUp4jz/gTjWuQbeNfAYjuT0fO+M6Kp YvQj22T0qHHwVE+dNzkvK1wddjxPn7rPolarCnby1XEOVcgP3KwnvNCDeS0WxpqFA5WR w9eg== X-Gm-Message-State: AOAM5300JpZ34nCQoaKZAh0Sbh10q7agqG4qYGcXqNOe5hgM3NfVo+en 7/x2DOmLKz13rdSZ6v+sa59BjKkvc3PfoSijdx70VQ== X-Received: by 2002:a05:6512:e98:b0:448:8053:d34a with SMTP id bi24-20020a0565120e9800b004488053d34amr7045193lfb.680.1647273095785; Mon, 14 Mar 2022 08:51:35 -0700 (PDT) MIME-Version: 1.0 References: <20201211141656.24915-1-mw@semihalf.com> <20220314154033.4x74zscayee32rrj@pali> In-Reply-To: <20220314154033.4x74zscayee32rrj@pali> From: Marcin Wojtas Date: Mon, 14 Mar 2022 16:51:25 +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, 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 core f= unctionality") > > > 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 was > merged earlier? > > bb32e1987bc5 ("mmc: sdhci-xenon: fix annoying 1.8V regulator warning") > https://lore.kernel.org/linux-mmc/CAPDyKFqAsvgAjfL-c9ukFNWeGJmufQosR2Eg9S= KjXMVpNitdkA@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. Best regards, Marcin > > Kind regards > > Uffe > > > > > > > --- > > > 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-= 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_host *= 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, in or= der > > > + * to solve a possile issues with the 1.8V regulator stabiliz= ation. > > > + * The feature is enabled in later stage. > > > + */ > > > + xenon_set_acg(host, false); > > > > > > xenon_set_sdclk_off_idle(host, sdhc_id, false); > > > > > > -- > > > 2.29.0 > > >