Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp469395pxu; Fri, 11 Dec 2020 06:43:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJznAtqXYL13gI7yzbohZUMeIA9hUL2I4szsIxVVnAkYtZbxTnVwFXe/s7qN9OXl6+7z0At2 X-Received: by 2002:a17:906:aec6:: with SMTP id me6mr4026833ejb.542.1607697830231; Fri, 11 Dec 2020 06:43:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607697830; cv=none; d=google.com; s=arc-20160816; b=vqThx4+T93QY4twhIH7xZdCCVnguuFTsR9wgcTIzdreMJYN5cl7DPpBlOMO+IfkleI usRf834gq9Rw7t+Y7DhMaM584oAdrym9BtWQnO9LR74ZAKRgD2AqT61T7aSjtjuFuiyh jWRsHgFNvhPG80oRsUwBtWcwMcWv+4pWSU9wsQMVbet0eT5qvPJztgL6RlI655pqqEdV Q2AR/DGjn4rhJdodWjgrtvgP6VOYo7wfsIDvNdYYvMGNxG8gL+ifEk3OeaZrXbcw6oRK Wdl0iAQGuuGD/cJoAim74JfJfVj+3Cm6s6eIcVyEX20qGgem6Szz0ItLOmGnC/hfJd1Z HyrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=11tRxXmcRL83hT4n8MDtkMiTQdUv9JJoYgN481wECQI=; b=tzJBvteE0eYIFWKnjpgEDOxwBm6pCTwfFKq0anEsFWHjbWLAn996rdPhhlsw90KOY2 xmyhAr9Glc9rWnKM32xvn8/v59jxiRwegyRxgpHDnGmSdHJyBhorxWnBCSU+rWtirUNX Q/4i6WgNoCMoHoCVsC6bO2D0jVR8N9AGpsJO4WBHb7kGEZ7+2B87itFBOvE75oWgoEkB d+RkktkX1fWdBn9bxcvhWCrU1PaWoJMkIY15R+ijgx7BMar0KNS9C7bAZIbLrvucrBD3 hqOh65BY+35g/9dWXz2I+6uBTfVEGyfAMoRb9mqo/c9emywr8JyqUl+QKUUIftzQFXO9 5PMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=k0kUp77H; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s13si4715973ejy.686.2020.12.11.06.43.27; Fri, 11 Dec 2020 06:43:50 -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; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=k0kUp77H; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405958AbgLKOSt (ORCPT + 99 others); Fri, 11 Dec 2020 09:18:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405932AbgLKOSK (ORCPT ); Fri, 11 Dec 2020 09:18:10 -0500 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01DE0C0613D6 for ; Fri, 11 Dec 2020 06:17:30 -0800 (PST) Received: by mail-lf1-x142.google.com with SMTP id y19so13484214lfa.13 for ; Fri, 11 Dec 2020 06:17:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=11tRxXmcRL83hT4n8MDtkMiTQdUv9JJoYgN481wECQI=; b=k0kUp77H54YOwO3WS2omVR2voAv6qo8ArgdgCMds49n1YSaD7GuIp8Kp7JYvox+ClU DR2B+zlfdwqMuJbwVnlT3UYxRTQVPbCT/1IudphcxguNGX0XfRvxUGX+lJHHqRxxWvve VhfKecBaBaOFnzng8IdpkNxVTUzQn2gOfzl8QF0ntIlEZ/Eqj0DujouJUjbXEizlXkrM LrHOaJroY+22897sBE3zIQk/FuAhf3rUjjUc65Byd7Ss3LciH+mxsh3O5ikkk9hmSzyK VjEBpqF8er+25VhF6ZJJ1i7cder4kvsywh+1ihQLjaekPzWFoBFaDtM5CA/ea1XLGoIS yGCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=11tRxXmcRL83hT4n8MDtkMiTQdUv9JJoYgN481wECQI=; b=kLVrK6keO9OdH/JahfGQVLWvBtkwgcjkTMSJhrMoh35o5jAeUF8PvF8CteCaZbtDWS i8qObOZgHfC+6QS/lSkRh8m/sLjtDJv8OfSdUPKco+VQa1VINbxpbe0YLBMHcWNdvmYo GyxhJDE9g10STHd1M3ct89W+U+kDgdil6wAr9f1JKBHrz4bUzjqB1xXVScWSSzKyUsl0 EtTyOWjGYWTU1TytAoFUnUDSd5rXsiT0vwVQphFF+2WU3A+SZz0yk/beQS429XFJ9Ucp 5OB9dniIRe21hinBZW5dab09qpNBBuxr7MnRB/E9UI5b1cstSvaELVV6ABHIfIRL8SeS pP4A== X-Gm-Message-State: AOAM533VGJnjsVH6is1m92iN3mMXvqU7GhzlZWcPeNI3Vv0+pq+V7aoV adjeGg82GJKfmiH+92q/61BLB3y3m8+Z/Ml/ X-Received: by 2002:ac2:48b2:: with SMTP id u18mr4917512lfg.313.1607696248053; Fri, 11 Dec 2020 06:17:28 -0800 (PST) Received: from gilgamesh.semihalf.com (193-106-246-138.noc.fibertech.net.pl. [193.106.246.138]) by smtp.gmail.com with ESMTPSA id q16sm903019lfb.8.2020.12.11.06.17.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Dec 2020 06:17:27 -0800 (PST) From: Marcin Wojtas To: linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org Cc: ulf.hansson@linaro.org, huziji@marvell.com, adrian.hunter@intel.com, jaz@semihalf.com, tn@semihalf.com, kostap@marvell.com, Alex Leibovich , Marcin Wojtas , stable@vger.kernel.org Subject: [PATCH] mmc: sdhci-xenon: fix 1.8v regulator stabilization Date: Fri, 11 Dec 2020 15:16:56 +0100 Message-Id: <20201211141656.24915-1-mw@semihalf.com> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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