Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2246106pxp; Mon, 21 Mar 2022 14:53:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpHOEeYHGIg/gMMeoXN7Y4rGTe6FL4LqyHBCFa5PNVMgwL6CeSfh9Gk2F/MAmVqW4e9GQm X-Received: by 2002:a63:d218:0:b0:380:64e0:c4e8 with SMTP id a24-20020a63d218000000b0038064e0c4e8mr19956307pgg.320.1647899586460; Mon, 21 Mar 2022 14:53:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647899586; cv=none; d=google.com; s=arc-20160816; b=H7yHX7ucX1pXO1Hkfnkq4OFelKjfFpI91LfZmY5Rbl3OtcVFZxda1SS8xjhPnH6fwh A49vOjRY7J9Am4la/DEygY1GkUm/YN+iDMiHQPI+1KjEl0Oz4qQ2G8XIDl8Q7l/YWDnX 0ivnI9WUtHXZ3WVlxPktvc6qzlnWDN0t6T/krq8kk+Ryod+I9v/IIOLf9MMSK1pkNehN BNREXRTY0EOTrZEEqR5LkGHDpc4suzhxXpdlMKTfQGMnbgzn79/+ay4Llsu+3Yipj1iT 5KsnoUOsrOEU61i6oQZqk2SIXlq7m+aAb+78xsIFEcCDh6CBEtqmo1OcsCbhq41ICNSm zIXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=CL2P0o+P8NN5YSTMv/ApAeSrCPYJy9vld6cPNQO/qKo=; b=HOtI+h9RF+83mLfI5s5MAyy6nTPQWdXzulS+iJ/dzfHUME9KCp6PIFj1lKizkQmIy8 HMD8mlYDV/soh/6cKA65Qbz+Hf3PziqK1gWOvTTM6D4CiTzTaUpnJHSNy0H/fe8eq2Vt 5y9RxkKcmgf9Idpo2lWjLGhGQyNFuC0NhijRKrsGUDq1h2x997F52/APTDyMFKrtZxvr R0mOmTMRT0soIO4Q4vT51LCwtUR8vh/eBRUa7iXQstTtltjtBpXqpamDd10WxKxIAnWE /0uSIFbxtFTLFo/qyqVKVpm/OHnM2FvfTGIWgPWSLb4l76SjAFj0hDLmUrLS4UVNpKP+ q/aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l+9xq6dR; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id w1-20020a17090a5e0100b001bf35af02a6si482204pjf.0.2022.03.21.14.53.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 14:53:06 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l+9xq6dR; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9F6162BA3F7; Mon, 21 Mar 2022 14:20:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234085AbiCRNCa (ORCPT + 99 others); Fri, 18 Mar 2022 09:02:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236427AbiCRNC1 (ORCPT ); Fri, 18 Mar 2022 09:02:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 928672D8138; Fri, 18 Mar 2022 06:01:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 19FF461944; Fri, 18 Mar 2022 13:01:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2065AC340EC; Fri, 18 Mar 2022 13:01:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647608464; bh=EvKvDWMjPs8RviERmN4Qeb/n64LMap7LOYadKAjVVkE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=l+9xq6dRn9tlQYW+m4OOpWxHI7gEPhRgznCS5kNtOTBDzB33jtzQaWbJNW6OdJVce oPUCf1KO5zzWHz+11/IbsI5USKTJoioW+dmYWVd2pV9yXpol++zuu5EN4UCc1Oq/q9 dEfqfRF2/NkkeuEyOx3elvJDBBbqIbmCl+F3hDIPSrhJuwK1fk1ChUD5GGncYr1LG4 2pmmcbJXnJHRQhThQEWvNN3LaOt4WVOiU8mVjQVhIERPEB5mPFbWQbukxE9lk5Hodw Kbj9ZUQTrcfWqRsD/RVpSDc5MGBdDMYSIzgZCeMBh2F7k9TxxesknY87E9ors3quyA Wrtp28M5fWYFw== Received: by pali.im (Postfix) id 077999CF; Fri, 18 Mar 2022 14:01:00 +0100 (CET) Date: Fri, 18 Mar 2022 14:01:00 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Marcin Wojtas 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+" Subject: Re: [PATCH] mmc: sdhci-xenon: fix 1.8v regulator stabilization Message-ID: <20220318130100.zkdaoviwzwhnixuh@pali> References: <20201211141656.24915-1-mw@semihalf.com> <20220314154033.4x74zscayee32rrj@pali> <20220315230333.eyznbu5tuxneizbs@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Wednesday 16 March 2022 02:03:35 Marcin Wojtas wrote: > Hi Pali, > > śr., 16 mar 2022 o 00:03 Pali Rohár napisał(a): > > > > Hello! > > > > On Monday 14 March 2022 16:51:25 Marcin Wojtas wrote: > > > Hi Pali, > > > > > > > > > pon., 14 mar 2022 o 16:40 Pali Rohár napisał(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 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 was > > > > merged earlier? > > > > > > > > bb32e1987bc5 ("mmc: sdhci-xenon: fix annoying 1.8V regulator warning") > > > > https://lore.kernel.org/linux-mmc/CAPDyKFqAsvgAjfL-c9ukFNWeGJmufQosR2Eg9SKjXMVpNitdkA@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. Hello! Now I tested kernel with reverted commit bb32e1987bc5 ("mmc: sdhci-xenon: fix annoying 1.8V regulator warning") and issue is still fixed. I reverted also bb32e1987bc5 ("mmc: sdhci-xenon: fix annoying 1.8V regulator warning") commit and then issue appeared again. So any of this commit is fixing that issue on Armada 3720. Should we revert one of them? > 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-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 order > > > > > > + * to solve a possile issues with the 1.8V regulator stabilization. > > > > > > + * The feature is enabled in later stage. > > > > > > + */ > > > > > > + xenon_set_acg(host, false); > > > > > > > > > > > > xenon_set_sdclk_off_idle(host, sdhc_id, false); > > > > > > > > > > > > -- > > > > > > 2.29.0 > > > > > >