Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3785339ybi; Mon, 29 Jul 2019 12:34:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqyckLDvgyZFPYBzkWzhxBUX2G57HPA+BXHJ5LnNoDOJftBnytG4iBqR7OAC4yudPdZbNhuA X-Received: by 2002:a17:90a:22c6:: with SMTP id s64mr115699657pjc.5.1564428883410; Mon, 29 Jul 2019 12:34:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564428883; cv=none; d=google.com; s=arc-20160816; b=cgBe3d1z4HKGPSRCchb0ByHh1SRcofKle3L/ez+LBsY0+TyYT57ohyasQ83sTJkL0D w/Aqufg306ahbRmtUQK3P0x/tVaqpJjSmSDaWq120xrwjpMoEZ1q1w/G64dXiiNGwXda LIW5IG/WUmCBuuf7R1FRC3K2XZOkjvEdWIuHjiLTG2rphrhlLnhUkKmY7a6/knIihrIg SaQCUes17HDg0H1u8RpeeZeVf0vHwSR5qD3M4jshMBHHxf+toGZ3+9fDeyBxZFwBPnPx W4OY+jLotSGWciQYBIIjkdpAELKOdJcE8b/k+OVsJwj6d7lerDIExmg/ZT5A6B5J40KI aQFQ== 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=+0qlpAqT/oNwA5pjVBDvaXX2zFTpAZcOHeQkM8KQLWA=; b=vyqQxzYUoAHSqMDc2KigJknoIQ3S51rIpACG3KPr/py+lPhUBif8qjZ7FVDED65FvQ ok28ThYraNKPC+vjAdp/rpkkl8FkxUmSKkrcLETkfVAjRLcMXhabCftakY9Vr2zFXgNg xFtuSJDym7+7d9EiNE0EMTGoPJNbimOW7k31sGRXiSIL4L296LgSpNc2lj3Ys7MdQloK 77kAodxgSmSWaLY9as84Dz7k+0Xz3n/sLkDjo0qqB1PChXKr4fnZYYEB+uvRDFvksLEO ByV1leixqlZhbsleBexFoEkMxfjfKtOQZWWfl4RHlRATGEUS/0ZA7Qacqg9yf3EC86z7 jGlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PjY0c4Yh; 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 124si28060473pgb.11.2019.07.29.12.34.28; Mon, 29 Jul 2019 12:34:43 -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=PjY0c4Yh; 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 S2388409AbfG2TaR (ORCPT + 99 others); Mon, 29 Jul 2019 15:30:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:43018 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388401AbfG2TaQ (ORCPT ); Mon, 29 Jul 2019 15:30:16 -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 24C232070B; Mon, 29 Jul 2019 19:30:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564428615; bh=OFxhJOi9sLznw4eEidnuhjd6ksLW7loPCO20MUwXS5g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PjY0c4YhsDX9aaXI90P169/2WII/6VSnWdQ5F07oXnPZ4KzVAL5XdHOXNDciKgY86 ysT4xkBMxzQeiyiZKndF/OCuIXLsMkBqX/ZkoNwLK8QF8VJCnZ544Lu4Rc3moZ67bI JpfbA8SHt3rok3qnzdoWA1pl3FoMirawN6NY8M9k= 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.14 131/293] regulator: s2mps11: Fix buck7 and buck8 wrong voltages Date: Mon, 29 Jul 2019 21:20:22 +0200 Message-Id: <20190729190834.609066963@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190820.321094988@linuxfoundation.org> References: <20190729190820.321094988@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 @@ -386,8 +386,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), };