From patchwork Fri May 12 08:19:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 92998 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp4936961vqo; Fri, 12 May 2023 01:28:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6nLx1AzykAlIWS0fwucElGpxW9CfewasoXB3vZDBuBLQsU5fTCCDD4jTIcHWO3CoOVFOQU X-Received: by 2002:a17:902:b207:b0:1ad:e5e6:6c30 with SMTP id t7-20020a170902b20700b001ade5e66c30mr1058322plr.44.1683880119465; Fri, 12 May 2023 01:28:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683880119; cv=none; d=google.com; s=arc-20160816; b=k8ZWT0YkzFVLkia/F2LP6evjr47oo9YcC/j6JHPNMw3ZD3fOqmsVpnyNN68zJy8ySI YwIeVZ+6vfUltXnBZkvSTHBZIsIjoJJ4wnvwJWLEmkGBMVQcSueQsvLVZYcOt2CBu5Ze EiWgBwBHbgFvGAhpzCVhlisxxOIWlLCGzaVA9gCJo3HbHr/1cjXIX61ekM0Z2G9aPS+G 3CWRqgnvIUAxnby0xmjDmPvhAcr7JobAyQddG2uvRAnGyB7qPnmquH30nDYRoHUm5szZ SBVaSZ9Er1sZg35u0+xE27GNFN4ppdtUanSEgCqKb+0i7VFKXLPLqf0xw73q5pjyzll6 jvyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=HNvzrh3FezI6IAN3gOCwPdgB08P8jCqMVS6nDIz1CWY=; b=MvV8QWear1R+3ihGuRERsr1a0gZ8KIpk1GNb+mex8KuaJZhJ52U7kTd8KCIzCWyv+x B65MlJRVejUtIMweHJUPcR1rhZTlnUof1XXmPJj5opl2KeOER1ngftjJ4J/zl9mOHa4C rOnnSDUbdY+z4QtpdDBWzCTk5+dAV+iFFA32AhDZTGOAZkkAgO/6HyR2PpcUV1E4kcsS Qp3KJu0DciFkdwTqqm7FLUU4nIfAJTUasmokiIsVtZxYwLXFT7occQ2l0UgDUrlYu1qd 3YLC1XY4YIHaFLYBcyJrd5rL+jaCAjEW9fPkjmoE4OdRdgptEM5K/zRagSGi3uT39138 AkLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=jtIRWk6R; dkim=pass header.i=@tq-group.com header.s=key1 header.b=pCr9ZekA; 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=NONE dis=NONE) header.from=tq-group.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gc17-20020a17090b311100b0024de6b5e2b5si22115900pjb.155.2023.05.12.01.28.25; Fri, 12 May 2023 01:28:39 -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=@tq-group.com header.s=key1 header.b=jtIRWk6R; dkim=pass header.i=@tq-group.com header.s=key1 header.b=pCr9ZekA; 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=NONE dis=NONE) header.from=tq-group.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239930AbjELITm (ORCPT + 99 others); Fri, 12 May 2023 04:19:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239929AbjELITk (ORCPT ); Fri, 12 May 2023 04:19:40 -0400 Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9CD01FC8 for ; Fri, 12 May 2023 01:19:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1683879578; x=1715415578; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=HNvzrh3FezI6IAN3gOCwPdgB08P8jCqMVS6nDIz1CWY=; b=jtIRWk6RbGhjN/UOzWbBI6HkeoJyTKqoTjqXQUo5ooRfONKLZLCfZ682 xXmNlzMZ1gufszV3X4QiGa0dZvrebmUO2XZkZZkv0RuGvKbh9gzy8W7Ce rJl1lsxzu7mz7r9nfq7i2Qhs0hVQVS/5kpLTF2g/l3YNxWg/MiE4sn8W9 Hm80XYeH+NeGR+1+zqEgpZqrHCa/05zaqDToUVQPlKGHhyzBEfWWCpPnV gZshADtM056TqEYoz4/dmMRc3NfJRbF0cJZLl/x6+QGKzVtlsPMam6ens 7ZYbe+jMhNIK8Tn1mrLNJUWh+82S9hod6+Ao7nu9He6T60kIhq1OWpA98 A==; X-IronPort-AV: E=Sophos;i="5.99,269,1677538800"; d="scan'208";a="30871215" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 12 May 2023 10:19:37 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Fri, 12 May 2023 10:19:37 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Fri, 12 May 2023 10:19:37 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1683879577; x=1715415577; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=HNvzrh3FezI6IAN3gOCwPdgB08P8jCqMVS6nDIz1CWY=; b=pCr9ZekA8CmcxPm7AFo7ed6m88Tz7Z6XFhabgLc34Y4FoXM64kxxMw/n ea5Lrg3wwWlI/WTEoafQzye2cOXXFRidAgzp5BvqQTrUrZcF51wsxBcuS +xg4WUNjFZzKnhYsbbqN8vbEJIhwwztBFWziVtfeSxkicpKAaA7Wc+7mM g0U/ws7keL7mOU0YiCL+a3LS+o4tWLFgDtnCOjtCJ8JOq4HZC28JVcihM NnXNRzMH7ceynM52Fx6plb3o7aJDpFN6FRBYR+rEy3iZBFesaKzOcecqM L+cNubaM2gnRX51IKNtv2Mu4icNufnTvY/11Ov+AX4jExrmUt77vHFnTa A==; X-IronPort-AV: E=Sophos;i="5.99,269,1677538800"; d="scan'208";a="30871214" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 12 May 2023 10:19:37 +0200 Received: from steina-w.tq-net.de (unknown [10.123.53.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id D84F9280056; Fri, 12 May 2023 10:19:36 +0200 (CEST) From: Alexander Stein To: Liam Girdwood , Mark Brown , Frieder Schrempf , Robin Gong Cc: Alexander Stein , linux-kernel@vger.kernel.org Subject: [PATCH v3 1/1] regulator: pca9450: Fix BUCK2 enable_mask Date: Fri, 12 May 2023 10:19:34 +0200 Message-Id: <20230512081935.2396180-1-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765676280127088166?= X-GMAIL-MSGID: =?utf-8?q?1765676280127088166?= This fixes a copy & paste error. No functional change intended, BUCK1_ENMODE_MASK equals BUCK2_ENMODE_MASK. Fixes: 0935ff5f1f0a ("regulator: pca9450: add pca9450 pmic driver") Originally-from: Robin Gong Signed-off-by: Alexander Stein Reviewed-by: Frieder Schrempf --- Changes in v3: * Added Frieder's R-b * Rebase directly onto next-20230512 drivers/regulator/pca9450-regulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/pca9450-regulator.c b/drivers/regulator/pca9450-regulator.c index 9f2e33a5a69e..91bfb7e026c9 100644 --- a/drivers/regulator/pca9450-regulator.c +++ b/drivers/regulator/pca9450-regulator.c @@ -264,7 +264,7 @@ static const struct pca9450_regulator_desc pca9450a_regulators[] = { .vsel_reg = PCA9450_REG_BUCK2OUT_DVS0, .vsel_mask = BUCK2OUT_DVS0_MASK, .enable_reg = PCA9450_REG_BUCK2CTRL, - .enable_mask = BUCK1_ENMODE_MASK, + .enable_mask = BUCK2_ENMODE_MASK, .ramp_reg = PCA9450_REG_BUCK2CTRL, .ramp_mask = BUCK2_RAMP_MASK, .ramp_delay_table = pca9450_dvs_buck_ramp_table, @@ -502,7 +502,7 @@ static const struct pca9450_regulator_desc pca9450bc_regulators[] = { .vsel_reg = PCA9450_REG_BUCK2OUT_DVS0, .vsel_mask = BUCK2OUT_DVS0_MASK, .enable_reg = PCA9450_REG_BUCK2CTRL, - .enable_mask = BUCK1_ENMODE_MASK, + .enable_mask = BUCK2_ENMODE_MASK, .ramp_reg = PCA9450_REG_BUCK2CTRL, .ramp_mask = BUCK2_RAMP_MASK, .ramp_delay_table = pca9450_dvs_buck_ramp_table,