Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1941171rdb; Tue, 5 Sep 2023 09:22:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG7M8e1EibSUkPHj3M7w4d5urIA8vEj7Q0DtsXZBmP4X6B54fch1xNRcE9bhHuzBJX3Q++u X-Received: by 2002:a50:ee17:0:b0:523:406a:5f6 with SMTP id g23-20020a50ee17000000b00523406a05f6mr289744eds.12.1693930922181; Tue, 05 Sep 2023 09:22:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693930922; cv=none; d=google.com; s=arc-20160816; b=YkQY71Yrq6fRZRgrZgjV4vd6+L9LJYIEbxSuvZ0AHwnCpZD9PkM6v9MB+LlvBu/AlE l9VEMIuWdYJ3f0fdT3n4J8NqBT4lUNBHjKMxxP/ZCsoXocQSFgFdSekojoxOlLLp8Ocn 810WngEVmnMk8xUk7G3sWh7J2nLky4Odu/9Ge4GKTnSDJKR5pdDHmO8N5RNrRAjRthtO idTB5CcierOo+ijg51KcGor3Ec+ma4vW6CzBiM5Yuj9JF9lhh0AVLCRqZXRbJdEtisiD 8cf8Aq7GUAVDX8he1CydqJA5smHPCytk8ZA2AWForkoU7yf5CszeaAQq1VOug8jxbHqG oL6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=SqSAx1bRusuwtKPOf+mGzUiMZP0y9vtf9jLXX1JcNAM=; fh=uGknAwPuTOMwME0MS177JfsgulfX44F5BN4XR/BszBg=; b=PjsT2xiJc1e+uyCpqLpenr+EadT1ct2Ql4DojpjubNgLA/EMYfqb/8qj0JOqYXZ5IO p2QcEUyJ0gcRDejRthu+zziMBdjqmfkiQtz+u9tEMcbAWZeRTD6I6Uw7t6xxiq/AhUq6 K/Gg+jCY03xDc3b3w8vhU61EctJejvXGenqpFFpAc7clrnHxOeripHZNGKkNdNVOYRAX 9LpK8fsOL8afthUwKgk2B2heW2/o92paY64u9I1yAT51ekOwd5vp2IrsrDdM7EGFXTi1 8GsgwxrT1pFwog25NQncxjEILegzXEvJl/lZIZOyEFWGNReSjc84U2afpHYDGdMlSjej CsiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=XaFaODq0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m11-20020aa7c48b000000b00523c6fa871csi7950159edq.409.2023.09.05.09.21.59; Tue, 05 Sep 2023 09:22:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=XaFaODq0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239580AbjHaI4g (ORCPT + 8 others); Thu, 31 Aug 2023 04:56:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231590AbjHaI4f (ORCPT ); Thu, 31 Aug 2023 04:56:35 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3365DCE9; Thu, 31 Aug 2023 01:56:33 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id 98e67ed59e1d1-26f6b2c8e80so426242a91.1; Thu, 31 Aug 2023 01:56:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693472192; x=1694076992; darn=vger.kernel.org; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SqSAx1bRusuwtKPOf+mGzUiMZP0y9vtf9jLXX1JcNAM=; b=XaFaODq0MVxBQ1xniBWlEgj9wWxcBu3nZoBsNryVmvShEuzsHxtv8jt+wVhhFSeFec PNGy/6VFuMSgouKA+Vd7RvCW/L7LWtpDdfkSW6tevawkByIBa4dJ1DDXq0gkiWyrR9i3 DzE82apDoFq1niCD9VrBbN46f2VLELwSeQSHuQWmPScSTf63/JDP0s8z4ZTLoKQ7lYBW pnRkRlZViesZG9lo7ljcMHjruDx+1Q2wqPfs1N6q0BXEPQOIgeiCqie1FjtUDdFgxcMJ 8ApEDFVRAGOFU4i0TOxbM1i8JWKHFjxErIwcA/N3iAak0vzR2sRQeM1ANHRqpvWhyI4h 5TFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693472192; x=1694076992; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SqSAx1bRusuwtKPOf+mGzUiMZP0y9vtf9jLXX1JcNAM=; b=eNsGjP/XNwQe3lOOuHYraPRT+31oW2U7TrIF/qhMvku7zFrzM2PS+gXJvCKRV+I97z 7c7RaXRgIFcb1/naYvmJWG/wr/buqSB3QVKpClXIT6JCgjcfMnVOHnr8VcVGsKrgrjJy fEIW3dvJV6smd2X9ruti3lJ9Q/MyNtD0p+joZNgwAg4Gj/Z6UI5KmBnjzeeTGrBJCMn2 lPo28ErdvDWT5AJZJLECgaheHNapfJTrPwCabINkDnovkH75hTOFxMQawhI7dSGT+CAx M96cHBeRGpo72RE9CKrIM3eYJIa5yLsVffp0b+bf87R8rs7vdXzoGWzOP28RKhKKZBh2 yF0A== X-Gm-Message-State: AOJu0YxmrdW13sblVekHwjJK21/hgqq7V0KJAIoUiQBJtIw+wDnV3KgR 1SzNDKRLbCAsgK36bkAmXfjltn0HkYI= X-Received: by 2002:a17:90a:5d0b:b0:269:142e:c2ed with SMTP id s11-20020a17090a5d0b00b00269142ec2edmr4478360pji.37.1693472192495; Thu, 31 Aug 2023 01:56:32 -0700 (PDT) Received: from localhost.localdomain ([113.196.136.192]) by smtp.googlemail.com with ESMTPSA id j16-20020a17090a061000b002676e961261sm3967923pjj.1.2023.08.31.01.56.31 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Aug 2023 01:56:32 -0700 (PDT) From: Wells Lu To: linus.walleij@linaro.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: wells.lu@sunplus.com, Wells Lu Subject: [PATCH] regulator: rt5759: Fix cannot change operation mode. Date: Thu, 31 Aug 2023 16:56:11 +0800 Message-Id: <1693472171-30531-1-git-send-email-wellslutw@gmail.com> X-Mailer: git-send-email 2.7.4 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Wrong register was used in setting operaton mode function. Signed-off-by: Wells Lu --- drivers/regulator/rt5759-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/rt5759-regulator.c b/drivers/regulator/rt5759-regulator.c index c2553dc..3a2eaa7 100644 --- a/drivers/regulator/rt5759-regulator.c +++ b/drivers/regulator/rt5759-regulator.c @@ -70,7 +70,7 @@ static int rt5759_set_mode(struct regulator_dev *rdev, unsigned int mode) return -EINVAL; } - return regmap_update_bits(regmap, RT5759_REG_STATUS, RT5759_FPWM_MASK, + return regmap_update_bits(regmap, RT5759_REG_DCDCCTRL, RT5759_FPWM_MASK, mode_val); } -- 2.7.4