Re: [PATCH] clk: tegra: Do not return 0 on failure

2020-11-24 Thread Stephen Boyd
Quoting Thierry Reding (2020-11-20 08:18:39) > On Fri, Nov 20, 2020 at 05:16:56PM +0100, Thierry Reding wrote: > > On Wed, Oct 28, 2020 at 05:48:20PM -0700, Nicolin Chen wrote: > > > Return values from read_dt_param() will be either TRUE (1) or > > > FALSE (0), while dfll_fetch_pwm_params() returns

Re: [PATCH] clk: tegra: Do not return 0 on failure

2020-11-20 Thread Thierry Reding
On Fri, Nov 20, 2020 at 05:16:56PM +0100, Thierry Reding wrote: > On Wed, Oct 28, 2020 at 05:48:20PM -0700, Nicolin Chen wrote: > > Return values from read_dt_param() will be either TRUE (1) or > > FALSE (0), while dfll_fetch_pwm_params() returns 0 on success > > or an ERR code on failure. > > > >

Re: [PATCH] clk: tegra: Do not return 0 on failure

2020-11-20 Thread Thierry Reding
On Wed, Oct 28, 2020 at 05:48:20PM -0700, Nicolin Chen wrote: > Return values from read_dt_param() will be either TRUE (1) or > FALSE (0), while dfll_fetch_pwm_params() returns 0 on success > or an ERR code on failure. > > So this patch fixes the bug of returning 0 on failure. > > Fixes: 36541f04

[PATCH] clk: tegra: Do not return 0 on failure

2020-10-28 Thread Nicolin Chen
Return values from read_dt_param() will be either TRUE (1) or FALSE (0), while dfll_fetch_pwm_params() returns 0 on success or an ERR code on failure. So this patch fixes the bug of returning 0 on failure. Fixes: 36541f0499fe ("clk: tegra: dfll: support PWM regulator control") Cc: Signed-off-by: