From patchwork Wed Apr 6 06:06:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivaylo Dimitrov X-Patchwork-Id: 8758551 Return-Path: X-Original-To: patchwork-linux-omap@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 F351E9FD89 for ; Wed, 6 Apr 2016 06:06:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 29570201E4 for ; Wed, 6 Apr 2016 06:06:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 42F57201EF for ; Wed, 6 Apr 2016 06:06:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754676AbcDFGGc (ORCPT ); Wed, 6 Apr 2016 02:06:32 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:34123 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754373AbcDFGGb (ORCPT ); Wed, 6 Apr 2016 02:06:31 -0400 Received: by mail-wm0-f68.google.com with SMTP id n3so10101741wmn.1; Tue, 05 Apr 2016 23:06:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3QzKDp95KupEsynfCvV+D2xBbgWqhrJrJf2BFm9fZlU=; b=ZY2GHG276I1WHp9oXWY23WNztUloJlCYqqKsHJFjwRhghcAflGwKpRQPsSI1EXgxwd xR+FjrTpPMI6Xd+xCJRWN7CSzljSFgYJUxfJ9O3YZtW5/RPDtG8JEhRgpvCmxMdt9Voe 8Y6sMzsfzb2v78GHBcjXhNMxxcaOTCJPUlXVLaohXJYXMSPczHJkfxjVZoEPGkRFgxJc AV3xMRHKo46XdmNWAakBWUMiucrVais43iNIOWFNlh62U7aLSkzdrk3FnkEKKYosH3Rd /2l3tiyqlUmNMD17LNFaSVlT5B/kDQIVJUl/BL2uh6hZeRJQRCOq4Jhj4j2vxWIgGvg3 IMjw== 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=3QzKDp95KupEsynfCvV+D2xBbgWqhrJrJf2BFm9fZlU=; b=ZW1fNajI7O9lEUTLJmE7b7u2n0htP7wFoqLJ53u0duHc+mYO80oZeJdJuqO9XUXPWr gIBccurYRYweqsTTzpBfS0OSvUkSs5adloA6pzC4yh+S9zD91h/IOUsHjXTgSWGZiQYw 2J7sQz0XZZau8hdEW1srS/bh64807J4wKywx94wX/CJePRei3hJtf5qauSUeagqi1CoI jXca/WQ1bdoROw0knr8sxFz6Frkg3fWf/+76XsJS0ZNJ88uci+o2o5FFtKg8FQPxtuWk fCP+YuQy1P/WvlzG1m0S89GQ+u4Wtg10ZUu47qWA+oNxxfSwKEQIxvBC0+g0bpotc417 AvQg== X-Gm-Message-State: AD7BkJIQbkqQRWyJbbp4vfjDt5d22y2z5LTEDXj5pqFGpkKHqQGrTp+Y/xa4QDd+62ScEg== X-Received: by 10.28.60.197 with SMTP id j188mr12253189wma.68.1459922789814; Tue, 05 Apr 2016 23:06:29 -0700 (PDT) Received: from localhost.localdomain ([46.249.74.23]) by smtp.gmail.com with ESMTPSA id j10sm1326675wjb.46.2016.04.05.23.06.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Apr 2016 23:06:28 -0700 (PDT) From: Ivaylo Dimitrov To: broonie@kernel.org Cc: tony@atomide.com, lgirdwood@gmail.com, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, Ivaylo Dimitrov Subject: [PATCH] regulator: twl: Fix a typo in twl4030_send_pb_msg Date: Wed, 6 Apr 2016 09:06:03 +0300 Message-Id: <1459922763-14775-1-git-send-email-ivo.g.dimitrov.75@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <57043B87.20304@gmail.com> References: <57043B87.20304@gmail.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 Commit <2330b05c095bdeaaf1261c54cd2d4b9127496996> ("regulator: twl: Make sure we have access to powerbus before trying to write to it") has implemented the needed logic to correctly access powerbus through i2c, however it brought a typo when powerbus configuration is restored, which results in writing to a wrong register. Fix that by providing the correct register value. Signed-off-by: Ivaylo Dimitrov --- drivers/regulator/twl-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/twl-regulator.c b/drivers/regulator/twl-regulator.c index 11c6a5c..faeb5ee 100644 --- a/drivers/regulator/twl-regulator.c +++ b/drivers/regulator/twl-regulator.c @@ -253,7 +253,7 @@ static int twl4030_send_pb_msg(unsigned msg) /* Restore powerbus configuration */ return twl_i2c_write_u8(TWL_MODULE_PM_MASTER, val, - TWL_MODULE_PM_MASTER); + TWL4030_PM_MASTER_PB_CFG); } static int twl4030reg_enable(struct regulator_dev *rdev)