Patch "dmaengine: dw: platform: Mark 'hclk' clock optional" has been added to the 5.4-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

    dmaengine: dw: platform: Mark 'hclk' clock optional

to the 5.4-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:
     dmaengine-dw-platform-mark-hclk-clock-optional.patch
and it can be found in the queue-5.4 subdirectory.

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


>From f27c22736d133baff0ab3fdc7b015d998267d817 Mon Sep 17 00:00:00 2001
From: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Date: Tue, 24 Sep 2019 11:51:16 +0300
Subject: dmaengine: dw: platform: Mark 'hclk' clock optional

From: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>

commit f27c22736d133baff0ab3fdc7b015d998267d817 upstream.

On some platforms the clock can be fixed rate, always running one and
there is no need to do anything with it.

In order to support those platforms, switch to use optional clock.

Fixes: f8d9ddbc2851 ("dmaengine: dw: platform: Enable iDMA 32-bit on Intel Elkhart Lake")
Depends-on: 60b8f0ddf1a9 ("clk: Add (devm_)clk_get_optional() functions")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>
Link: https://lore.kernel.org/r/20190924085116.83683-1-andriy.shevchenko@xxxxxxxxxxxxxxx
Signed-off-by: Vinod Koul <vkoul@xxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
 drivers/dma/dw/platform.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/dma/dw/platform.c
+++ b/drivers/dma/dw/platform.c
@@ -66,7 +66,7 @@ static int dw_probe(struct platform_devi
 
 	data->chip = chip;
 
-	chip->clk = devm_clk_get(chip->dev, "hclk");
+	chip->clk = devm_clk_get_optional(chip->dev, "hclk");
 	if (IS_ERR(chip->clk))
 		return PTR_ERR(chip->clk);
 	err = clk_prepare_enable(chip->clk);


Patches currently in stable-queue which might be from andriy.shevchenko@xxxxxxxxxxxxxxx are

queue-5.4/dmaengine-dw-platform-mark-hclk-clock-optional.patch
queue-5.4/pinctrl-lewisburg-update-pin-list-according-to-v1.1v6.patch
queue-5.4/platform-x86-gpd-pocket-fan-use-default-values-when-wrong-modparams-are-given.patch
queue-5.4/platform-mellanox-fix-potential-deadlock-in-the-tmfifo-driver.patch
queue-5.4/documentation-abi-add-missed-attribute-for-mlxreg-io-sysfs-interfaces.patch
queue-5.4/documentation-abi-fix-documentation-inconsistency-for-mlxreg-io-sysfs-interfaces.patch
queue-5.4/platform-x86-asus-wmi-fix-keyboard-brightness-cannot-be-set-to-0.patch
queue-5.4/maintainers-append-missed-file-to-the-database.patch



[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