OPP: Add support to find OPP for a set of keys
authorKrishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>
Wed, 20 Aug 2025 08:28:47 +0000 (13:58 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 26 Aug 2025 05:10:58 +0000 (10:40 +0530)
commit05db35963eef7a55f1782190185cb8ddb9d923b7
treee58cbcde027f7a30ce600d4a7c33ea7d32464b18
parent22763c35c635466545c0cea825da01c72becbcea
OPP: Add support to find OPP for a set of keys

Some clients, such as PCIe, may operate at the same clock frequency
across different data rates by varying link width. In such cases,
frequency alone is not sufficient to uniquely identify an OPP.

To support these scenarios, introduce a new API
dev_pm_opp_find_key_exact() that allows OPP lookup with different
set of keys like freq, level & bandwidth.

Signed-off-by: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>
[ Viresh: Minor cleanups ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c
include/linux/pm_opp.h