Allow min == max for the soft frequency limit when
AMD_DPM_FORCED_LEVEL_MANUAL is used on SMU v13.0.6
Signed-off-by: Asad Kamal <asad.kamal@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
return -EINVAL;
if (smu_dpm->dpm_level == AMD_DPM_FORCED_LEVEL_MANUAL) {
- if (min >= max) {
+ if (min > max) {
dev_err(smu->adev->dev,
- "Minimum clk should be less than the maximum allowed clock\n");
+ "Minimum clk should be less/equal to the maximum allowed clock\n");
return -EINVAL;
}