Patch "hwrng: stm32 - add missing clk_disable_unprepare() in stm32_rng_init()" has been added to the 6.7-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

    hwrng: stm32 - add missing clk_disable_unprepare() in stm32_rng_init()

to the 6.7-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:
     hwrng-stm32-add-missing-clk_disable_unprepare-in-stm.patch
and it can be found in the queue-6.7 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit c001d097b5eca1accc1c1b479719303b20ceecf0
Author: Yang Yingliang <yangyingliang@xxxxxxxxxx>
Date:   Fri Dec 1 16:20:48 2023 +0800

    hwrng: stm32 - add missing clk_disable_unprepare() in stm32_rng_init()
    
    [ Upstream commit 429fec81d12266e6402868672de8c68bf4d8db13 ]
    
    Add clk_disable_unprepare() in the error path in stm32_rng_init().
    
    Fixes: 6b85a7e141cb ("hwrng: stm32 - implement STM32MP13x support")
    Signed-off-by: Yang Yingliang <yangyingliang@xxxxxxxxxx>
    Reviewed-by: Gatien Chevallier <gatien.chevallier@xxxxxxxxxxx>
    Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/char/hw_random/stm32-rng.c b/drivers/char/hw_random/stm32-rng.c
index 41e1dbea5d2e..efd6edcd7066 100644
--- a/drivers/char/hw_random/stm32-rng.c
+++ b/drivers/char/hw_random/stm32-rng.c
@@ -325,6 +325,7 @@ static int stm32_rng_init(struct hwrng *rng)
 							(!(reg & RNG_CR_CONDRST)),
 							10, 50000);
 		if (err) {
+			clk_disable_unprepare(priv->clk);
 			dev_err((struct device *)priv->rng.priv,
 				"%s: timeout %x!\n", __func__, reg);
 			return -EINVAL;




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux