Skip to contentSkip to conversation

Patch "serial: 8250_uniphier: call clk_disable_unprepare() on failure path" has been added to the 4.2-stable tree

PATCH [email protected] 1 participant 1 message Sep 16, 2015

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

serial: 8250_uniphier: call clk_disable_unprepare() on failure path

to the 4.2-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
serial-8250_uniphier-call-clk_disable_unprepare-on-failure-path.patch
and it can be found in the queue-4.2 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From e70e69bf205e6d1f742f1cf1935b155417c9e29a Mon Sep 17 00:00:00 2001

From: Masahiro Yamada <[email protected]>
Date: Fri, 24 Jul 2015 15:58:28 +0900
Subject: serial: 8250_uniphier: call clk_disable_unprepare() on failure path

From: Masahiro Yamada <[email protected]>

commit e70e69bf205e6d1f742f1cf1935b155417c9e29a upstream.

If serial8250_register_8250_port() fails, disable and unprepare the clock before exiting.

Fixes 1a8d2903cb6a ("serial: 8250_uniphier: add UniPhier serial driver")
---
 drivers/tty/serial/8250/8250_uniphier.c |    1 +
 1 file changed, 1 insertion(+)
drivers/tty/serial/8250/8250_uniphier.c +1 -0
@@ -218,6 +218,7 @@ static int uniphier_uart_probe(struct pl
 	ret = serial8250_register_8250_port(&up);
 	if (ret < 0) {
 		dev_err(dev, "failed to register 8250 port\n");
+		clk_disable_unprepare(priv->clk);
 		return ret;
 	}
 

Patches currently in stable-queue which might be from [email protected] are

queue-4.2/serial-8250_uniphier-call-clk_disable_unprepare-on-failure-path.patch