Re: [PATCH] media: ov5640: select the MIPI lane mode from the endpoint lane count
From: Sakari Ailus
Date: Tue Aug 11 2026 - 03:23:21 EST
Hi Jason,
On Tue, Aug 11, 2026 at 03:18:01PM +0800, 楊智成 wrote:
> Hi Sakari,
>
> Thanks for the review.
>
> > I guess there wouldn't be harm from backporting either.
>
> Agreed, switched to a plain stable Cc.
>
> > How about:
> >
> > ret = ov5640_write_reg(sensor, OV5640_REG_IO_MIPI_CTRL00,
> > on ? 0x5 | ep.bus.mipi_csi2.num_data_lanes << 5 :
> > 0x40);
>
> Nicer, thanks - applied, with the lane count in a local variable to
> stay within 80 columns.
There's no need for a local variable, the above remains within 80 columns.
--
Sakari Ailus