[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <6cd278de-f9f4-74ae-71a0-2cc5601659b1@samsung.com>
Date: Fri, 26 Aug 2016 10:52:00 +0200
From: Sylwester Nawrocki <s.nawrocki@...sung.com>
To: Stephen Boyd <sboyd@...eaurora.org>,
Michael Turquette <mturquette@...libre.com>
Cc: Masahiro Yamada <yamada.masahiro@...ionext.com>,
linux-kernel@...r.kernel.org, linux-clk@...r.kernel.org
Subject: Re: [PATCH] clk: Simplify __of_clk_get_hw_from_provider()
On 08/25/2016 10:35 PM, Stephen Boyd wrote:
> __of_clk_get_hw_from_provider() is confusing because it will
> return EPROBE_DEFER if there isn't a ->get() or ->get_hw()
> function pointer in a provider. That's just a bug though, and we
> used to NULL pointer exception when ->get() was missing anyway,
> so let's make this more obvious that they're not optional. The
> assumption is that most providers will implement ->get_hw() so we
> only fallback to the ->get() function if necessary. This
> clarifies the intent and removes any possibility of probe defer
> happening if clk providers are buggy.
>
> Reported-by: Masahiro Yamada <yamada.masahiro@...ionext.com>
> Signed-off-by: Stephen Boyd <sboyd@...eaurora.org>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@...sung.com>
Powered by blists - more mailing lists