Re: [PATCH 3/5] i2c: qcom-cci: Detect capabilities from CCI_HW_VERSION at runtime
From: Konrad Dybcio
Date: Tue Oct 13 2026 - 05:02:48 EST
On 10/13/26 10:21 AM, Loic Poulain wrote:
> On Mon, Oct 12, 2026 at 3:58 PM Konrad Dybcio
> <konrad.dybcio@xxxxxxxxxxxxxxxx> wrote:
>>
>> On 10/4/26 9:09 PM, Loic Poulain wrote:
>>> In theory, every SoC integrating a CCI revision that differs from
>>> an existing one should introduce a dedicated compatible string.
[...]
>> This looks a little sloppy - can we infer the number of masters at
>> runtime somehow?
>
> Yes, we can either add a small msm8916-specific condition in the probe
> path, or derive the number of masters dynamically from the number of
> master subnodes present in the Device Tree.
The latter sounds good
Konrad