diff mbox series

[v2] media: ccs: Fix the op_pll_multiplier address

Message ID 20210414162453.22868-1-be.wimm@gmail.com
State New
Headers show
Series [v2] media: ccs: Fix the op_pll_multiplier address | expand

Commit Message

Bernhard Wimmer April 14, 2021, 4:24 p.m. UTC
According to the CCS spec the op_pll_multiplier address is 0x030e,
not 0x031e.

Signed-off-by: Bernhard Wimmer <be.wimm@gmail.com>
---
Changes in v2:
  - reflow 'generated by ...' line
  - adjust commit message line break

 Documentation/driver-api/media/drivers/ccs/ccs-regs.asc | 2 +-
 Documentation/driver-api/media/drivers/ccs/mk-ccs-regs  | 5 +++--
 drivers/media/i2c/ccs/ccs-limits.c                      | 4 ++++
 drivers/media/i2c/ccs/ccs-limits.h                      | 4 ++++
 drivers/media/i2c/ccs/ccs-regs.h                        | 6 +++++-
 5 files changed, 17 insertions(+), 4 deletions(-)

Comments

Sakari Ailus April 21, 2021, 12:30 p.m. UTC | #1
Hi Bernhard,

Thanks for the patch.

On Wed, Apr 14, 2021 at 06:24:53PM +0200, Bernhard Wimmer wrote:
> According to the CCS spec the op_pll_multiplier address is 0x030e,

> not 0x031e.

> 

> Signed-off-by: Bernhard Wimmer <be.wimm@gmail.com>


I missed last time that the register file and the driver were merged at a
different time and the driver fix needs to be backported to the stable
tree. Could you split the patch into two, i.e. one that has the changes
under Documentation and another one in drivers?

I can do that too, just let me know.

Thanks.

-- 
Kind regards,

Sakari Ailus
Bernhard Wimmer April 21, 2021, 3:08 p.m. UTC | #2
Hi,

On 21/04/2021 14:30, Sakari Ailus wrote:
> Hi Bernhard,

> 

> Thanks for the patch.

> 

> On Wed, Apr 14, 2021 at 06:24:53PM +0200, Bernhard Wimmer wrote:

>> According to the CCS spec the op_pll_multiplier address is 0x030e,

>> not 0x031e.

>>

>> Signed-off-by: Bernhard Wimmer <be.wimm@gmail.com>

> 

> I missed last time that the register file and the driver were merged at a

> different time and the driver fix needs to be backported to the stable

> tree. Could you split the patch into two, i.e. one that has the changes

> under Documentation and another one in drivers?

> 

> I can do that too, just let me know.


I'm not entirely sure what tags or commits these patches should apply
to, so it's probably faster if you do it.

Alternatively if you can point me in the right direction then I'm happy
to do it (hopefully without too much spam on the mailing list).

> 

> Thanks.

>
Sakari Ailus April 21, 2021, 8:22 p.m. UTC | #3
Hi Bernhard,

On Wed, Apr 21, 2021 at 05:08:33PM +0200, Bernhard Wimmer wrote:
> Hi,

> 

> On 21/04/2021 14:30, Sakari Ailus wrote:

> > Hi Bernhard,

> > 

> > Thanks for the patch.

> > 

> > On Wed, Apr 14, 2021 at 06:24:53PM +0200, Bernhard Wimmer wrote:

> >> According to the CCS spec the op_pll_multiplier address is 0x030e,

> >> not 0x031e.

> >>

> >> Signed-off-by: Bernhard Wimmer <be.wimm@gmail.com>

> > 

> > I missed last time that the register file and the driver were merged at a

> > different time and the driver fix needs to be backported to the stable

> > tree. Could you split the patch into two, i.e. one that has the changes

> > under Documentation and another one in drivers?

> > 

> > I can do that too, just let me know.

> 

> I'm not entirely sure what tags or commits these patches should apply

> to, so it's probably faster if you do it.

> 

> Alternatively if you can point me in the right direction then I'm happy

> to do it (hopefully without too much spam on the mailing list).


I can put the necessary tags in place when I pick up the patches.

The result should be two patches, one with changes under the Documentation
directory and another with the changes under drivers directory. Possibly
the driver patch could mention ge-generation of the files.

The patch touching the Documentation directory should have
"Documentation: " prepended to the subject line.

-- 
Kind regards,

Sakari Ailus
diff mbox series

Patch

diff --git a/Documentation/driver-api/media/drivers/ccs/ccs-regs.asc b/Documentation/driver-api/media/drivers/ccs/ccs-regs.asc
index f2042acc8a45..bbf9213c3388 100644
--- a/Documentation/driver-api/media/drivers/ccs/ccs-regs.asc
+++ b/Documentation/driver-api/media/drivers/ccs/ccs-regs.asc
@@ -210,7 +210,7 @@  pll_multiplier				0x0306	16
 op_pix_clk_div				0x0308	16
 op_sys_clk_div				0x030a	16
 op_pre_pll_clk_div			0x030c	16
