Re: [PATCH] clk: clk_set_parent() with current parent shouldn't fail
From: Philipp Zabel
Date: Tue Feb 03 2015 - 04:42:47 EST
Am Montag, den 02.02.2015, 14:11 -0800 schrieb Stephen Boyd:
> If a driver calls clk_set_parent(clk, parent) and parent is the
> current parent of clk we shouldn't fail in any case.
> Unfortunately if clk is a read-only mux we return -ENOSYS
> because we think we can't change the parent, except for in this
> special case where we don't actually need to change the parent at
> all. Return 0 in such a situation.
>
> Cc: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx>
> Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxxxxxx>
Acked-by: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx>
regards
Philipp
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/