Re: [PATCH v2 2/6] media: qcom: camss: clamp VFE clock rates to the highest level
From: Bryan O'Donoghue
Date: Mon Oct 26 2026 - 05:09:52 EST
On 24/10/2026 10:40, Atanas Filipov wrote:
The VFE fails to power on when the pixel rate exceeds the highest rateReviewed-by: Bryan O'Donoghue <bryan.odonoghue@xxxxxxxxxx>
listed for any of its clocks. The rate tables of the VFE clocks are
independent and need not have the same number of levels, so a clock
with a lower top rate than the VFE core clock, such as the SC7280
camnoc_axi clock, makes the VFE reject pixel rates the core clock
still supports.
Clamp each clock to its highest listed rate instead, and warn that the
pixel rate exceeds it when the clock lists more than one rate. Take the
clamp into account when another line powers on an already running VFE,
so that a clock running at its highest rate does not reject the
request.
Signed-off-by: Atanas Filipov <atanas.filipov@xxxxxxxxxxxxxxxx>