• Sudeep Holla's avatar
    firmware: arm_scmi: Add support for multiple device per protocol · ee7a9c9f
    Sudeep Holla authored
    Currently only one scmi device is created for each protocol enumerated.
    However, there is requirement to make use of some procotols by multiple
    kernel subsystems/frameworks. One such example is SCMI PERFORMANCE
    protocol which can be used by both cpufreq and devfreq drivers.
    Similarly, SENSOR protocol may be used by hwmon and iio subsystems,
    and POWER protocol may be used by genpd and regulator drivers.
    
    In order to achieve that, let us extend the scmi bus to match based
    not only protocol id but also the scmi device name if one is available.
    Reviewed-by: default avatarCristian Marussi <cristian.marussi@arm.com>
    Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
    ee7a9c9f
driver.c 26.1 KB