Skip to contentSkip to conversation

media: staging: rkisp1: bugs fixes and vars renames

PATCH Superseded Dafna Hirschfeld 2 participants 12 messages Jun 9, 2020 – Jun 10, 2020

Subsystems (3)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v2 cover media: staging: rkisp1: bugs fixes and vars renames

The first two patches in this patchset are two bug fixes related to the enumeration and settings of the sink format of the resizer entity.
The two other patches are renaming of macros and the variables.

changes from v1:
- added "Fixes: 56e3b29f9f6b "media: staging: rkisp1: add streaming paths" to the commit log of the first two patches.
- added two patches. One patch rename the macros "RKISP1_DIR_*" to "RKISP1_ISP_SD_*", another that rename the field 'direction' in 'struct rkisp1_isp_mbus_info' to 'isp_pads_flags'

Dafna Hirschfeld (4):
media: staging: rkisp1: rsz: supported formats are the isp's src
formats, not sink formats
media: staging: rkisp1: rsz: set default format if the given format is
not RKISP1_DIR_SRC
media: staging: rkisp1: rename macros 'RKISP1_DIR_*' to

    'RKISP1_ISP_SD_*'

media: staging: rkisp1: rename the field 'direction' in
'rkisp1_isp_mbus_info' to 'isp_pads_flags'

 drivers/staging/media/rkisp1/rkisp1-common.h  |  6 ++-
 drivers/staging/media/rkisp1/rkisp1-isp.c     | 50 +++++++++----------
 drivers/staging/media/rkisp1/rkisp1-resizer.c |  6 +--
 3 files changed, 31 insertions(+), 31 deletions(-)
Signature · 1 line
2.17.1
#1 lore raw

PATCH v2 1/4 media: staging: rkisp1: rsz: supported formats are the isp's src formats, not sink formats

The rkisp1_resizer's enum callback 'rkisp1_rsz_enum_mbus_code' calls the enum callback of the 'rkisp1_isp' on it's video sink pad. This is a bug, the resizer should support the same formats supported by the 'rkisp1_isp' on the source pad (not the sink pad).

Fixes 56e3b29f9f6b "media: staging: rkisp1: add streaming paths"
---
 drivers/staging/media/rkisp1/rkisp1-resizer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/media/rkisp1/rkisp1-resizer.c +2 -2
