Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10425490ybi; Wed, 24 Jul 2019 23:00:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqz05LtElsWudj39VjwFenZX76F6t3C97Zrf7yFSscJ0NmdvocwIeLpi/t69cVI1mgI6ONpO X-Received: by 2002:a17:90a:ab0b:: with SMTP id m11mr93949947pjq.73.1564034434662; Wed, 24 Jul 2019 23:00:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564034434; cv=none; d=google.com; s=arc-20160816; b=OKAJG7emV2rLkeNZ0e1uXPyM6RfAw7dgiu7twYtnkNpmPU7ANPP1bt8JqudYW/Unh2 cFy5xhJhap9jTSbV5g+QaLRqJpsqHwnQ49O1x6etSdI+fhMTwx06vAf3KW2EDo92ZccE epKPjoSieVLDyVFDR9ZVU2zZhiGWxkTCjZWIYxI6zutwc8zD5TF5bdmPGvh2A5pZL1Ws Fb3FC8iNLP7PD95nSkgwiogJFM+GBdFGGUDpy5eZvaaRKiBREsat8N6Le6o0Wz2Di9kj Rlv6EpNvbico8SsJNFt87JiFKXspo1WZsZo0rMhuZxphBVLqKKni+fVzcdzgpzZF0q7i Y1jw== 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=vhQDNrXkGHG9O6mw9lcCLhLUWTZYJc7FtfyIOvZG5H4=; b=BOjsmg2i9ScUqVIrt5ATd05mnHe9AuQOjpyh3TxwxmNOiiN7PE641gMPrlvpy0JMIF MBdvBArECEdck/KvqESsrBJXcpYwBEbjqa428n6/zDIsATPLxH+QmTAlzKXRaB1gTWE9 DJlFw/aQti6Ptoof0hUWzXTME52az+mH3TxQuN5JtEPxAy/I910khk8MpXE3zozdOg7d iZGZ52YxQ+G0xCEMAg2Myz2tUeNvhPy1WMBs5otuiyMoXor5EN9E9RCBbrK7ytlWFeGc WiHTSvFX85ci69dWomYVst8/uFv2O178QDKEeK2rTNgSRtV2xUkcjBlCDJF5+Zta/bQm tkJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="h/1iUU4v"; 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 e9si3613551pfi.170.2019.07.24.23.00.20; Wed, 24 Jul 2019 23:00:34 -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="h/1iUU4v"; 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 S2404903AbfGYFnR (ORCPT + 99 others); Thu, 25 Jul 2019 01:43:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:58222 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390998AbfGYFnP (ORCPT ); Thu, 25 Jul 2019 01:43:15 -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 59F9F22BEB; Thu, 25 Jul 2019 05:43:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564033394; bh=yA9ysoe2+02dUcjSy3X7DhoALMGRuDZ5yC0Luj3KLHo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h/1iUU4vA3eexE6wsFcYJxpdK4tMQ3q1Lx9EPyyzX37HWbcMvX5pGJj4YDm4UN4YI l7RdSqpOvWZ8lF+COsKs7z5e6tD8C7fgTma0aXX4irukTKGn6zLAMFrW653F4K95q6 6ccRibtXA/MXD7fP1+X0ydPabEjcAqgupkDCK7BE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Krzysztof Kozlowski , Mark Brown Subject: [PATCH 4.19 193/271] regulator: s2mps11: Fix buck7 and buck8 wrong voltages Date: Wed, 24 Jul 2019 21:21:02 +0200 Message-Id: <20190724191711.643359511@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191655.268628197@linuxfoundation.org> References: <20190724191655.268628197@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 @@ -373,8 +373,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), };