Re: [PATCH v2 1/5] ASoC: codecs: va-macro: Rework version checking
From: Konrad Dybcio
Date: Thu Oct 09 2025 - 11:48:28 EST
On 10/9/25 5:25 PM, Alexey Klimov wrote:
> On Thu Oct 9, 2025 at 3:36 PM BST, Prasad Kumpatla wrote:
>> From: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
>>
>> Open-code some of the registers to make the checks anywhere near human-
>> readable. Error out if the version is unsupported or if the VA macro
>> isn't supposed to be present within this LPASS instance (since we can
>> check for that now).
>
[...]
>> + if (version == LPASS_CODEC_VERSION_UNKNOWN) {
>> + dev_err(va->dev, "VA Macro v%u.%u.%u is not supported\n",
>> + maj, min, step);
>> + return -EOPNOTSUPP;
>> + }
>
> Why?
>
> As far as I understand the behaviour before this change is to continue
> even with unsupported LPASS va macro version. IIRC when I enabled sound
> on Kaanapali QRD device it worked even with unsupported version, it just
> needed a fix to calm down the warning.
>
> Why this needed to be changed to error out as unsupported now? Will there
> be a permanent damage to hw/fw if we continue?
Unsupported hw is unsupported, simple as that
We can not predict what a new hw version will bring and it's
better to have the human decide
Konrad