Re: [PATCH v7 10/23] media: qcom: camss: csid: Add support for CSID 980
From: Hangxiang Ma
Date: Mon Nov 16 2026 - 01:39:56 EST
On 11/15/2026 8:16 PM, Bryan O'Donoghue wrote:
> On 15/11/2026 12:14, Bryan O'Donoghue wrote:
>> On 14/11/2026 11:29, Wenmeng Liu wrote:
>>> + for (k = 0; k < CAMSS_INIT_BUF_COUNT; k++) {
>>> + __csid_addr_update(csid, i);
>>> + __csid_reg_update(csid, i);
>>> + }
>>
>> Why does this run twice for the same index ?
>>
>> ---
>> bod
>
> "run CAMSS_INIT_BUF_COUNT" for the same index ?
>
> You don't increment a buffer index. How can this be logical ?
>
> ---
> bod
Hi Bryan, CAMSS_INIT_BUF_COUNT is used in vfe_enable_output_v2() to
queue buffer addresses into the AUP FIFO.
Based on the hardware documentation and our local testing, each AUP FIFO
write needs a corresponding address update to take effect. Therefore, we
issue __csid_addr_update() twice for the same port.
You're right about __csid_reg_update(). It only needs to be called once
after the loop. Will fix that in the next revision.
---
Best regards,
Hangxiang