Re: [PATCH v2] platform/x86: int3472: Use actual clock frequency for DSM method

From: Sakari Ailus

Date: Mon Dec 08 2025 - 06:28:07 EST


Hi Hao,

On Mon, Dec 08, 2025 at 11:51:14AM +0800, Hao Yao wrote:
> The third argument (args[2]) to the _DSM method was hardcoded to 1,
> which corresponds to 19.2MHz. However, this argument should reflect
> the actual clock frequency from the sensor's ACPI data.
>
> According to the DSM specification:
> - 1 = 19.2MHz
> - 3 = 24MHz
>
> Read the frequency from clk->frequency and set the DSM argument
> accordingly, with 19.2MHz as the default for unsupported frequencies.
>
> This ensures the sensor receives the correct clock frequency as
> specified in its ACPI configuration.
>
> Signed-off-by: Hao Yao <hao.yao@xxxxxxxxx>

Thanks for the update.

Acked-by: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx>

--
Kind regards,

Sakari Ailus