[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <98e7dd9ec454c1a8156ae74fe17ded7384dbe799.camel@codeconstruct.com.au>
Date: Thu, 22 Aug 2024 11:10:11 +0930
From: Andrew Jeffery <andrew@...econstruct.com.au>
To: Lei Liu <liulei.rjpt@...o.com>, Neal Liu <neal_liu@...eedtech.com>, Greg
Kroah-Hartman <gregkh@...uxfoundation.org>, Joel Stanley <joel@....id.au>,
Daniel Mack <daniel@...que.org>, Haojian Zhuang
<haojian.zhuang@...il.com>, Robert Jarzmik <robert.jarzmik@...e.fr>, Conor
Dooley <conor.dooley@...rochip.com>, Daire McNamara
<daire.mcnamara@...rochip.com>, Bin Liu <b-liu@...com>, Uwe
Kleine-König <u.kleine-koenig@...gutronix.de>,
linux-aspeed@...ts.ozlabs.org, linux-usb@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-riscv@...ts.infradead.org
Cc: opensource.kernel@...o.com
Subject: Re: [PATCH 1/5] usb: aspeed_udc: Use devm_clk_get_enabled() helpers
On Wed, 2024-08-21 at 20:10 +0800, Lei Liu wrote:
> The devm_clk_get_enabled() helpers:
> - call devm_clk_get()
> - call clk_prepare_enable() and register what is needed in order to
> call clk_disable_unprepare() when needed, as a managed resource.
>
> This simplifies the code and avoids calls to clk_disable_unprepare().
>
> Signed-off-by: Lei Liu <liulei.rjpt@...o.com>
Acked-by: Andrew Jeffery <andrew@...econstruct.com.au>
Powered by blists - more mailing lists