From patchwork Thu Jul 9 12:41:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaibhav Hiremath X-Patchwork-Id: 6755911 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6B0199F380 for ; Thu, 9 Jul 2015 12:47:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A106620767 for ; Thu, 9 Jul 2015 12:47:54 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BB46820742 for ; Thu, 9 Jul 2015 12:47:53 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZDBD7-0007A8-63; Thu, 09 Jul 2015 12:45:53 +0000 Received: from mail-pd0-f179.google.com ([209.85.192.179]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZDBCx-0006xY-A9 for linux-arm-kernel@lists.infradead.org; Thu, 09 Jul 2015 12:45:43 +0000 Received: by pdjr16 with SMTP id r16so3737865pdj.3 for ; Thu, 09 Jul 2015 05:45:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WFi7SgXgMsKNs92CSjhOghlFy4QcBpXFQr4nFiE4NJk=; b=dgO7gTOZQ2dYLSTntY77D5tsFW4+D6o4AcKtcLSy0wfW9xuRS9h1YOXTylmYl9lGJd xiVJ9/UHoaKnFt9z4a9waHTlH+/r9pr9pGnFLh4kHzvKRs3Jr1jk8vU0klwUBKA+SNvc cGup/9Mw/RBoaTGQ8qtgDeHyf+QttWB3K7Xj88csUHbrjxt7ik6UgRsU8ROmWLqsbgVg oiLpXVSOuQWi7nWg1xK43zqJfU0lXSzdfytCw76tlj9J/p4xkeeGZJ8wvPaLUyYXMZXn TsrguNz68IEeW5kH7xP7WmIx3QGc6zDS+aNXZ3LsetwyaXkGRTTxxdXP/I4nazZCb05E io2w== X-Gm-Message-State: ALoCoQm0g+F3D06508l0ti0t7Ni8EwcUOjE7OaQlw+f0kjQvZC/AKg69oU5ZoNAsAC7HWslJSbDZ X-Received: by 10.67.7.162 with SMTP id dd2mr30315963pad.151.1436445922696; Thu, 09 Jul 2015 05:45:22 -0700 (PDT) Received: from localhost.localdomain ([202.62.77.106]) by smtp.gmail.com with ESMTPSA id nm9sm5926108pdb.26.2015.07.09.05.45.18 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Jul 2015 05:45:21 -0700 (PDT) From: Vaibhav Hiremath To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/3] regulator: 88pm800: fix LDO vsel_mask value Date: Thu, 9 Jul 2015 18:11:31 +0530 Message-Id: <1436445692-10656-3-git-send-email-vaibhav.hiremath@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1436445692-10656-1-git-send-email-vaibhav.hiremath@linaro.org> References: <1436445692-10656-1-git-send-email-vaibhav.hiremath@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150709_054543_375136_B33E35FB X-CRM114-Status: GOOD ( 12.32 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sameo@linux.intel.com, Yi Zhang , linux-kernel@vger.kernel.org, lgirdwood@gmail.com, Vaibhav Hiremath , broonie@kernel.org, lee.jones@linaro.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Yi Zhang As per datasheet, Except LDO2, all other LDO's use bit [3:0] for VOUT select. Current code uses wrong mask value of 0x1f, So this patch fixes it to use 0xf. Signed-off-by: Yi Zhang [vaibhav.hiremath@linaro.org: Updated changelog with more detailed description] Signed-off-by: Vaibhav Hiremath --- drivers/regulator/88pm800.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/88pm800.c b/drivers/regulator/88pm800.c index d22a098..fdebd23 100644 --- a/drivers/regulator/88pm800.c +++ b/drivers/regulator/88pm800.c @@ -137,7 +137,7 @@ struct pm800_regulators { .owner = THIS_MODULE, \ .n_voltages = ARRAY_SIZE(ldo_volt_table), \ .vsel_reg = PM800_##vreg##_VOUT, \ - .vsel_mask = 0x1f, \ + .vsel_mask = 0xf, \ .enable_reg = PM800_##ereg, \ .enable_mask = 1 << (ebit), \ .volt_table = ldo_volt_table, \