]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: scmi: Match scmi device by both name and protocol id
authorSudeep Holla <sudeep.holla@arm.com>
Wed, 6 Nov 2019 17:56:25 +0000 (17:56 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Tue, 24 Dec 2019 11:36:26 +0000 (11:36 +0000)
commit1a292d401b476e94a941cfe15badb2a9561e7053
tree15bd379ba05510efc6adb6568d10c6158d65ee34
parent9e9f9d356a15f1c210af93ec731e623cba702527
cpufreq: scmi: Match scmi device by both name and protocol id

The scmi bus now has support to match the driver with devices not only
based on their protocol id but also based on their device name if one is
available. This was added to cater the need to support multiple devices
and drivers for the same protocol.

Let us add the name "cpufreq" to scmi_device_id table in the driver so
that in matches only with device with the same name and protocol id
SCMI_PROTOCOL_PERF. This will help to add "devfreq" device/driver.

Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/cpufreq/scmi-cpufreq.c