From patchwork Thu Oct 3 15:53:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 175105 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp531719ill; Thu, 3 Oct 2019 09:11:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxthlMKbsQkFmQEWuPnMrQbOPoxl75q/bWrYOUzp/jM2gWjrX4ezUOuYIMCMUE/cOk8UQhx X-Received: by 2002:a50:aa8e:: with SMTP id q14mr10469489edc.155.1570119088531; Thu, 03 Oct 2019 09:11:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570119088; cv=none; d=google.com; s=arc-20160816; b=LujtYC93QhJGPWCVLvzstjleg4jsgAIRR6iuYz7ZbBORPekaLGIVL/6sz1SbV4olzK GPZoPx2/fja9Qj1jjNiRf7NSCSjPH+vtxcULSyUKPG5lqXQkTUHUjOy3rG3WiHJYYGnA gwhz7OqX9aPqkEVm0FJqNY6onwgaxK83Ek6mMeU9sTt1v+6WxkGdWtP+f7XRjaZK1jVx Q+w8o26TSp9TCWndJ+26aC6stfFIrIcpeEAnlgxUBap3T8Ff6wJQk8dzKd6m7QrTS9xc U8ERMclnca+x9iTc+4jHQN31RBXc1w5UMZz/nMRMnHIGMKK7HC11djnC1mDaNJSUk6bn Mg4A== 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=PSBCYUxdBz74bHpw5+XoXxGCYktb3e0Vih37cLLMri8=; b=KcsMfOBrF5Fv7MN70Xlo4WUEAvGIfGwuRQsz2BN+Y8ZFimWt0DFtxsk1yJF0vXl87K H7AnC68x2gD0e6vYpmffEI83lWC1cGd7IfsprD9Rj9LmeMQgfZd7zhsSl3YYJ6LscMhV dDHSPo3JKi2mnstOTwJ9gbhhC5Po1cdRy45bmLS5IGEbPW8rjAHj5uyZy8GmGvxrrYiW JmKb1ozi1uqhzsdhoY/idj6b6lOXFVYydaJLYfvaHp8yX4DucGrz7VOjC+rjv3cUYNfJ 9EPfUTSWj2t1FlZaIaoKw0bazumEZ/h3fcMO6E0WbAO1VaXxY+F1jb5sRP6kyJCbPeRu MoGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=urZ2X1xz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 l2si1508150ejh.389.2019.10.03.09.11.28; Thu, 03 Oct 2019 09:11:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=urZ2X1xz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387839AbfJCQL0 (ORCPT + 27 others); Thu, 3 Oct 2019 12:11:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:33100 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732680AbfJCQLX (ORCPT ); Thu, 3 Oct 2019 12:11:23 -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 2C03620865; Thu, 3 Oct 2019 16:11:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570119082; bh=O45hS1XFtek78qi/yy2DUdGSAsD3n7PiKl6lfkTw7f8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=urZ2X1xzq0suIy7+WiADftNJbpyqXBACpev52zTrUuq3j+Hh9mkftkqZTdQkFaSsF kShEegMqQG83mVWsv8iTiWjAOAc69KCtulSBGMpb7uGaY3Z7DoGMEOnJzwVBgV2+Pv quTWNZcr5PYAz9qKPgCL80gG30MV0g4VJk1lxnfQ= 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.14 118/185] ARM: dts: exynos: Mark LDO10 as always-on on Peach Pit/Pi Chromebooks Date: Thu, 3 Oct 2019 17:53:16 +0200 Message-Id: <20191003154504.880906309@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191003154437.541662648@linuxfoundation.org> References: <20191003154437.541662648@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 c91eff8475a87..7ccee2cfe4812 100644 --- a/arch/arm/boot/dts/exynos5420-peach-pit.dts +++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts @@ -426,6 +426,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 daad5d425cf5c..0900b38f60b4f 100644 --- a/arch/arm/boot/dts/exynos5800-peach-pi.dts +++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts @@ -426,6 +426,7 @@ regulator-name = "vdd_ldo10"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; + regulator-always-on; regulator-state-mem { regulator-off-in-suspend; };