Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10409350ybi; Wed, 24 Jul 2019 22:42:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwnAMHqYEryyFXC4ItF0vYupTZBQonn3gUt+shfXlgyPOLQ4ozLBaEGlX8d5YX+kgl0bkAw X-Received: by 2002:a62:5253:: with SMTP id g80mr14778624pfb.179.1564033334698; Wed, 24 Jul 2019 22:42:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564033334; cv=none; d=google.com; s=arc-20160816; b=eoCXhjknD0C+O5gG2d2IAwEVqWqeOvFwR5A4yF5rxbOhI2D4R2wShy0OqfJXRFg+7i gUj1yOCRxlrUzYV6EOc1PREZAXfS2qull2QCD09NCfSehsqXt/MYiaISMHqZzGZJ2kGl lA2WoEmv4LOhq6s4ILSvQsi5JUVufpwBqfPxpiA2eGxkaDZTe2hX7POVNMiSpnAYwdvr z7Tj9w9ftoRO9sKY9UeGPHnMsEBAAIOyO7pDBcoVbvA8fZmEoxzcG1FrbeyoM9W8S7UC d2C0Udt0cRa7UDrSDsNSvTryMKsRkKgi9A2OQZSmR4Y03lpmG21wIvbvd778n+wjBrA/ FmMw== 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=8kB6PUqgRpRzcnF54KEjzOHfDkMo74xsE+9ft931DD8=; b=pK/w2s+MADUThgy3oF7aRPGcM1ak86QscWNkv1mhzGawxVGOWJR+a0a+/Fq4KMcBAx yB8KoRO5rEyQWc2wozYZfgJX8T1Py/4O8/llQF1CFCxikVMZt129ug5FUxh/7k6LDyvl BRhCIofEPrUwunNvMvvRh8J9hg0ritb0t3WyDfZmhb3qMEoO5wp6kpzyN116K1K2+lZd KZ+L3H/4qYbdUJvIK/lUvLtJUUl8LtHm//Ise6dPZQsOvZnvWknZRei0tvZWVlY6Faha ydCtOQ69hfM+8BTuJe7iEcNWHRrYVhQeo3DBjbkU52SHvc2JCPuVv1atiHFb9oUdpLKV PSdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gFzASt1K; 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 h31si383259pgb.67.2019.07.24.22.42.00; Wed, 24 Jul 2019 22:42:14 -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=gFzASt1K; 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 S2404308AbfGXUNw (ORCPT + 99 others); Wed, 24 Jul 2019 16:13:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:40008 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403870AbfGXTz6 (ORCPT ); Wed, 24 Jul 2019 15:55:58 -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 979C1205C9; Wed, 24 Jul 2019 19:55:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563998157; bh=sGgtsJRmQqZ5jJkaapuMU4JFjwFDPXz6yS4GLk58d68=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gFzASt1Kr+LoV0+HIO2sINHa80y2atILXCDXesxgzUFsjmS4EoPiLY4kxNQ2v/9em 3Xu1ChPl93aE4HI7jDhF/gkeIQ+f9HIbGT2kNWb1aBUKJOzaA+mqCDxqFN0/qlso/E dCy4fx9um6w2EmC2dzMelmKj6w/H9D8Xs0HllyWU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Krzysztof Kozlowski , Mark Brown Subject: [PATCH 5.1 267/371] regulator: s2mps11: Fix buck7 and buck8 wrong voltages Date: Wed, 24 Jul 2019 21:20:19 +0200 Message-Id: <20190724191744.452440744@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191724.382593077@linuxfoundation.org> References: <20190724191724.382593077@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: Krzysztof Kozlowski commit 16da0eb5ab6ef2dd1d33431199126e63db9997cc upstream. On S2MPS11 device, the buck7 and buck8 regulator voltages start at 750 mV, not 600 mV. Using wrong minimal value caused shifting of these regulator values by 150 mV (e.g. buck7 usually configured to v1.35 V was reported as 1.2 V). On most of the boards these regulators are left in default state so this was only affecting reported voltage. However if any driver wanted to change them, then effectively it would set voltage 150 mV higher than intended. Cc: Fixes: cb74685ecb39 ("regulator: s2mps11: Add samsung s2mps11 regulator driver") Signed-off-by: Krzysztof Kozlowski Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- drivers/regulator/s2mps11.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/regulator/s2mps11.c +++ b/drivers/regulator/s2mps11.c @@ -372,8 +372,8 @@ static const struct regulator_desc s2mps regulator_desc_s2mps11_buck1_4(4), regulator_desc_s2mps11_buck5, regulator_desc_s2mps11_buck67810(6, MIN_600_MV, STEP_6_25_MV), - regulator_desc_s2mps11_buck67810(7, MIN_600_MV, STEP_12_5_MV), - regulator_desc_s2mps11_buck67810(8, MIN_600_MV, STEP_12_5_MV), + regulator_desc_s2mps11_buck67810(7, MIN_750_MV, STEP_12_5_MV), + regulator_desc_s2mps11_buck67810(8, MIN_750_MV, STEP_12_5_MV), regulator_desc_s2mps11_buck9, regulator_desc_s2mps11_buck67810(10, MIN_750_MV, STEP_12_5_MV), };