| From 77e60a2c5d824ad2d493f53dc17137ae065753fe Mon Sep 17 00:00:00 2001 |
| From: Guoniu Zhou <guoniu.zhou@oss.nxp.com> |
| Date: Tue, 28 Jul 2026 14:58:56 +0800 |
| Subject: media: nxp: imx8-isi: Use BIT_ULL() for 64-bit stream masks |
| |
| From: Guoniu Zhou <guoniu.zhou@oss.nxp.com> |
| |
| commit 77e60a2c5d824ad2d493f53dc17137ae065753fe upstream. |
| |
| Use BIT_ULL() instead of BIT() for u64 stream masks to avoid incorrect |
| results on 32-bit architectures when stream IDs are 32 or greater. |
| |
| Fixes: cf21f328fcaf ("media: nxp: Add i.MX8 ISI driver") |
| Cc: stable@vger.kernel.org |
| Signed-off-by: Guoniu Zhou <guoniu.zhou@oss.nxp.com> |
| Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
| Reviewed-by: Frank Li <Frank.Li@nxp.com> |
| Reviewed-by: Loic Poulain <loic.poulain@oss.qualcomm.com> |
| Link: https://patch.msgid.link/20260728-isi-v5-1-1d22ab91602a@oss.nxp.com |
| Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
| Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org> |
| Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| --- |
| drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c | 4 ++-- |
| 1 file changed, 2 insertions(+), 2 deletions(-) |
| |
| --- a/drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c |
| +++ b/drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c |
| @@ -145,10 +145,10 @@ mxc_isi_crossbar_xlate_streams(struct mx |
| */ |
| for_each_active_route(&state->routing, route) { |
| if (route->source_pad != source_pad || |
| - !(source_streams & BIT(route->source_stream))) |
| + !(source_streams & BIT_ULL(route->source_stream))) |
| continue; |
| |
| - sink_streams |= BIT(route->sink_stream); |
| + sink_streams |= BIT_ULL(route->sink_stream); |
| sink_pad = route->sink_pad; |
| } |
| |