Skip to content

Conversation

@njhollinghurst
Copy link
Contributor

In imx477_start_streaming, when restarting before the auto-suspend timeout (5s) so that the common register config write was skipped, "ret" was used uninitialized, leading to intermittent failure.

(Since return values are fully checked after the common write, there is anyway no need to propagate ret to mode-specific write.)

In imx477_start_streaming, when restarting before the auto-suspend
timeout (5s) so that the common register config write was skipped,
"ret" was used uninitialized, leading to intermittent failure.

(Since return values are fully checked after the common write,
there is anyway no need to propagate ret to mode-specific write.)

Signed-off-by: Nick Hollinghurst <[email protected]>
@njhollinghurst njhollinghurst requested a review from 6by9 January 8, 2026 16:22
@pelwell pelwell merged commit 2848293 into raspberrypi:rpi-6.18.y Jan 8, 2026
12 checks passed
@pelwell
Copy link
Contributor

pelwell commented Jan 8, 2026

Should this not be back-ported to 6.12?

@njhollinghurst
Copy link
Contributor Author

Yes - I will do that. (Does it need a new PR, or any special note in the commit that it's a duplicate?)

@pelwell
Copy link
Contributor

pelwell commented Jan 8, 2026

I'll cherry-pick it. This is a patch that will be carried forward by us, probably squashed, at least until it gets merged upstream. The only time we appreciate special comments in the commit message is when it is a backport of an upstream commit, and therefore something with a finite shelf life.

popcornmix added a commit to raspberrypi/firmware that referenced this pull request Jan 9, 2026
kernel: media: imx335: Support 2x2 binning mode (and misc fixes)
See: raspberrypi/linux#7168

kernel: media: i2c: imx477: Fix uninitialized bug when restarting camera
See: raspberrypi/linux#7191
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Jan 9, 2026
kernel: media: imx335: Support 2x2 binning mode (and misc fixes)
See: raspberrypi/linux#7168

kernel: media: i2c: imx477: Fix uninitialized bug when restarting camera
See: raspberrypi/linux#7191
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants