Message ID | 20230310092857.3555187-1-alexander.stein@ew.tq-group.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp774054wrd; Fri, 10 Mar 2023 01:38:45 -0800 (PST) X-Google-Smtp-Source: AK7set/NTnd2l40r5oifKQs3L3k2rY4X63hx6ryYFyk6vEkUI7iKwnwKMWH/yWo0re6qLItCyqGE X-Received: by 2002:a17:90b:3810:b0:237:62f7:3106 with SMTP id mq16-20020a17090b381000b0023762f73106mr26414297pjb.17.1678441125396; Fri, 10 Mar 2023 01:38:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678441125; cv=none; d=google.com; s=arc-20160816; b=vjD6UOSjwhX6wJQ31wER8vJZMVOgfGXRhHBvYhxywdazIcJNRxxQSQemzK6im22Pz9 HRO3EyrF+R6Ol2wY0jXA3MHAY4kcIm+h54SF5ECGkJXrEyHcFh76LXtVyKBOyJN/Zw8i 5BnEfE1DzZxKPUIbLgvC/r7Q4lEFwqSiEs/SLpzf/GzgxLxcPmD+g45kFaGD3wxaRu0L 8UQIB8P1F5Y18bsgayiz6BiuniRa5l5wKx7ljoLaND5FOAhwNXuBXH2efeBpybphy4MC 4uXR++bE258im+Mqx9cVeIXijjf/XQdF3YUYFERN9hlXCCeRjdOE+cqaX3ayWFy39Ypx u6ew== 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=syIX6OCm2m5QwIQSEcFQtWFJltEyQOmZDTDFEKeyNp8=; b=Wpw4ihHa4d/ZdefkUcoevsMNgmkLBWkOF4jBOq/mFbWvLCWkMeoR33G+Z12NUhd20f 2v2v08N1kBKGDH73M9KwR4ioM5NIwUkwv+XwG5V/wC+rEFlFWMp5Oo4ICq5i56yUdqy1 t8NAXpOGSRS0sDA9jKF59+Bve+xp4B3tD0rbAgKIkcHUhqMqZGu6zQE9DKwkkyiyagpF GNcaAptVn3RlnPi0YvwpLCiuC0zdK1a50SVouXXaKPnZ7dpFNCvqBuLltkva8gombDyg pZKnmWUADxYdBo2Dj4PsJXn9iLvca45+KBgup7W6ad9G/4JKVofCHMGgkp4TPQGiNoyf UTmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tq-group.com header.s=key1 header.b=lWeWhChZ; dkim=pass header.i=@tq-group.com header.s=key1 header.b="B/VAqFPN"; 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 c4-20020a17090a558400b0022c17104488si1520401pji.25.2023.03.10.01.38.29; Fri, 10 Mar 2023 01:38:45 -0800 (PST) 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=lWeWhChZ; dkim=pass header.i=@tq-group.com header.s=key1 header.b="B/VAqFPN"; 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 S229917AbjCJJce (ORCPT <rfc822;carlos.wei.hk@gmail.com> + 99 others); Fri, 10 Mar 2023 04:32:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229929AbjCJJcH (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 10 Mar 2023 04:32:07 -0500 Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E1E1F8F03 for <linux-kernel@vger.kernel.org>; Fri, 10 Mar 2023 01:29:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1678440566; x=1709976566; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=syIX6OCm2m5QwIQSEcFQtWFJltEyQOmZDTDFEKeyNp8=; b=lWeWhChZ+bBYhs5XSaFWlodBOjLHKSssxmHufToGIma9jVfMwwFhhpfP UBhit4dqYYuhk19+v7gj/unDGY9YWHjhYw0/3MBAD6BuXQk3h+34TDc93 /Mk82NjJb+sh0zLT3L5Hip8t9Scd8HqtLvmGHjN2tFM39UPdWcb+vaKC7 I8AEgGiK6TdBzKKJHwoNgsArY311GAdkk1UZuJgsXypJ/vbgmUEWfq4Uz COOCGP+Sj5nq8IyX+OvPF2a/AVlol0QHFf/Pb4+pGK4qJJqKIWudWxkQZ SWcahTLP5xC5Kso+lh7fIY7E+2oE5EOTDNyvuDYNwhpj0FAv7E6THR6R4 A==; X-IronPort-AV: E=Sophos;i="5.98,249,1673910000"; d="scan'208";a="29601737" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 10 Mar 2023 10:29:05 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Fri, 10 Mar 2023 10:29:04 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Fri, 10 Mar 2023 10:29:04 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1678440545; x=1709976545; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=syIX6OCm2m5QwIQSEcFQtWFJltEyQOmZDTDFEKeyNp8=; b=B/VAqFPNuulPon4/dPDylomZ6+QkbEgdTcEXYmAvKF6QCdq30QPLI9Jr 74lW2Xj0VsawUMJjknrbvqJ6Pa6aIuofTtGJs0gE2fgrzshHmVb1B17Ip HFzRiJPao+n1PFY/uf5v4cNowEZ0sxeFb5l/Q5cj0XKG9YCmooIUodUuK MNP0O2p9SQbRWJIoz6aPQURAQ6xjXPAUrVZxxtSg/5u7gNWERiM0vrpwD GgWEi1OpOC1yLF+yd9YprMfHERCvlcFDjvaBzykAIDx0ax+U+kcJaLwTN UiarUr6bCheoORbtPN7hgqlp9qBGLZkNvWGI/bFnfAwmPwm6sU4NlPtwO g==; X-IronPort-AV: E=Sophos;i="5.98,249,1673910000"; d="scan'208";a="29601736" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 10 Mar 2023 10:29:04 +0100 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 41E01280056; Fri, 10 Mar 2023 10:29:04 +0100 (CET) From: Alexander Stein <alexander.stein@ew.tq-group.com> To: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Frieder Schrempf <frieder.schrempf@kontron.de>, Robin Gong <yibin.gong@nxp.com> Cc: Alexander Stein <alexander.stein@ew.tq-group.com>, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] regulator: pca9450: Fix BUCK2 enable_mask Date: Fri, 10 Mar 2023 10:28:57 +0100 Message-Id: <20230310092857.3555187-1-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759973080992331206?= X-GMAIL-MSGID: =?utf-8?q?1759973080992331206?= |
Series |
[1/1] regulator: pca9450: Fix BUCK2 enable_mask
|
|
Commit Message
Alexander Stein
March 10, 2023, 9:28 a.m. UTC
This fixes a copy & paste error.
Fixes: 0935ff5f1f0a ("regulator: pca9450: add pca9450 pmic driver")
Originally-from: Robin Gong <yibin.gong@nxp.com>
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
---
This diff is extracted from a downstream commit authored by Robin Gong.
I'm not sure if adding Originally-from: is enough here or I do have to
change From: as well.
drivers/regulator/pca9450-regulator.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On 10.03.23 10:28, Alexander Stein wrote: > This fixes a copy & paste error. I would mention here, that this doesn't contain any functional changes as BUCK1_ENMODE_MASK is equal to BUCK2_ENMODE_MASK. > > Fixes: 0935ff5f1f0a ("regulator: pca9450: add pca9450 pmic driver") > Originally-from: Robin Gong <yibin.gong@nxp.com> > Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com> > --- > This diff is extracted from a downstream commit authored by Robin Gong. > I'm not sure if adding Originally-from: is enough here or I do have to > change From: as well. I never heard of "Originally-from:". Does this tag exist? Is it documented somewhere? I think that your tooling (git format-patch) should add a From: tag automatically if you correctly pick up a patch from someone else. Other than these formal issues the change itself looks good to me. > > 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 c84d95b11e9c..544e741f7108 100644 > --- a/drivers/regulator/pca9450-regulator.c > +++ b/drivers/regulator/pca9450-regulator.c > @@ -265,7 +265,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, > .enable_val = BUCK_ENMODE_ONREQ_STBYREQ, > .ramp_reg = PCA9450_REG_BUCK2CTRL, > .ramp_mask = BUCK2_RAMP_MASK, > @@ -509,7 +509,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, > .enable_val = BUCK_ENMODE_ONREQ_STBYREQ, > .ramp_reg = PCA9450_REG_BUCK2CTRL, > .ramp_mask = BUCK2_RAMP_MASK,
Hi Frieder, thanks for your comments. Am Montag, 13. März 2023, 14:46:08 CET schrieb Frieder Schrempf: > On 10.03.23 10:28, Alexander Stein wrote: > > This fixes a copy & paste error. > > I would mention here, that this doesn't contain any functional changes > as BUCK1_ENMODE_MASK is equal to BUCK2_ENMODE_MASK. That's a good idea. > > Fixes: 0935ff5f1f0a ("regulator: pca9450: add pca9450 pmic driver") > > Originally-from: Robin Gong <yibin.gong@nxp.com> > > Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com> > > --- > > This diff is extracted from a downstream commit authored by Robin Gong. > > I'm not sure if adding Originally-from: is enough here or I do have to > > change From: as well. > > I never heard of "Originally-from:". Does this tag exist? Is it > documented somewhere? Well, it's not documented, but it pops up occasionally in some commits, e.g. 3fb906e7fabbb ("cgroup/cpuset: Don't filter offline CPUs in cpuset_cpus_allowed() for top cpuset tasks") I might be something only some maintainers accept though. > I think that your tooling (git format-patch) should add a From: tag > automatically if you correctly pick up a patch from someone else. Well, it's not exactly cherry-picked, but extracted from an existing commit [1], so that's maybe why my name has been put into From: while extracting. As the diff in this patch is not exactly the same as from the origin, I did not want to put Robin Gong into Signed-off-by. And I think having an author in From: but not in Signed-off-by: tag should not happen. Searching how I can still give credit I found Originally-from. If there is a better way to handle this, I'm ready to adapt to that. Best regards, Alexander [1] https://github.com/Freescale/linux-fslc/commit/ fe6b4f7a23a79637c6fb182fb1ea9136d953e3f7 > Other than these formal issues the change itself looks good to me. > > > 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 c84d95b11e9c..544e741f7108 > > 100644 > > --- a/drivers/regulator/pca9450-regulator.c > > +++ b/drivers/regulator/pca9450-regulator.c > > @@ -265,7 +265,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, > > > > .enable_val = BUCK_ENMODE_ONREQ_STBYREQ, > > .ramp_reg = PCA9450_REG_BUCK2CTRL, > > .ramp_mask = BUCK2_RAMP_MASK, > > > > @@ -509,7 +509,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, > > > > .enable_val = BUCK_ENMODE_ONREQ_STBYREQ, > > .ramp_reg = PCA9450_REG_BUCK2CTRL, > > .ramp_mask = BUCK2_RAMP_MASK,
On 13.03.23 15:21, Alexander Stein wrote: > Hi Frieder, > > thanks for your comments. > > Am Montag, 13. März 2023, 14:46:08 CET schrieb Frieder Schrempf: >> On 10.03.23 10:28, Alexander Stein wrote: >>> This fixes a copy & paste error. >> >> I would mention here, that this doesn't contain any functional changes >> as BUCK1_ENMODE_MASK is equal to BUCK2_ENMODE_MASK. > > That's a good idea. > >>> Fixes: 0935ff5f1f0a ("regulator: pca9450: add pca9450 pmic driver") >>> Originally-from: Robin Gong <yibin.gong@nxp.com> >>> Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com> >>> --- >>> This diff is extracted from a downstream commit authored by Robin Gong. >>> I'm not sure if adding Originally-from: is enough here or I do have to >>> change From: as well. >> >> I never heard of "Originally-from:". Does this tag exist? Is it >> documented somewhere? > > Well, it's not documented, but it pops up occasionally in some commits, e.g. > 3fb906e7fabbb ("cgroup/cpuset: Don't filter offline CPUs in > cpuset_cpus_allowed() for top cpuset tasks") > I might be something only some maintainers accept though. > >> I think that your tooling (git format-patch) should add a From: tag >> automatically if you correctly pick up a patch from someone else. > > Well, it's not exactly cherry-picked, but extracted from an existing commit > [1], so that's maybe why my name has been put into From: while extracting. > As the diff in this patch is not exactly the same as from the origin, I did > not want to put Robin Gong into Signed-off-by. And I think having an author in > From: but not in Signed-off-by: tag should not happen. > Searching how I can still give credit I found Originally-from. If there is a > better way to handle this, I'm ready to adapt to that. Ok, good question. I currently have a similar case somewhere else and I'm also not really sure how to handle it properly. I don't think we are ever allowed to add a Signed-off-by tag for someone else. Maybe "Originally-from" is correct for this case but I never really like to use tags that aren't generally accepted or documented somewhere.
Hi, Am Montag, 13. März 2023, 15:38:52 CEST schrieb Frieder Schrempf: > On 13.03.23 15:21, Alexander Stein wrote: > > Hi Frieder, > > > > thanks for your comments. > > > > Am Montag, 13. März 2023, 14:46:08 CET schrieb Frieder Schrempf: > >> On 10.03.23 10:28, Alexander Stein wrote: > >>> This fixes a copy & paste error. > >> > >> I would mention here, that this doesn't contain any functional changes > >> as BUCK1_ENMODE_MASK is equal to BUCK2_ENMODE_MASK. > > > > That's a good idea. > > > >>> Fixes: 0935ff5f1f0a ("regulator: pca9450: add pca9450 pmic driver") > >>> Originally-from: Robin Gong <yibin.gong@nxp.com> > >>> Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com> > >>> --- > >>> This diff is extracted from a downstream commit authored by Robin Gong. > >>> I'm not sure if adding Originally-from: is enough here or I do have to > >>> change From: as well. > >> > >> I never heard of "Originally-from:". Does this tag exist? Is it > >> documented somewhere? > > > > Well, it's not documented, but it pops up occasionally in some commits, > > e.g. 3fb906e7fabbb ("cgroup/cpuset: Don't filter offline CPUs in > > cpuset_cpus_allowed() for top cpuset tasks") > > I might be something only some maintainers accept though. > > > >> I think that your tooling (git format-patch) should add a From: tag > >> automatically if you correctly pick up a patch from someone else. > > > > Well, it's not exactly cherry-picked, but extracted from an existing > > commit > > [1], so that's maybe why my name has been put into From: while extracting. > > As the diff in this patch is not exactly the same as from the origin, I > > did > > not want to put Robin Gong into Signed-off-by. And I think having an > > author in From: but not in Signed-off-by: tag should not happen. > > Searching how I can still give credit I found Originally-from. If there is > > a better way to handle this, I'm ready to adapt to that. > > Ok, good question. I currently have a similar case somewhere else and > I'm also not really sure how to handle it properly. I don't think we are > ever allowed to add a Signed-off-by tag for someone else. > Maybe "Originally-from" is correct for this case but I never really like > to use tags that aren't generally accepted or documented somewhere. Could some of the maintainers make a call here, how to address the original author where the change is taken from? Note: It is not cherry-picked, but only some hunks are taken. Thanks Best regards, Alexander
On Fri, Apr 21, 2023 at 01:57:01PM +0200, Alexander Stein wrote: > Could some of the maintainers make a call here, how to address the original > author where the change is taken from? Note: It is not cherry-picked, but only > some hunks are taken. I don't particularly care so long as everyone involved who should be getting credit is reasonably happy.
diff --git a/drivers/regulator/pca9450-regulator.c b/drivers/regulator/pca9450-regulator.c index c84d95b11e9c..544e741f7108 100644 --- a/drivers/regulator/pca9450-regulator.c +++ b/drivers/regulator/pca9450-regulator.c @@ -265,7 +265,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, .enable_val = BUCK_ENMODE_ONREQ_STBYREQ, .ramp_reg = PCA9450_REG_BUCK2CTRL, .ramp_mask = BUCK2_RAMP_MASK, @@ -509,7 +509,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, .enable_val = BUCK_ENMODE_ONREQ_STBYREQ, .ramp_reg = PCA9450_REG_BUCK2CTRL, .ramp_mask = BUCK2_RAMP_MASK,