Re: [PATCH] clk: Do a DT parent lookup even when index < 0

From: Chen-Yu Tsai
Date: Sun Jun 16 2019 - 23:34:27 EST


On Sat, Jun 15, 2019 at 2:10 AM Stephen Boyd <sboyd@xxxxxxxxxx> wrote:
>
> We want to allow the parent lookup to happen even if the index is some
> value less than 0. This may be the case if a clk provider only specifies
> the .name member to match a string in the "clock-names" DT property. We
> shouldn't require that the index be >= 0 to make this use case work.
>
> Fixes: 601b6e93304a ("clk: Allow parents to be specified via clkspec index")
> Reported-by: Alexandre Mergnat <amergnat@xxxxxxxxxxxx>
> Cc: Jerome Brunet <jbrunet@xxxxxxxxxxxx>
> Cc: Chen-Yu Tsai <wens@xxxxxxxx>
> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxx>

FWIW,

Reviewed-by: Chen-Yu Tsai <wens@xxxxxxxx>