Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2358324pxp; Fri, 18 Mar 2022 08:56:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsX8I/Gkd3VJEWkW/MBysH09DLt165QfxYyUtwC1BRA3+FwF50kbAJf9EsnD34r+QMiSr1 X-Received: by 2002:a17:90a:dd46:b0:1b8:8:7303 with SMTP id u6-20020a17090add4600b001b800087303mr22202774pjv.197.1647619010523; Fri, 18 Mar 2022 08:56:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647619010; cv=none; d=google.com; s=arc-20160816; b=dIo39C+RVP7ljBQq5bRR8IDWF7kHDNG0ZZtURyLoyBa/LwxjyvfkozZ9o+nekvQ4B5 pecnvbdoWn+aJ4Cu+ItoXdthxbKSbGQ0sfyMrj+qQiPpiB/qPfygzX0Oy73QVj0r3Q95 h4umS0hKoIKQCUW5vXkoVJ1uPq4gcqy4CRUrbn7dALglong6GW8ySDN268Y9BHRX1hk8 8Cb12COsS1onEq1IkCj+F4U/dChPZBFF8pSb1BRL0MNgq941gsNkEPNH8TMSsdwawwcK qN3FO9yBoM9rTIHe3uIT71+/VgZeviXQT0oNm3dc/yIFmdULT5DbgqpvWqp6rUd+SgB0 MzSQ== 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=VD6iA//rl+G0UvkOMm0n4elOqulyLO/Rgg1ugKzl5M8=; b=u2JhyjCUYDmvQjjyOBy8FDLlkL9sqBunEd86h5T4UOPaPsSxznvRoBW6NfXVhzPTig nFxyw8ZXNgyHxkQAJx5l2lfQ1kwa1ALdkO/OH1zOAg0Km4LHcZrrcMjxfqYYh0kSYHf6 OSRlupGNfiWizrX0FzXqqYBy0kR4z5Z0W22SpSjf9MPsUyMhEfcj76OS4ibI81aVyomn XVgh5Dep7jsPpcq33ioSQY8yT2oCesBf5uc4l8iaxzOUQY482NxYILDWQVgvVoVKN/3u 2f5tNYKm/v7KSMIs+xAwPfZXRixyUiucrdYoc59QEsJnVH/U32eg8dIkKpGyPWqygEd0 Cqwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf-com.20210112.gappssmtp.com header.s=20210112 header.b="Mtl+So5/"; 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 e15-20020a17090ab38f00b001bd14e03098si5525836pjr.112.2022.03.18.08.56.33; Fri, 18 Mar 2022 08:56:50 -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="Mtl+So5/"; 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 S236744AbiCRNkj (ORCPT + 99 others); Fri, 18 Mar 2022 09:40:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234389AbiCRNki (ORCPT ); Fri, 18 Mar 2022 09:40:38 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 524B51C7C31 for ; Fri, 18 Mar 2022 06:39:19 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id g17so14181676lfh.2 for ; Fri, 18 Mar 2022 06:39:19 -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=VD6iA//rl+G0UvkOMm0n4elOqulyLO/Rgg1ugKzl5M8=; b=Mtl+So5/Jxp9GNKNlJjBsh+Bil+WakboMMsGp4hKJFPuYHwP4D2q1jZlMV06P6ocZB jZrveQqftZmscyyD0wShKftQyIxD20+9ffsUuQ5/o2cpIB0kXaXvSrDDtBDGzErGq8I6 POmphZeOAxRsBbKs4qawH+BLivYvyau2uQ+IWKv/48DgHCB7p/VXYyp4X9q3zzmQ/Ryj d/J0WIwN0ZB1ihb2VFDHcgaWQj2hbE1aP8dCt5D6XKNGVGCaweNi7lgCuZxAgSMbgeEB tIpJ9D2XX9Il65VJAmVRhof7+/OhQ5aHnFRoiA1cyKLXZ3YnBoM49q1GsPZgsrdxORto rqjQ== 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=VD6iA//rl+G0UvkOMm0n4elOqulyLO/Rgg1ugKzl5M8=; b=vzaFtOjlPetAFlyXiqqw9Ba3na+DQOZETy37q2d2VhAvfv3k5fXY7amrh7sKYmB7Y6 5IPgfw8UbCSUpsKdvAtpD1OQlOSfx+KnNYfs5clifFakJ0huBH/C2z2/zHc32XB/NHFy 52g9AGEWtOBEgkCvW5qHnSH7hNXSjrY0ogsZEsatOTeGXwha5N9GWqimEvzF6ftU+U2D kvVNwn3UOolTKY2wkPvhWMa2ellJDqQtmbamvpViJbHuCBwptuM239m8SkBAs+8bqYDU DuMX0Q5IfUnTYNJ7dyAYzmo2M1AYW8ouKhvAiSsRPycBwnIwgZYDNr1lDLeYMaXuyYu1 V/1g== X-Gm-Message-State: AOAM5334NZxxdtIusOWORBEX8MdY731dVzcAIkRy51G10uBy3cQ2+HlG khMsRMzaUczRq5CNkYjKB0vr7vyPsQhJGBwj+6jIaw== X-Received: by 2002:a05:6512:3f99:b0:447:7fc0:8d3 with SMTP id x25-20020a0565123f9900b004477fc008d3mr6100043lfa.671.1647610757400; Fri, 18 Mar 2022 06:39:17 -0700 (PDT) MIME-Version: 1.0 References: <20201211141656.24915-1-mw@semihalf.com> <20220314154033.4x74zscayee32rrj@pali> <20220315230333.eyznbu5tuxneizbs@pali> <20220318130100.zkdaoviwzwhnixuh@pali> <20220318130615.hwa5fhzf2cyquwzr@pali> In-Reply-To: <20220318130615.hwa5fhzf2cyquwzr@pali> From: Marcin Wojtas Date: Fri, 18 Mar 2022 14:39:05 +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, Thanks for testing! pt., 18 mar 2022 o 14:06 Pali Roh=C3=A1r napisa=C5=82(a): > > On Friday 18 March 2022 14:01:00 Pali Roh=C3=A1r wrote: > > On Wednesday 16 March 2022 02:03:35 Marcin Wojtas wrote: > > > Hi Pali, > > > > > > =C5=9Br., 16 mar 2022 o 00:03 Pali Roh=C3=A1r napis= a=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 napis= a=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 S= DHC 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 w= hich was > > > > > > merged earlier? > > > > > > > > > > > > bb32e1987bc5 ("mmc: sdhci-xenon: fix annoying 1.8V regulator wa= rning") > > > > > > https://lore.kernel.org/linux-mmc/CAPDyKFqAsvgAjfL-c9ukFNWeGJmu= fQosR2Eg9SKjXMVpNitdkA@mail.gmail.com/ > > > > > > > > > > > > > > > > This indeed look similar. This fix was originally developed for C= N913x > > > > > platform without the mentioned patch (I'm wondering if it would a= lso > > > > > suffice to fix A3k board's problem). Anyway, I don't think we hav= e an > > > > > issue here, as everything seems to work fine on top of mainline L= inux > > > > > with both changes. > > > > > > > > Yea, there should be no issue. Just question is if we need _both_ f= ixes. > > > > > > > > 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. > > I mean that I reverted also 1a3ed0dc3594 ("mmc: sdhci-xenon: fix 1.8v > regulator stabilization") commit and then issue appeared again. > > > So any of this commit is fixing that issue on Armada 3720. > > I think both can stay, but if I had to choose, I'd keep 1a3ed0dc3594 ("mmc: sdhci-xenon: fix 1.8v regulator stabilization"): * Now we know for sure it fixes both Armada 3720 and CN913x/Armada 7k8k * Afaik this patch was checked with HW team (and IMO it looks a bit less hacky than the extra read :) ). Best regards, Marcin > > 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/h= ost/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 sd= hci_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 t= ime, in order > > > > > > > > + * to solve a possile issues with the 1.8V regulato= r 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 > > > > > > > >