-op_pll_multiplier			0x031e	16
+op_pll_multiplier			0x030e	16
 pll_mode				0x0310	8
 - f					0	0
 - e	single				0
diff --git a/Documentation/driver-api/media/drivers/ccs/mk-ccs-regs b/Documentation/driver-api/media/drivers/ccs/mk-ccs-regs
index 6668deaf2f19..2a4edc7e051a 100755
--- a/Documentation/driver-api/media/drivers/ccs/mk-ccs-regs
+++ b/Documentation/driver-api/media/drivers/ccs/mk-ccs-regs
@@ -72,13 +72,14 @@  $uc_header =~ s/[^A-Z0-9]/_/g;
 
 my $copyright = "/* Copyright (C) 2019--2020 Intel Corporation */\n";
 my $license = "SPDX-License-Identifier: GPL-2.0-only OR BSD-3-Clause";
+my $note = "/*\n * Generated by $0;\n * do not modify.\n */\n";
 
 for my $fh ($A, $LC) {
-	print $fh "// $license\n$copyright\n" if defined $fh;
+	print $fh "// $license\n$copyright$note\n" if defined $fh;
 }
 
 for my $fh ($H, $LH) {
-	print $fh "/* $license */\n$copyright\n";
+	print $fh "/* $license */\n$copyright$note\n";
 }
 
 sub bit_def($) {
diff --git a/drivers/media/i2c/ccs/ccs-limits.c b/drivers/media/i2c/ccs/ccs-limits.c
index f5511789ac83..4969fa425317 100644
--- a/drivers/media/i2c/ccs/ccs-limits.c
+++ b/drivers/media/i2c/ccs/ccs-limits.c
@@ -1,5 +1,9 @@ 
 // SPDX-License-Identifier: GPL-2.0-only OR BSD-3-Clause
 /* Copyright (C) 2019--2020 Intel Corporation */
+/*
+ * Generated by Documentation/driver-api/media/drivers/ccs/mk-ccs-regs;
+ * do not modify.
+ */
 
 #include "ccs-limits.h"
 #include "ccs-regs.h"
diff --git a/drivers/media/i2c/ccs/ccs-limits.h b/drivers/media/i2c/ccs/ccs-limits.h
index 1efa43c23a2e..551d3ee9d04e 100644
--- a/drivers/media/i2c/ccs/ccs-limits.h
+++ b/drivers/media/i2c/ccs/ccs-limits.h
@@ -1,5 +1,9 @@ 
 /* SPDX-License-Identifier: GPL-2.0-only OR BSD-3-Clause */
 /* Copyright (C) 2019--2020 Intel Corporation */
+/*
+ * Generated by Documentation/driver-api/media/drivers/ccs/mk-ccs-regs;
+ * do not modify.
+ */
 
 #ifndef __CCS_LIMITS_H__
 #define __CCS_LIMITS_H__
diff --git a/drivers/media/i2c/ccs/ccs-regs.h b/drivers/media/i2c/ccs/ccs-regs.h
index 4b3e5df2121f..6ce84c5ecf20 100644
--- a/drivers/media/i2c/ccs/ccs-regs.h
+++ b/drivers/media/i2c/ccs/ccs-regs.h
@@ -1,5 +1,9 @@ 
 /* SPDX-License-Identifier: GPL-2.0-only OR BSD-3-Clause */
 /* Copyright (C) 2019--2020 Intel Corporation */
+/*
+ * Generated by Documentation/driver-api/media/drivers/ccs/mk-ccs-regs;
+ * do not modify.
+ */
 
 #ifndef __CCS_REGS_H__
 #define __CCS_REGS_H__
@@ -202,7 +206,7 @@ 
 #define CCS_R_OP_PIX_CLK_DIV					(0x0308 | CCS_FL_16BIT)
 #define CCS_R_OP_SYS_CLK_DIV					(0x030a | CCS_FL_16BIT)
 #define CCS_R_OP_PRE_PLL_CLK_DIV				(0x030c | CCS_FL_16BIT)
-#define CCS_R_OP_PLL_MULTIPLIER					(0x031e | CCS_FL_16BIT)
+#define CCS_R_OP_PLL_MULTIPLIER					(0x030e | CCS_FL_16BIT)
 #define CCS_R_PLL_MODE						0x0310
 #define CCS_PLL_MODE_SHIFT					0U
 #define CCS_PLL_MODE_MASK					0x1