Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2906486ybx; Fri, 8 Nov 2019 11:05:40 -0800 (PST) X-Google-Smtp-Source: APXvYqxE/3aD3/4fgn9TG4TOUVXWWr9apgkVtVBO4zE56503xeVFPuL9Ok132fiPh3VE6Hx5wbt4 X-Received: by 2002:a50:8c02:: with SMTP id p2mr12152060edp.30.1573239940521; Fri, 08 Nov 2019 11:05:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573239940; cv=none; d=google.com; s=arc-20160816; b=wTYIelt3a/FGQhHO2rzvNTM8/BHnTuWt/QxICgfJoW5r+Wtv2cA3+GKknWwJx0I85b iX4A9RwhGCcOwG6Xa+z5Yt5PP07ZX/b4/blEh2uqsenxYtEyz+1TPHaVuPvOSsazab1l MTcHUml5j/MQ1z+1AkIzfapffpfU77sCGFVA9brGIWALl/5SiCES0ofTDs7RrXMuf8pU Zm724ntoxVUI539JK7pCrjH0ILqAqViZ19himtG9L5hfI/bTIlXf7Amupnzw5wgZy2kM Q2LsW3QGMnhnOem0BsY64vNW5GzPgjluvxpIXnq6HiaZ19e0vCMqq4R/I7RJSYhxxOih OyJw== 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=zpwiK2WpwlZV0sTuE6VB5S4ilStGXNsbcd8mFMIaRSc=; b=oOQSqocvOqIOgwpfUH2eCh1OsezpgR/+bqq4Ovcbmvd6hN9KolO6IBuEqW8vHUbmk9 S181oKajFBtB1teGKFyhpAk+9h8R2JHS6OE5U7nR7Y5DeBwfQGy4KQrUCzyisNOm94Dg swUWj7CjdtKV3kJhT6beMaPxFYgqNZ5hDK2KQYsPdhK7ZWhBAwX6TjCx8mLc1nWD5/hO e7ZVelGrE2LfCr6UWiQ+KoOy4wkPdTZ1bJ8o4StrBEAQAkQ/ABVpV6Nv6nF88LWJe0zq 3idnqXVK5kkwViXbG6Iu3qtt8leKgrSdolNIMuu4pKAL9ZsmtM1uleOKdo69nriPqwFf ZvOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SjWHb3OZ; 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 e12si5589180edj.70.2019.11.08.11.05.16; Fri, 08 Nov 2019 11:05:40 -0800 (PST) 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=SjWHb3OZ; 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 S1732295AbfKHTBI (ORCPT + 99 others); Fri, 8 Nov 2019 14:01:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:58396 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730159AbfKHTBF (ORCPT ); Fri, 8 Nov 2019 14:01:05 -0500 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 6383A222C5; Fri, 8 Nov 2019 19:01:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573239664; bh=OskzKgyekS9GSE+7yGkOwIcQl8F2JurHkstQr69ZI+o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SjWHb3OZBlnB2YWF1LjMG46WFH+0CXEfoYLGT7uTdCBa5OST3K9QpSvgP/T6pYyEe Db6crgLRaih4C5cVn/IsNlZ+vy9LLf8Hy9c9h6RhVtBfnQO93EzzW2ioKVPDfxoCg2 OqTJ5uFFHc75YBhezqIu0yiZ1QxT9X5ieM37Bdr8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marco Felsch , Mark Brown , Sasha Levin Subject: [PATCH 4.19 02/79] regulator: of: fix suspend-min/max-voltage parsing Date: Fri, 8 Nov 2019 19:49:42 +0100 Message-Id: <20191108174746.476200211@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191108174745.495640141@linuxfoundation.org> References: <20191108174745.495640141@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marco Felsch [ Upstream commit 131cb1210d4b58acb0695707dad2eb90dcb50a2a ] Currently the regulator-suspend-min/max-microvolt must be within the root regulator node but the dt-bindings specifies it as subnode properties for the regulator-state-[mem/disk/standby] node. The only DT using this bindings currently is the at91-sama5d2_xplained.dts and this DT uses it correctly. I don't know if it isn't tested but it can't work without this fix. Fixes: f7efad10b5c4 ("regulator: add PM suspend and resume hooks") Signed-off-by: Marco Felsch Link: https://lore.kernel.org/r/20190917154021.14693-3-m.felsch@pengutronix.de Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/regulator/of_regulator.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/regulator/of_regulator.c b/drivers/regulator/of_regulator.c index 210fc20f7de7a..b255590aef36e 100644 --- a/drivers/regulator/of_regulator.c +++ b/drivers/regulator/of_regulator.c @@ -214,12 +214,12 @@ static void of_get_regulation_constraints(struct device_node *np, "regulator-off-in-suspend")) suspend_state->enabled = DISABLE_IN_SUSPEND; - if (!of_property_read_u32(np, "regulator-suspend-min-microvolt", - &pval)) + if (!of_property_read_u32(suspend_np, + "regulator-suspend-min-microvolt", &pval)) suspend_state->min_uV = pval; - if (!of_property_read_u32(np, "regulator-suspend-max-microvolt", - &pval)) + if (!of_property_read_u32(suspend_np, + "regulator-suspend-max-microvolt", &pval)) suspend_state->max_uV = pval; if (!of_property_read_u32(suspend_np, -- 2.20.1