Re: [PATCH 3/7] soc: qcom: geni-se: Add helper to set SE clock rate via OPP
From: Mukesh Savaliya
Date: Wed Aug 12 2026 - 05:03:46 EST
On 8/5/2026 1:27 AM, Praveen Talari wrote:
GENI protocol drivers need a common way to scale the SE source clock
through the OPP framework. However, the device that owns the OPP table
differs depending on how the SE resources are managed. For Linux clock
managed platforms, the OPP table is associated with the SE device,
whereas on firmware-managed platforms it is associated with the
performance power-domain device. This requires protocol drivers to be
aware of the underlying resource management model when requesting
frequency changes.
Introduce geni_se_set_rate(), a common helper that abstracts this
difference and applies the requested frequency through the appropriate
device. The helper automatically selects the performance-domain device
when power domains are attached and falls back to the SE device
otherwise.
Signed-off-by: Praveen Talari <praveen.talari@xxxxxxxxxxxxxxxx>
---
Acked-by: Mukesh Savaliya <mukesh.savaliya@xxxxxxxxxxxxxxxx>