|
@@ -557,9 +557,8 @@ uint16_t phm_find_closest_vddci(struct pp_atomctrl_voltage_table *vddci_table, u
|
|
|
return vddci_table->entries[i].value;
|
|
|
}
|
|
|
|
|
|
- PP_ASSERT_WITH_CODE(false,
|
|
|
- "VDDCI is larger than max VDDCI in VDDCI Voltage Table!",
|
|
|
- return vddci_table->entries[i-1].value);
|
|
|
+ pr_debug("vddci is larger than max value in vddci_table\n");
|
|
|
+ return vddci_table->entries[i-1].value;
|
|
|
}
|
|
|
|
|
|
int phm_find_boot_level(void *table,
|
|
@@ -597,10 +596,10 @@ int phm_get_sclk_for_voltage_evv(struct pp_hwmgr *hwmgr,
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- PP_ASSERT_WITH_CODE(entryId < table_info->vdd_dep_on_sclk->count,
|
|
|
- "Can't find requested voltage id in vdd_dep_on_sclk table!",
|
|
|
- return -EINVAL;
|
|
|
- );
|
|
|
+ if (entryId >= table_info->vdd_dep_on_sclk->count) {
|
|
|
+ pr_debug("Can't find requested voltage id in vdd_dep_on_sclk table\n");
|
|
|
+ return -EINVAL;
|
|
|
+ }
|
|
|
|
|
|
*sclk = table_info->vdd_dep_on_sclk->entries[entryId].clk;
|
|
|
|