[PATCH v2 2/2] serial: imx: disable console clocks on unregister

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Thu Oct 21 01:39:15 PDT 2021


On Wed, Oct 20, 2021 at 09:26:43PM +0200, Francesco Dolcini wrote:
> During console setup imx_uart_console_setup() enables clocks, but they
> are never disabled when the console is unregistered, this leads to
> clk_prepare_enable() being called multiple times without a matching
> clk_disable_unprepare() in case of console unregister.
> 
> Ensure that clock enable/disable are balanced adding
> clk_disable_unprepare() in the console exit callback.
> 
> Signed-off-by: Francesco Dolcini <francesco.dolcini at toradex.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>

Thanks
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20211021/babc99fc/attachment.sig>


More information about the linux-arm-kernel mailing list