Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp3135537ybj; Mon, 23 Sep 2019 15:30:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqwaFHb4eilU6msWnzPsTrtq5p8iwktri01LideO5Wsj7grCuKVlRbA/Nbc1ohZ+gjOsblBH X-Received: by 2002:a17:906:1a08:: with SMTP id i8mr1845311ejf.231.1569277856116; Mon, 23 Sep 2019 15:30:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569277856; cv=none; d=google.com; s=arc-20160816; b=LhjQlinrIHRxaqe7pNaH6rvQBSh63xGmVsL/B6LRLiqsf5ESS6pZGdUQCXtYaRKkYB 9Bmr0xjGrXRfzaqOYGjkhLLMj3jOvu7qdDodpbhZegFXlVyCDVz3MfLCzbK45gDJS4Ib VZCjNj9tPmjM091kibQxvDeNBscMmtZxu1aqTKyV6+pPVIq0sjC9PehYQJu4EHJfRiCd /iUQnkUpcbPgMaYeMb4qbBoBpFGErGvj2vU9r/vWQMqOjLkmINntQZAEZMYlTDeIXsTR rRCiiAia1MyNOAs2by/ZamIJoO0nLUTrhYB9T2QstYBnre+MBcn+82Nn0g+TKQm82vEJ ER9A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xy3IVWJa3oYzdcDQdIXFSvUPZOD3kSwZp7yk4A7DuYo=; b=CSDH9MIrNoT9afglPAGLaNG3VHVVix8qbaeCs/TsbXr03Cx1vOp6Sd30Z2QwF0lyeG nxEZN5s6YN37aHno6/QOrghFDboyJhh5SmPyBZKSqOsOODPrnOXev9aVlF+407eeve4+ b2QN8jQXuXnJ4b9+14cMUFb5OQd+ouU9AU57QpxT6yDBiq0SBFbZG2CN73VxtIpELQJK pDJDYoEcSU1Rq87unPSjsrdcNevUEnuywBabPAYWPExzCQxgtiIc4/fYx5bNI9N9GX7G kEP2Y3YucYadmUGcBuMEg6HfQYXHwmok9yvWDVfcfRudrzWfsLI7QunzzWqI0DmBqyb6 TJEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cSaoWX25; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z2si7756688edd.390.2019.09.23.15.30.32; Mon, 23 Sep 2019 15:30:56 -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=cSaoWX25; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391569AbfIVSsW (ORCPT + 99 others); Sun, 22 Sep 2019 14:48:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:44832 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391407AbfIVSsI (ORCPT ); Sun, 22 Sep 2019 14:48:08 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A961521479; Sun, 22 Sep 2019 18:48:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569178088; bh=3iuTUPH38z8GhXhGf0ZoFLJizgr0/Dx+jX0EiSbp/nM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cSaoWX25ci8rfOV4unhzsgdZQY8J3oHC4aHX9D4uLw5uLE2Q/KvjFB5hM9r++ToKL /gqtdXHi/lBZFSmI/bO2uWsmr8fktluW5L14IsogrbbjQtndP0MHM1uZx33EGwATDA KaHPhhVzQ0h5pAK8Ut6guE3ZXtb1fyzRf3EOTvB8= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Marek Szyprowski , Krzysztof Kozlowski , Sasha Levin , devicetree@vger.kernel.org Subject: [PATCH AUTOSEL 5.3 155/203] ARM: dts: exynos: Mark LDO10 as always-on on Peach Pit/Pi Chromebooks Date: Sun, 22 Sep 2019 14:43:01 -0400 Message-Id: <20190922184350.30563-155-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190922184350.30563-1-sashal@kernel.org> References: <20190922184350.30563-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit 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(+) diff --git a/arch/arm/boot/dts/exynos5420-peach-pit.dts b/arch/arm/boot/dts/exynos5420-peach-pit.dts index f78db6809cca4..9eb48cabcca45 100644 --- a/arch/arm/boot/dts/exynos5420-peach-pit.dts +++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts @@ -440,6 +440,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 e0f470fe54c81..4398f2d1fe881 100644 --- a/arch/arm/boot/dts/exynos5800-peach-pi.dts +++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts @@ -440,6 +440,7 @@ regulator-name = "vdd_ldo10"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; + regulator-always-on; regulator-state-mem { regulator-off-in-suspend; }; -- 2.20.1