]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: rzg2l-cru: Skip ICnMC configuration when ICnSVC is used
authorTommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
Tue, 30 Dec 2025 17:09:15 +0000 (18:09 +0100)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 19 May 2026 07:01:49 +0000 (09:01 +0200)
commitcd4ce68875f406b0cf3f5a94c0fd22989689222f
treea946401f4458b2d708e042ec2189b54396e85697
parentd97d13c24d7893abcfb80d38630ce74daaa1434c
media: rzg2l-cru: Skip ICnMC configuration when ICnSVC is used

When the CRU is configured to use ICnSVC for virtual channel mapping,
as on the RZ/{G3E, V2H/P} SoC, the ICnMC register must not be
programmed.

Return early after setting up ICnSVC to avoid overriding the ICnMC
register, which is not applicable in this mode.

This prevents unintended register programming when ICnSVC is enabled.

Cc: stable@vger.kernel.org
Fixes: 3c5ca0a48bb0 ("media: rzg2l-cru: Drop function pointer to configure CSI")
Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
[Rework to not break image format programming]
Signed-off-by: Jacopo Mondi <jacopo.mondi+renesas@ideasonboard.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/renesas/rzg2l-cru/rzg2l-cru-regs.h
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c