From patchwork Thu Oct 3 15:53:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 175098 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp522870ill; Thu, 3 Oct 2019 09:05:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqxz7npUpGg965jl67cn7NTLapVAMfc/m53T4o8JHf9u8jlT6TgTf58YEUyiOLAVPNIEnj/p X-Received: by 2002:a50:b884:: with SMTP id l4mr10300593ede.295.1570118735513; Thu, 03 Oct 2019 09:05:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570118735; cv=none; d=google.com; s=arc-20160816; b=lQLFLeCk6YMhTfD0BqR/9BBhUuwYCo5rwsTjdma6XyskZtBvwK+jh4GAixaZD5Pkzk uI+XrGRksQJ/YskGbuDtJL8bKg+JwFsuh0NkyrlQxUKclqfbXcY9sHxii2vBp/94i8zB T17lRR/xrv5iyNgbKtJ5MqWywawqfVw17ilUeNycD8ZOcqqQPrLSacvNGFMmt4w5I4Qm K0HMR6wPW9yjxNik2rCMxlToRe8OAdTuO4r+HVYirZl6c7N+1u+rQ9mMjvfjyb55eFU5 cSNqJki+Df6PWmvJFn3KLsHb3FYjfa5HlqZaASkrbE6mfULx0oqbKUTny1BAYfVCHEM3 d75w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zH7RTdjfq2BJVX5mwZDk3zVZqUbDaraRiyVe7bd03L4=; b=1Cw5WfcWIpl08q5ii1ZwgGehiZDE5tVFnSiIkhWMgkXnjnslW8XwpZlQ451A+hEOSa 1gNRQhYxKrK7JmAv6RGqrqWnT5/GqtiGo/ENK31TU0cYFYFGpArn+Tw3+twECdDSfUJa YW6DQQdnMFn9b/VCSlwNFYr0L8KunFVuq6FyjCA4XcOs1TeYoC5Haf1Uhtv0PkymfRX/ UThrBp3vZyX+zK4IJN9sKyItxSG9PHIj5z7pDYFbGe1wVX9cU9tmJEpUUuyyWKJfaslv gSnVlgu+LERFYYT45sK+s2nFNtMrFDIgr8IlBSRXVDB0/DuVAtG9YeuvIDMmPcOXwVnR /CuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=o2LOf0sE; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ga6si1492365ejb.309.2019.10.03.09.05.34; Thu, 03 Oct 2019 09:05:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=o2LOf0sE; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732559AbfJCQFd (ORCPT + 14 others); Thu, 3 Oct 2019 12:05:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:52284 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731703AbfJCQFc (ORCPT ); Thu, 3 Oct 2019 12:05:32 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 79BD321A4C; Thu, 3 Oct 2019 16:05:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570118731; bh=RjgmkSOMi2xT5X4blqGQ8ZeCdi9HMfHkXvSSXsfQvR0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o2LOf0sEeq7zDg2yv6eBGHUGuCtR5J8PViJSTLD1dRxmtZAJHsT8pVYVaWqdcbZhu 1PEcXQaG8Gm4vf1pu6u6T0Cu5rNuS5jqDjovQxw0DTxdXIh6mxwN/qAfp5lvifEyxt s+5SsTlRX30orQJZLaxOFaT4SaQV/bAfER8FWqRA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marek Szyprowski , Krzysztof Kozlowski , Sasha Levin Subject: [PATCH 4.9 080/129] ARM: dts: exynos: Mark LDO10 as always-on on Peach Pit/Pi Chromebooks Date: Thu, 3 Oct 2019 17:53:23 +0200 Message-Id: <20191003154355.384873192@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191003154318.081116689@linuxfoundation.org> References: <20191003154318.081116689@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Marek Szyprowski [ Upstream commit 5b0eeeaa37615df37a9a30929b73e9defe61ca84 ] Commit aff138bf8e37 ("ARM: dts: exynos: Add TMU nodes regulator supply for Peach boards") assigned LDO10 to Exynos Thermal Measurement Unit, but it turned out that it supplies also some other critical parts and board freezes/crashes when it is turned off. The mentioned commit made Exynos TMU a consumer of that regulator and in typical case Exynos TMU driver keeps it enabled from early boot. However there are such configurations (example is multi_v7_defconfig), in which some of the regulators are compiled as modules and are not available from early boot. In such case it may happen that LDO10 is turned off by regulator core, because it has no consumers yet (in this case consumer drivers cannot get it, because the supply regulators for it are not yet available). This in turn causes the board to crash. This patch restores 'always-on' property for the LDO10 regulator. Fixes: aff138bf8e37 ("ARM: dts: exynos: Add TMU nodes regulator supply for Peach boards") Signed-off-by: Marek Szyprowski Signed-off-by: Krzysztof Kozlowski Signed-off-by: Sasha Levin --- arch/arm/boot/dts/exynos5420-peach-pit.dts | 1 + arch/arm/boot/dts/exynos5800-peach-pi.dts | 1 + 2 files changed, 2 insertions(+) -- 2.20.1 diff --git a/arch/arm/boot/dts/exynos5420-peach-pit.dts b/arch/arm/boot/dts/exynos5420-peach-pit.dts index ec4a00f1ce01e..8b754ae8c8f7d 100644 --- a/arch/arm/boot/dts/exynos5420-peach-pit.dts +++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts @@ -427,6 +427,7 @@ regulator-name = "vdd_ldo10"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; + regulator-always-on; regulator-state-mem { regulator-off-in-suspend; }; diff --git a/arch/arm/boot/dts/exynos5800-peach-pi.dts b/arch/arm/boot/dts/exynos5800-peach-pi.dts index 01f466816fea7..1f90df2d7ecd8 100644 --- a/arch/arm/boot/dts/exynos5800-peach-pi.dts +++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts @@ -427,6 +427,7 @@ regulator-name = "vdd_ldo10"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; + regulator-always-on; regulator-state-mem { regulator-off-in-suspend; };