This patch modifies pll35xx round_rate callback to return current
frequency instead of error codes to avoid problems caused by clock core
using error codes as frequencies.
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
if (!pms) {
pr_err("%s: no pms table passed", __func__);
- return -ENOTSUPP;
+ return samsung_pll35xx_recalc_rate(hw, *prate);
}
for (i = 0; pms[i].f_out != F_OUT_INVAL; i++)
if (drate >= pms[i].f_out)
return pms[i].f_out;
- return -EINVAL;
+ return samsung_pll35xx_recalc_rate(hw, *prate);
}
static int samsung_pll35xx_set_rate(struct clk_hw *hw, unsigned long drate,