Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3180339pxu; Tue, 15 Dec 2020 00:09:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJxc4Gffp/t9MUC/S+V7NECNKDOeIHjayWsboaFu2ghzLdEvoVJx++9PVigBRzFyaD41tZCd X-Received: by 2002:a17:906:3513:: with SMTP id r19mr25474385eja.445.1608019761777; Tue, 15 Dec 2020 00:09:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608019761; cv=none; d=google.com; s=arc-20160816; b=rPngMwIbg/Ik6QzLrl7igu0eVLLhhFDGKNabKtuCG4pLceJoQPZ13biLsoPjmD1JsT PlmQq5vXR1h4daUIMN5puOilkwJrOyGatys+zhgAqluRaK7qtG2dC6NEI+WBIfejVYi5 z5VEtGQnzm9wb+pzX1FtH6PQ++/S/BxKmBmEoT0CDnjU2+d3sEoaNLnunpjjcfx3WZoJ bl5H8vm8E6Qt9fG5gFJrJU+0hf21FQkNxxN5DJWcqio1cAfZgsaJMGtZnv8uNWPzEUAn /iODEaA445qNN4EbgRHsOZCd0LlBvQB8MtX1xKeGWBPhWnTc7NGG2FbIL7LwBEJYChjg XpAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=kkr+S2alb1AnNuyQ2RNKKDiGJxi9iAHYenbHGX++Z6g=; b=d/ub5b+mHARh3wG1UWrSNDu8wkCIejWIK1mff/GBE3wn0ZgAkCq/3A4nsUxuq2AjVj UCxG8XOGwDYVcfdbnm+eqxKpWkx9+Gi3dpzMWKgKBTJEM9YNLxsjExrqsbiT9pL2xj3g b7z9iBANverGMmLxkkaLU27YlnFX97vNyayzi3ZkPulTDsh4WaaYCYmL6fpUe3PuBg06 5bIdNWGBpUKI9L54rt7sQtRukHB/pgut9CYvjw4r0Sd8SXdqQm1n/3GIt/27EHMumx2A Q1G5yW9Vr+u42869PCpJbDvX6EUfc+MQaAouUGFxAJUH9G8pCsR9sYPULDcVXHAgSynw +PnQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hq1si483784ejc.530.2020.12.15.00.08.56; Tue, 15 Dec 2020 00:09:21 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725922AbgLOIFI (ORCPT + 99 others); Tue, 15 Dec 2020 03:05:08 -0500 Received: from mga17.intel.com ([192.55.52.151]:59479 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726249AbgLOIEr (ORCPT ); Tue, 15 Dec 2020 03:04:47 -0500 IronPort-SDR: iMSO8qop0vBUw73olcszh6hOc18CAY01VComXn0smvo87d8Ug3m1OvhAKLIXDByslBpwcQYLJz a7hLZRnZ8gEA== X-IronPort-AV: E=McAfee;i="6000,8403,9835"; a="154649322" X-IronPort-AV: E=Sophos;i="5.78,420,1599548400"; d="scan'208";a="154649322" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2020 00:04:05 -0800 IronPort-SDR: X7w60umHBYVcg81LO00WjKgRfF1of3r81LUUCqpVwXv7b2knWPLG8UHmjWQoo5S6v5+8SEv6ng j9cPVQfU3mQQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,420,1599548400"; d="scan'208";a="558613651" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.94]) ([10.237.72.94]) by fmsmga005.fm.intel.com with ESMTP; 15 Dec 2020 00:04:02 -0800 Subject: Re: [PATCH] mmc: sdhci-xenon: fix 1.8v regulator stabilization To: Marcin Wojtas , linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org Cc: ulf.hansson@linaro.org, huziji@marvell.com, jaz@semihalf.com, tn@semihalf.com, kostap@marvell.com, Alex Leibovich , stable@vger.kernel.org References: <20201211141656.24915-1-mw@semihalf.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: Date: Tue, 15 Dec 2020 10:03:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20201211141656.24915-1-mw@semihalf.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 functionality") > Signed-off-by: Alex Leibovich > Signed-off-by: Marcin Wojtas > Cc: stable@vger.kernel.org Acked-by: Adrian Hunter > --- > 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. a possile -> possible > + * The feature is enabled in later stage. > + */ > + xenon_set_acg(host, false); > > xenon_set_sdclk_off_idle(host, sdhc_id, false); > >