From: David Carlier <devnexen@gmail.com>
To: linux-media@vger.kernel.org
Cc: Daniel Scally <dan.scally@ideasonboard.com>,
Jacopo Mondi <jacopo.mondi@ideasonboard.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
linux-kernel@vger.kernel.org
Subject: [PATCH 1/2] media: mali-c55: Fix the resizer source code for RGB bypass
Date: Sat, 5 Dec 2026 21:27:55 +0000 [thread overview]
Message-ID: <20261205212756.16953-1-devnexen@gmail.com> (raw)
On the bypass route, the resizer derives its source pad code from the
shifted_code of the ISP format table. That field is zero for
MEDIA_BUS_FMT_RGB202020_1X60, so the capture device fails link
validation with -EPIPE and the documented RGB bypass cannot stream.
RGB data is not downshifted, so report the same code on the source pad.
The issue was found by code inspection with an LLM, build tested only.
Fixes: d5f281f3dd29 ("media: mali-c55: Add Mali-C55 ISP driver")
Cc: stable@vger.kernel.org
Signed-off-by: David Carlier <devnexen@gmail.com>
---
drivers/media/platform/arm/mali-c55/mali-c55-isp.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/media/platform/arm/mali-c55/mali-c55-isp.c b/drivers/media/platform/arm/mali-c55/mali-c55-isp.c
index 8e5175581cfc..da79d9c85f29 100644
--- a/drivers/media/platform/arm/mali-c55/mali-c55-isp.c
+++ b/drivers/media/platform/arm/mali-c55/mali-c55-isp.c
@@ -51,7 +51,8 @@ static const struct mali_c55_isp_format_info mali_c55_isp_fmts[] = {
},
{
.code = MEDIA_BUS_FMT_RGB202020_1X60,
- .shifted_code = 0, /* Not relevant for this format */
+ /* RGB data is not downshifted on the bypass path */
+ .shifted_code = MEDIA_BUS_FMT_RGB202020_1X60,
.order = 0, /* Not relevant for this format */
.bypass = true,
}
--
2.55.0
next reply other threads:[~2026-12-05 21:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 21:27 David Carlier [this message]
2026-12-05 21:27 ` [PATCH 2/2] media: mali-c55: Never match an unset media bus code David Carlier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261205212756.16953-1-devnexen@gmail.com \
--to=devnexen@gmail.com \
--cc=dan.scally@ideasonboard.com \
--cc=jacopo.mondi@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.