index d049374413dc..d64c064bdb1d 100644
@@ -437,8 +437,8 @@ static int rkisp1_rsz_enum_mbus_code(struct v4l2_subdev *sd,
 	u32 pad = code->pad;
 	int ret;
 
-	/* supported mbus codes are the same in isp sink pad */
-	code->pad = RKISP1_ISP_PAD_SINK_VIDEO;
+	/* supported mbus codes are the same in isp video src pad */
+	code->pad = RKISP1_ISP_PAD_SOURCE_VIDEO;
 	ret = v4l2_subdev_call(&rsz->rkisp1->isp.sd, pad, enum_mbus_code,
 			       &dummy_cfg, code);
 
Signature · 1 line
2.17.1
#2 lore raw

Re: [PATCH v2 1/4] media: staging: rkisp1: rsz: supported formats are the isp's src formats, not sink formats

Hi Dafna,

Quoted 5 lines · Dafna Hirschfeld

The rkisp1_resizer's enum callback 'rkisp1_rsz_enum_mbus_code' calls the enum callback of the 'rkisp1_isp' on it's video sink pad. This is a bug, the resizer should support the same formats supported by the 'rkisp1_isp' on the source pad (not the sink pad).

Quoted 8 lines
Fixes 56e3b29f9f6b "media: staging: rkisp1: add streaming paths"
---
 drivers/staging/media/rkisp1/rkisp1-resizer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Thank you for the patch. Please see my comments inline.

Quoted 5 lines
drivers/staging/media/rkisp1/rkisp1-resizer.c +0 -0
index d049374413dc..d64c064bdb1d 100644

drivers/staging/media/rkisp1/rkisp1-resizer.c static int rkisp1_rsz_enum_mbus_code(struct v4l2_subdev *sd, · line 443

Quoted 9 lines
drivers/staging/media/rkisp1/rkisp1-resizer.c +2 -2
@@ -437,8 +437,8 @@ static int rkisp1_rsz_enum_mbus_code(struct v4l2_subdev *sd,
 	u32 pad = code->pad;
 	int ret;
 
-	/* supported mbus codes are the same in isp sink pad */
-	code->pad = RKISP1_ISP_PAD_SINK_VIDEO;
+	/* supported mbus codes are the same in isp video src pad */
+	code->pad = RKISP1_ISP_PAD_SOURCE_VIDEO;
 	ret = v4l2_subdev_call(&rsz->rkisp1->isp.sd, pad, enum_mbus_code,
 			       &dummy_cfg, code);

Actually, is this really the true? AFAIR the ISP itself can only output either Bayer or YUV 4:2:2. The resizer can take YUV 4:2:2 at its input and output YUV 4:4:4, 4:2:2 and 4:2:0. Bayer capture is handled with resizer bypass mode. We haven't tested that, but if implemented, it should probably be done by exposing a link between the ISP entity and a video node directly, without the resizer involved.

WDYT?

Best regards,
Tomasz

#3 lore raw

Re: [PATCH v2 1/4] media: staging: rkisp1: rsz: supported formats are the isp's src formats, not sink formats

Quoted 41 lines · Tomasz Figa

Hi Dafna,

Quoted 5 lines · Dafna Hirschfeld

The rkisp1_resizer's enum callback 'rkisp1_rsz_enum_mbus_code' calls the enum callback of the 'rkisp1_isp' on it's video sink pad. This is a bug, the resizer should support the same formats supported by the 'rkisp1_isp' on the source pad (not the sink pad).

Quoted 8 lines
Fixes 56e3b29f9f6b "media: staging: rkisp1: add streaming paths"
---
  drivers/staging/media/rkisp1/rkisp1-resizer.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

Thank you for the patch. Please see my comments inline.

Quoted 5 lines
drivers/staging/media/rkisp1/rkisp1-resizer.c +0 -0
index d049374413dc..d64c064bdb1d 100644

drivers/staging/media/rkisp1/rkisp1-resizer.c static int rkisp1_rsz_enum_mbus_code(struct v4l2_subdev *sd, · line 443

Quoted 9 lines
drivers/staging/media/rkisp1/rkisp1-resizer.c +2 -2
@@ -437,8 +437,8 @@ static int rkisp1_rsz_enum_mbus_code(struct v4l2_subdev *sd,
  	u32 pad = code->pad;
  	int ret;
 
-	/* supported mbus codes are the same in isp sink pad */
-	code->pad = RKISP1_ISP_PAD_SINK_VIDEO;
+	/* supported mbus codes are the same in isp video src pad */
+	code->pad = RKISP1_ISP_PAD_SOURCE_VIDEO;
  	ret = v4l2_subdev_call(&rsz->rkisp1->isp.sd, pad, enum_mbus_code,
  			       &dummy_cfg, code);

Actually, is this really the true? AFAIR the ISP itself can only output either Bayer or YUV 4:2:2. The resizer can take YUV 4:2:2 at its input and output YUV 4:4:4, 4:2:2 and 4:2:0. Bayer capture is handled with resizer bypass mode. We haven't tested that, but if implemented, it should probably be done by exposing a link between the ISP entity and a video node directly, without the resizer involved.

Quoted 1 line

WDYT?

We can also implement it that way. Only the mainpath needs
a direct link from the isp since selfpath does not support bayer formats. It makes it easier on userspace for bayer formats since it does not have to configure the resizer.
On the other hand if the format is YUV it has the option
to either use the the resizer or not.

Thanks,
Dafna

Quoted 4 lines

Best regards,
Tomasz

#4 lore raw

Re: [PATCH v2 1/4] media: staging: rkisp1: rsz: supported formats are the isp's src formats, not sink formats

Quoted 52 lines · Dafna Hirschfeld
Quoted 40 lines · Tomasz Figa

Hi Dafna,

Quoted 5 lines · Dafna Hirschfeld

The rkisp1_resizer's enum callback 'rkisp1_rsz_enum_mbus_code' calls the enum callback of the 'rkisp1_isp' on it's video sink pad. This is a bug, the resizer should support the same formats supported by the 'rkisp1_isp' on the source pad (not the sink pad).

Quoted 8 lines
Fixes 56e3b29f9f6b "media: staging: rkisp1: add streaming paths"

---
  drivers/staging/media/rkisp1/rkisp1-resizer.c | 4 ++--

  1 file changed, 2 insertions(+), 2 deletions(-)

Thank you for the patch. Please see my comments inline.

drivers/staging/media/rkisp1/rkisp1-resizer.c static int rkisp1_rsz_enum_mbus_code(struct v4l2_subdev *sd, · line 442

Quoted 13 lines
drivers/staging/media/rkisp1/rkisp1-resizer.c +2 -2
index d049374413dc..d64c064bdb1d 100644
@@ -437,8 +437,8 @@ static int rkisp1_rsz_enum_mbus_code(struct v4l2_subdev *sd,
       u32 pad = code->pad;
       int ret;
-    /* supported mbus codes are the same in isp sink pad */
-    code->pad = RKISP1_ISP_PAD_SINK_VIDEO;
+    /* supported mbus codes are the same in isp video src pad */
+    code->pad = RKISP1_ISP_PAD_SOURCE_VIDEO;
       ret = v4l2_subdev_call(&rsz->rkisp1->isp.sd, pad, enum_mbus_code,
                      &dummy_cfg, code);

Actually, is this really the true? AFAIR the ISP itself can only output either Bayer or YUV 4:2:2. The resizer can take YUV 4:2:2 at its input and output YUV 4:4:4, 4:2:2 and 4:2:0. Bayer capture is handled with resizer bypass mode. We haven't tested that, but if implemented, it should probably be done by exposing a link between the ISP entity and a video node directly, without the resizer involved.

Quoted 1 line

WDYT?

We can also implement it that way. Only the mainpath needs
a direct link from the isp since selfpath does not support bayer formats. It makes it easier on userspace for bayer formats since it does not have to configure the resizer.
On the other hand if the format is YUV it has the option
to either use the the resizer or not.

Quoted 2 lines

Thanks,
Dafna

Anyway, this is a two line bug fix, so I think this patch can first be accepted and then if we choose to change the topology this can be done in a separate patchset.

Thanks,
Dafna

Quoted 5 lines
Quoted 5 lines

Best regards,
Tomasz

#5 lore raw

Re: [PATCH v2 1/4] media: staging: rkisp1: rsz: supported formats are the isp's src formats, not sink formats

Quoted 56 lines · Dafna Hirschfeld
Quoted 52 lines · Dafna Hirschfeld
Quoted 40 lines · Tomasz Figa

Hi Dafna,

Quoted 5 lines · Dafna Hirschfeld

The rkisp1_resizer's enum callback 'rkisp1_rsz_enum_mbus_code' calls the enum callback of the 'rkisp1_isp' on it's video sink pad. This is a bug, the resizer should support the same formats supported by the 'rkisp1_isp' on the source pad (not the sink pad).

Quoted 8 lines
Fixes 56e3b29f9f6b "media: staging: rkisp1: add streaming paths"
---
  drivers/staging/media/rkisp1/rkisp1-resizer.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

Thank you for the patch. Please see my comments inline.

drivers/staging/media/rkisp1/rkisp1-resizer.c static int rkisp1_rsz_enum_mbus_code(struct v4l2_subdev *sd, · line 442

Quoted 13 lines
drivers/staging/media/rkisp1/rkisp1-resizer.c +2 -2
index d049374413dc..d64c064bdb1d 100644
@@ -437,8 +437,8 @@ static int rkisp1_rsz_enum_mbus_code(struct v4l2_subdev *sd,
      u32 pad = code->pad;
      int ret;
-    /* supported mbus codes are the same in isp sink pad */
-    code->pad = RKISP1_ISP_PAD_SINK_VIDEO;
+    /* supported mbus codes are the same in isp video src pad */
+    code->pad = RKISP1_ISP_PAD_SOURCE_VIDEO;
      ret = v4l2_subdev_call(&rsz->rkisp1->isp.sd, pad, enum_mbus_code,
                     &dummy_cfg, code);

Actually, is this really the true? AFAIR the ISP itself can only output either Bayer or YUV 4:2:2. The resizer can take YUV 4:2:2 at its input and output YUV 4:4:4, 4:2:2 and 4:2:0. Bayer capture is handled with resizer bypass mode. We haven't tested that, but if implemented, it should probably be done by exposing a link between the ISP entity and a video node directly, without the resizer involved.

Quoted 1 line

WDYT?

We can also implement it that way. Only the mainpath needs
a direct link from the isp since selfpath does not support bayer formats. It makes it easier on userspace for bayer formats since it does not have to configure the resizer.
On the other hand if the format is YUV it has the option
to either use the the resizer or not.

Quoted 6 lines
Quoted 2 lines

Thanks,
Dafna

Anyway, this is a two line bug fix, so I think this patch can first be accepted and then if we choose to change the topology this can be done in a separate patchset.

Makes sense. Feel free to add my Reviewed-by.

Best regards,
Tomasz

#6 lore raw

PATCH v2 2/4 media: staging: rkisp1: rsz: set default format if the given format is not RKISP1_DIR_SRC

In reply to Dafna Hirschfeld

When setting the sink format of the 'rkisp1_resizer' the format should be supported by 'rkisp1_isp' on the video source pad. This patch checks this condition and set the format to default if the condition is false.

Fixes 56e3b29f9f6b "media: staging: rkisp1: add streaming paths"
---
 drivers/staging/media/rkisp1/rkisp1-common.h  | 4 ++++
 drivers/staging/media/rkisp1/rkisp1-isp.c     | 4 ----
 drivers/staging/media/rkisp1/rkisp1-resizer.c | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)
drivers/staging/media/rkisp1/rkisp1-common.h +4 -0
index 0c4fe503adc9..39d8e46d8d8a 100644
@@ -22,6 +22,10 @@
 #include "rkisp1-regs.h"
 #include "uapi/rkisp1-config.h"
 
+#define RKISP1_DIR_SRC BIT(0)
+#define RKISP1_DIR_SINK BIT(1)
+#define RKISP1_DIR_SINK_SRC (RKISP1_DIR_SINK | RKISP1_DIR_SRC)
+
 #define RKISP1_ISP_MAX_WIDTH		4032
 #define RKISP1_ISP_MAX_HEIGHT		3024
 #define RKISP1_ISP_MIN_WIDTH		32
drivers/staging/media/rkisp1/rkisp1-isp.c +0 -4
index dc2b59a0160a..e66e87d6ea8b 100644
@@ -23,10 +23,6 @@
 
 #define RKISP1_ISP_DEV_NAME	RKISP1_DRIVER_NAME "_isp"
 
-#define RKISP1_DIR_SRC BIT(0)
-#define RKISP1_DIR_SINK BIT(1)
-#define RKISP1_DIR_SINK_SRC (RKISP1_DIR_SINK | RKISP1_DIR_SRC)
-
 /*
  * NOTE: MIPI controller and input MUX are also configured in this file.
  * This is because ISP Subdev describes not only ISP submodule (input size,
drivers/staging/media/rkisp1/rkisp1-resizer.c +1 -1
index d64c064bdb1d..fa28f4bd65c0 100644
@@ -542,7 +542,7 @@ static void rkisp1_rsz_set_sink_fmt(struct rkisp1_resizer *rsz,
 					    which);
 	sink_fmt->code = format->code;
 	mbus_info = rkisp1_isp_mbus_info_get(sink_fmt->code);
-	if (!mbus_info) {
+	if (!mbus_info || !(mbus_info->direction & RKISP1_DIR_SRC)) {
 		sink_fmt->code = RKISP1_DEF_FMT;
 		mbus_info = rkisp1_isp_mbus_info_get(sink_fmt->code);
 	}
Signature · 1 line
2.17.1
Reviewed-by on v2 2/4
#7 lore raw

Re: [PATCH v2 2/4] media: staging: rkisp1: rsz: set default format if the given format is not RKISP1_DIR_SRC

Hi Dafna,

Quoted 5 lines · Dafna Hirschfeld

When setting the sink format of the 'rkisp1_resizer' the format should be supported by 'rkisp1_isp' on the video source pad. This patch checks this condition and set the format to default if the condition is false.

Quoted 9 lines
Fixes 56e3b29f9f6b "media: staging: rkisp1: add streaming paths"
---
 drivers/staging/media/rkisp1/rkisp1-common.h  | 4 ++++
 drivers/staging/media/rkisp1/rkisp1-isp.c     | 4 ----
 drivers/staging/media/rkisp1/rkisp1-resizer.c | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

Best regards,
Tomasz

#8 lore raw

PATCH v2 3/4 media: staging: rkisp1: rename macros 'RKISP1_DIR_*' to 'RKISP1_ISP_SD_*'

In reply to Dafna Hirschfeld

The macros 'RKISP1_DIR_*' are flags that indicate on which pads of the isp subdevice the media bus code is supported. so the prefix RKISP1_ISP_SD_ is better.

---
 drivers/staging/media/rkisp1/rkisp1-common.h  |  6 +--
 drivers/staging/media/rkisp1/rkisp1-isp.c     | 42 +++++++++----------
 drivers/staging/media/rkisp1/rkisp1-resizer.c |  2 +-
 3 files changed, 25 insertions(+), 25 deletions(-)
drivers/staging/media/rkisp1/rkisp1-common.h +3 -3
index 39d8e46d8d8a..a6cd9fc13b3d 100644
@@ -22,9 +22,9 @@
 #include "rkisp1-regs.h"
 #include "uapi/rkisp1-config.h"
 
-#define RKISP1_DIR_SRC BIT(0)
-#define RKISP1_DIR_SINK BIT(1)
-#define RKISP1_DIR_SINK_SRC (RKISP1_DIR_SINK | RKISP1_DIR_SRC)
+#define RKISP1_ISP_SD_SRC BIT(0)
+#define RKISP1_ISP_SD_SINK BIT(1)
+#define RKISP1_ISP_SD_SINK_SRC (RKISP1_ISP_SD_SINK | RKISP1_ISP_SD_SRC)
 
 #define RKISP1_ISP_MAX_WIDTH		4032
 #define RKISP1_ISP_MAX_HEIGHT		3024
drivers/staging/media/rkisp1/rkisp1-isp.c +21 -21

163 lines not on this page · raw message

drivers/staging/media/rkisp1/rkisp1-resizer.c +1 -1
index fa28f4bd65c0..137298b77341 100644
@@ -542,7 +542,7 @@ static void rkisp1_rsz_set_sink_fmt(struct rkisp1_resizer *rsz,
 					    which);
 	sink_fmt->code = format->code;
 	mbus_info = rkisp1_isp_mbus_info_get(sink_fmt->code);
-	if (!mbus_info || !(mbus_info->direction & RKISP1_DIR_SRC)) {
+	if (!mbus_info || !(mbus_info->direction & RKISP1_ISP_SD_SRC)) {
 		sink_fmt->code = RKISP1_DEF_FMT;
 		mbus_info = rkisp1_isp_mbus_info_get(sink_fmt->code);
 	}
Signature · 1 line
2.17.1
#9 lore raw

Re: [PATCH v2 3/4] media: staging: rkisp1: rename macros 'RKISP1_DIR_*' to 'RKISP1_ISP_SD_*'

Hi Dafna,

Quoted 11 lines · Dafna Hirschfeld

The macros 'RKISP1_DIR_*' are flags that indicate on which pads of the isp subdevice the media bus code is supported. so the prefix RKISP1_ISP_SD_ is better.

---
 drivers/staging/media/rkisp1/rkisp1-common.h  |  6 +--
 drivers/staging/media/rkisp1/rkisp1-isp.c     | 42 +++++++++----------
 drivers/staging/media/rkisp1/rkisp1-resizer.c |  2 +-
 3 files changed, 25 insertions(+), 25 deletions(-)

Thank you for the patch. Please see my comments inline.

Quoted 5 lines
drivers/staging/media/rkisp1/rkisp1-common.h +0 -0
index 39d8e46d8d8a..a6cd9fc13b3d 100644

drivers/staging/media/rkisp1/rkisp1-common.h line 27

Quoted 9 lines
drivers/staging/media/rkisp1/rkisp1-common.h +3 -3
@@ -22,9 +22,9 @@
 #include "rkisp1-regs.h"
 #include "uapi/rkisp1-config.h"
 
-#define RKISP1_DIR_SRC BIT(0)
-#define RKISP1_DIR_SINK BIT(1)
-#define RKISP1_DIR_SINK_SRC (RKISP1_DIR_SINK | RKISP1_DIR_SRC)
+#define RKISP1_ISP_SD_SRC BIT(0)
+#define RKISP1_ISP_SD_SINK BIT(1)
+#define RKISP1_ISP_SD_SINK_SRC (RKISP1_ISP_SD_SINK | RKISP1_ISP_SD_SRC)

nit: It might be just me, but this feels to me like obfuscating the code, because it hides the fact that it's a mask. If changing this already, could we remove this one and just OR the two bits explicitly?

Best regards,
Tomasz

#10 lore raw

PATCH v2 4/4 media: staging: rkisp1: rename the field 'direction' in 'rkisp1_isp_mbus_info' to 'isp_pads_flags'

In reply to Dafna Hirschfeld

The field 'direction' in 'struct rkisp1_isp_mbus_info' holds the flags of the supported pads of the mbus code. Therefore the name 'isp_pads_flags' is better.
The patch also rename a local variable 'dir' that holds such flag to 'pad'.

---
 drivers/staging/media/rkisp1/rkisp1-common.h  |  2 +-
 drivers/staging/media/rkisp1/rkisp1-isp.c     | 46 +++++++++----------
 drivers/staging/media/rkisp1/rkisp1-resizer.c |  2 +-
 3 files changed, 25 insertions(+), 25 deletions(-)
drivers/staging/media/rkisp1/rkisp1-common.h +1 -1
index a6cd9fc13b3d..1dda6d53adea 100644
@@ -283,7 +283,7 @@ struct rkisp1_isp_mbus_info {
 	u32 yuv_seq;
 	u8 bus_width;
 	enum rkisp1_fmt_raw_pat_type bayer_pat;
-	unsigned int direction;
+	unsigned int isp_pads_flags;
 };
 
 static inline void
drivers/staging/media/rkisp1/rkisp1-isp.c +23 -23

176 lines not on this page · raw message

drivers/staging/media/rkisp1/rkisp1-resizer.c +1 -1
index 137298b77341..bb06887648a1 100644
@@ -542,7 +542,7 @@ static void rkisp1_rsz_set_sink_fmt(struct rkisp1_resizer *rsz,
 					    which);
 	sink_fmt->code = format->code;
 	mbus_info = rkisp1_isp_mbus_info_get(sink_fmt->code);
-	if (!mbus_info || !(mbus_info->direction & RKISP1_ISP_SD_SRC)) {
+	if (!mbus_info || !(mbus_info->isp_pads_flags & RKISP1_ISP_SD_SRC)) {
 		sink_fmt->code = RKISP1_DEF_FMT;
 		mbus_info = rkisp1_isp_mbus_info_get(sink_fmt->code);
 	}
Signature · 1 line
2.17.1
#11 lore raw

Re: [PATCH v2 4/4] media: staging: rkisp1: rename the field 'direction' in 'rkisp1_isp_mbus_info' to 'isp_pads_flags'

Hi Dafna,

Quoted 6 lines · Dafna Hirschfeld

The field 'direction' in 'struct rkisp1_isp_mbus_info' holds the flags of the supported pads of the mbus code. Therefore the name 'isp_pads_flags' is better.
The patch also rename a local variable 'dir' that holds such flag to 'pad'.

Quoted 7 lines
---
 drivers/staging/media/rkisp1/rkisp1-common.h  |  2 +-
 drivers/staging/media/rkisp1/rkisp1-isp.c     | 46 +++++++++----------
 drivers/staging/media/rkisp1/rkisp1-resizer.c |  2 +-
 3 files changed, 25 insertions(+), 25 deletions(-)

Thank you for the patch. Please see my comments inline.

drivers/staging/media/rkisp1/rkisp1-common.h struct rkisp1_isp_mbus_info {

Quoted 5 lines
drivers/staging/media/rkisp1/rkisp1-common.h +0 -0
index a6cd9fc13b3d..1dda6d53adea 100644
@@ -283,7 +283,7 @@ struct rkisp1_isp_mbus_info {

FYI, there is some missing documentation of the fields above. If changing this field, perhaps its documentation could be added as well?

drivers/staging/media/rkisp1/rkisp1-common.h struct rkisp1_isp_mbus_info { · line 286

Quoted 5 lines
drivers/staging/media/rkisp1/rkisp1-common.h +1 -1
 	u32 yuv_seq;
 	u8 bus_width;
 	enum rkisp1_fmt_raw_pat_type bayer_pat;
-	unsigned int direction;
+	unsigned int isp_pads_flags;

nit: Wouldn't "isp_pads_mask" represent the usage more precisely?

Best regards,
Tomasz