Patch "clk: clk-gpio: propagate rate change to parent" has been added to the 4.19-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

    clk: clk-gpio: propagate rate change to parent

to the 4.19-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:
     clk-clk-gpio-propagate-rate-change-to-parent.patch
and it can be found in the queue-4.19 subdirectory.

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



commit bf01d5dec2e3a0c301529e2257b8b10b712eb0ad
Author: Michael Hennerich <michael.hennerich@xxxxxxxxxx>
Date:   Fri Nov 8 09:17:18 2019 +0200

    clk: clk-gpio: propagate rate change to parent
    
    [ Upstream commit fc59462c5ce60da119568fac325c92fc6b7c6175 ]
    
    For an external clock source, which is gated via a GPIO, the
    rate change should typically be propagated to the parent clock.
    
    The situation where we are requiring this propagation, is when an
    external clock is connected to override an internal clock (which typically
    has a fixed rate). The external clock can have a different rate than the
    internal one, and may also be variable, thus requiring the rate
    propagation.
    
    This rate change wasn't propagated until now, and it's unclear about cases
    where this shouldn't be propagated. Thus, it's unclear whether this is
    fixing a bug, or extending the current driver behavior. Also, it's unsure
    about whether this may break any existing setups; in the case that it does,
    a device-tree property may be added to disable this flag.
    
    Signed-off-by: Michael Hennerich <michael.hennerich@xxxxxxxxxx>
    Signed-off-by: Alexandru Ardelean <alexandru.ardelean@xxxxxxxxxx>
    Link: https://lkml.kernel.org/r/20191108071718.17985-1-alexandru.ardelean@xxxxxxxxxx
    Signed-off-by: Stephen Boyd <sboyd@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/clk/clk-gpio.c b/drivers/clk/clk-gpio.c
index 40af4fbab4d2..af9cc00d2d92 100644
--- a/drivers/clk/clk-gpio.c
+++ b/drivers/clk/clk-gpio.c
@@ -248,7 +248,7 @@ static int gpio_clk_driver_probe(struct platform_device *pdev)
 	else
 		clk = clk_register_gpio_gate(&pdev->dev, node->name,
 				parent_names ?  parent_names[0] : NULL, gpiod,
-				0);
+				CLK_SET_RATE_PARENT);
 	if (IS_ERR(clk))
 		return PTR_ERR(clk);
 



[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