Thread (9 messages) flat view 9 messages, 3 authors, 2011-03-11
STALE5648d

[PATCH v4 1/3] ARM: S5P: Add s5p_timer support for HRT

From: Kukjin Kim <hidden>
Date: 2011-03-10 10:19:12
Also in: linux-samsung-soc

Jamie Iles wrote:
Hi,
Hi Jamie,
On Thu, Mar 10, 2011 at 01:48:22PM +0900, Sangbeom Kim wrote:
quoted
And Do you mean that Is needed error handling of clk_enable  like
below?

	clk_enable(timerclk);

	if (IS_ERR(timerclk)){
		clk_put(timerclk)
		panic("failed to enable timers clock");
	}
No, clk_enable() returns negative errno on failure, so something like.

	if (clk_enable(timerclk))
		panic("failed to enable timerclk");
Thanks for your suggestion.

Yeah, would be better...but I'm thinking we _really_ need that.
Because it is used timer clock, so if fails, maybe happened hang :(
quoted
There is no another clk_enable for timerclk.
I didn't mean for just timerclk, there are several other clk_enable()'s
for other clks.
Thanks.

Best regards,
Kgene.
--
Kukjin Kim [off-list ref], Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help