[lkml]   [2020]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] Fix the bug of axp20x chip driver

On Sat, Nov 21, 2020 at 10:00 PM <> wrote:
> From: "" <>

First of all, the subject should follow existing conventions, with
proper subsystem and driver prefixes, which in this case would be
"regulator: axp20x: ".

Second, the subject should be more precise; "Fix the bug" could mean
anything. "Fix DLDO2 voltage control register mask for AXP22x" says
what is fixed.

So for this patch, the subject should read:

regulator: axp20x: Fix DLDO2 voltage control register mask for AXP22x

> Modified the mask parameter of the voltage data register of the
> axp20x power chip of the PM system, and its port is DLDO2. My test
> environment is under Allwinner A40I of arm architecture, and the
> test kernel version is 5.4.


Your commit message should state why you did this change. You already
covered what you changed, but that is also plainly visible from the
patch body.

You should include how you encountered the bug. In your case this would
probably be the regulator output not changing voltage as it should. And
if possible, include why the bug existed (which in this case it was likely
a copy-paste error in the macro conversion patch). The latter is not
required, but is helpful for others looking at the change.

You also included your test platform. But you should include the test
result of the "fixed" system, as a before-and-after comparison. This
could be as simple as "Now the regulator output voltage changes as
the system requests it".

Fourth, please add the following tags so that the patch gets backported:

Fixes: db4a555f7c4c ("regulator: axp20x: use defines for masks")
Cc: <>

You can read more about stable kernel rules in general in
Documentation/process/stable-kernel-rules.rst in the kernel tree.

Last, and I believe this is more superficial, could you write your
name in a slightly more standard way, such as Ding-Hua Ma, or
DingHua Ma? Apologies if I got that wrong.


> Signed-off-by: <>
> ---
> drivers/regulator/axp20x-regulator.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x-regulator.c
> index cd1224182ad7..90cb8445f721 100644
> --- a/drivers/regulator/axp20x-regulator.c
> +++ b/drivers/regulator/axp20x-regulator.c
> @@ -594,7 +594,7 @@ static const struct regulator_desc axp22x_regulators[] = {
> AXP_DESC(AXP22X, DLDO2, "dldo2", "dldoin", 700, 3300, 100,
> AXP_DESC(AXP22X, DLDO3, "dldo3", "dldoin", 700, 3300, 100,
> --
> 2.25.1

 \ /
  Last update: 2020-11-23 04:58    [W:0.032 / U:2.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site