Re: [PATCH v3 0/4] media: i2c: ov5693: Fix mode changes, flips and autosuspend
From: Marco Ziliani
Date: Thu Dec 03 2026 - 12:48:12 EST
Hi Tony,
On Tue, Dec 01, 2026 at 05:17:49PM +0000, Tony Garcia wrote:
> VIDIOC_SUBDEV_S_FMT with which=TRY oopses with a divide error in
> ov5693_set_fmt(), e.g. "v4l2-ctl -d /dev/v4l-subdevN --try-subdev-fmt
> pad=0,width=1296,height=972".
Thanks a lot for testing v3 so thoroughly, and for this one. Your
analysis is right: with no init_state the try crop is 0x0. v4 will add
an init_state that sets the default crop and format, as a separate
patch at the start of the series with your Reported-by, so it can also
go to stable on its own. With it, --try-subdev-fmt returns the clamped
format here on the Surface Pro 5 instead of oopsing.
v4 will also fix one edge case in patch 3: with a full-width crop that
already reaches the right edge of the pixel array and a single flip,
the window couldn't be widened and the stream broke. It now moves the
crop start two columns to the left instead.
I'll send v4 once Sakari and Dan have had a chance to look at v3.
Thanks,
Marco