Quoting Jerome Brunet (2018-12-04 11:55:10)
> On Tue, 2018-12-04 at 10:43 -0800, Stephen Boyd wrote:
> > Quoting Jerome Brunet (2018-12-04 08:34:03)
> > > clk_mux_val_to_index() is meant to be used by .get_parent(), which
> > > returns a u8, so when the value provided does not map to any valid
Quoting Jerome Brunet (2018-12-04 11:55:10)
> On Tue, 2018-12-04 at 10:43 -0800, Stephen Boyd wrote:
> > Quoting Jerome Brunet (2018-12-04 08:34:03)
> > > clk_mux_val_to_index() is meant to be used by .get_parent(), which
> > > returns a u8, so when the value provided does not map to any valid
On Tue, 2018-12-04 at 10:43 -0800, Stephen Boyd wrote:
> Quoting Jerome Brunet (2018-12-04 08:34:03)
> > clk_mux_val_to_index() is meant to be used by .get_parent(), which
> > returns a u8, so when the value provided does not map to any valid index,
> > it is not a good idea to return a negative
On Tue, 2018-12-04 at 10:43 -0800, Stephen Boyd wrote:
> Quoting Jerome Brunet (2018-12-04 08:34:03)
> > clk_mux_val_to_index() is meant to be used by .get_parent(), which
> > returns a u8, so when the value provided does not map to any valid index,
> > it is not a good idea to return a negative
Quoting Jerome Brunet (2018-12-04 08:34:03)
> clk_mux_val_to_index() is meant to be used by .get_parent(), which
> returns a u8, so when the value provided does not map to any valid index,
> it is not a good idea to return a negative error value.
>
> Instead, return num_parents which we know is
Quoting Jerome Brunet (2018-12-04 08:34:03)
> clk_mux_val_to_index() is meant to be used by .get_parent(), which
> returns a u8, so when the value provided does not map to any valid index,
> it is not a good idea to return a negative error value.
>
> Instead, return num_parents which we know is
clk_mux_val_to_index() is meant to be used by .get_parent(), which
returns a u8, so when the value provided does not map to any valid index,
it is not a good idea to return a negative error value.
Instead, return num_parents which we know is an invalid index and let
CCF deal with it.
Fixes:
clk_mux_val_to_index() is meant to be used by .get_parent(), which
returns a u8, so when the value provided does not map to any valid index,
it is not a good idea to return a negative error value.
Instead, return num_parents which we know is an invalid index and let
CCF deal with it.
Fixes:
8 matches
Mail list logo