Re: [PATCH 1/2] media: qcom: camss: Latch buffer addresses through a single helper

From: Bryan O'Donoghue

Date: Tue Nov 24 2026 - 12:34:23 EST


On 24/11/2026 16:47, Loic Poulain wrote:
The buffer address written by vfe_wm_update() has to be made visible to
the hardware, and the way to do that depends on the generation, the older
ones only expose a register update, some relies on a FIFO, while the newer
ones expose a dedicated address update that triggers the latch on its own.

Both sequences are open-coded at every call site today, with the address
update being additive and always followed by a register update. This
leaves no way for a generation to tell that an address update alone is
enough, or that no latching is needed at all.

Add vfe_buf_addr_latch(), which calls the generation's addr_update() when
it provides one and falls back to reg_update() otherwise.

The write master configuration programmed by vfe_wm_start() still needs
committing, so vfe_enable_output_v2() now latches each initial buffer
address inside the loop and issues a single register update afterwards.

Signed-off-by: Loic Poulain<loic.poulain@xxxxxxxxxxxxxxxx>
This is a bit too wordy for me.

Can you reduce this down to one paragraph. It seems like a straightforward functional decomposition to me.

---
bod