From 4de23dc93df3b8d77c468b16b1d2003a66eb9447 Mon Sep 17 00:00:00 2001 From: Thuy Tran Date: Wed, 15 Nov 2017 14:33:39 +0700 Subject: rcar-gen3: linux-renesas: Update SRC_URI to support ICCOM module This commit modifies Linux BSP recipes to add more patches to support ICCOM module. Signed-off-by: Thuy Tran Signed-off-by: Takamitsu Honda --- ...rt-hwspinlock-rcar-Remove-the-MFIS-clock-.patch | 104 +++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 meta-rcar-gen3/recipes-kernel/linux/linux-renesas/0018-Revert-Revert-hwspinlock-rcar-Remove-the-MFIS-clock-.patch (limited to 'meta-rcar-gen3/recipes-kernel/linux/linux-renesas/0018-Revert-Revert-hwspinlock-rcar-Remove-the-MFIS-clock-.patch') diff --git a/meta-rcar-gen3/recipes-kernel/linux/linux-renesas/0018-Revert-Revert-hwspinlock-rcar-Remove-the-MFIS-clock-.patch b/meta-rcar-gen3/recipes-kernel/linux/linux-renesas/0018-Revert-Revert-hwspinlock-rcar-Remove-the-MFIS-clock-.patch new file mode 100644 index 0000000..5520dc1 --- /dev/null +++ b/meta-rcar-gen3/recipes-kernel/linux/linux-renesas/0018-Revert-Revert-hwspinlock-rcar-Remove-the-MFIS-clock-.patch @@ -0,0 +1,104 @@ +From d50c16e7df2cd0fad5edc132948a117e9b589ec5 Mon Sep 17 00:00:00 2001 +From: Hiroki Negishi +Date: Mon, 13 Nov 2017 11:59:53 +0900 +Subject: [PATCH 18/23] Revert "Revert "hwspinlock: rcar: Remove the MFIS clock + control"" + +This reverts commit 0f2e362bbfc3 ("Revert "hwspinlock: rcar: Remove +the MFIS clock control"") + +Signed-off-by: Hiroki Negishi +--- + drivers/hwspinlock/rcar_hwspinlock.c | 27 +++------------------------ + 1 file changed, 3 insertions(+), 24 deletions(-) + +diff --git a/drivers/hwspinlock/rcar_hwspinlock.c b/drivers/hwspinlock/rcar_hwspinlock.c +index 35ba8c1..e089d9a 100644 +--- a/drivers/hwspinlock/rcar_hwspinlock.c ++++ b/drivers/hwspinlock/rcar_hwspinlock.c +@@ -1,7 +1,7 @@ + /* + * rcar_hwspinlock.c + * +- * Copyright (C) 2016 Renesas Electronics Corporation ++ * Copyright (C) 2016-2017 Renesas Electronics Corporation + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 +@@ -13,7 +13,6 @@ + * GNU General Public License for more details. + */ + #include +-#include + #include + #include + #include +@@ -60,16 +59,6 @@ static int rcar_hwspinlock_probe(struct platform_device *pdev) + struct hwspinlock_device *bank; + struct hwspinlock *lock; + struct resource *res = NULL; +- struct clk *clock; +- +- /* enable MFIS clock */ +- clock = of_clk_get(pdev->dev.of_node, 0); +- if (!clock) { +- dev_err(&pdev->dev, "Failed to get clock.\n"); +- ret = PTR_ERR(clock); +- goto out; +- } +- clk_prepare_enable(clock); + + pm_runtime_enable(&pdev->dev); + +@@ -80,7 +69,7 @@ static int rcar_hwspinlock_probe(struct platform_device *pdev) + if (IS_ERR(addr)) { + dev_err(&pdev->dev, "Failed to remap MFIS Lock register.\n"); + ret = PTR_ERR(addr); +- goto clk_disable; ++ goto out; + } + + /* create hwspinlock control info */ +@@ -90,7 +79,7 @@ static int rcar_hwspinlock_probe(struct platform_device *pdev) + if (!bank) { + dev_err(&pdev->dev, "Failed to allocate memory.\n"); + ret = PTR_ERR(bank); +- goto clk_disable; ++ goto out; + } + + for (idx = 0; idx < RCAR_HWSPINLOCK_NUM; idx++) { +@@ -102,12 +91,6 @@ static int rcar_hwspinlock_probe(struct platform_device *pdev) + /* register hwspinlock */ + ret = hwspin_lock_register(bank, &pdev->dev, &rcar_hwspinlock_ops, + 0, RCAR_HWSPINLOCK_NUM); +- if (!ret) +- goto out; +- +-clk_disable: +- if (clock) +- clk_disable_unprepare(clock); + + out: + return ret; +@@ -116,7 +99,6 @@ static int rcar_hwspinlock_probe(struct platform_device *pdev) + static int rcar_hwspinlock_remove(struct platform_device *pdev) + { + int ret; +- struct clk *clock = NULL; + + ret = hwspin_lock_unregister(platform_get_drvdata(pdev)); + if (ret) { +@@ -125,9 +107,6 @@ static int rcar_hwspinlock_remove(struct platform_device *pdev) + } + + pm_runtime_disable(&pdev->dev); +- clock = of_clk_get(pdev->dev.of_node, 0); +- if (clock) +- clk_disable_unprepare(clock); + + return 0; + } +-- +1.9.1 + -- cgit 1.2.3-korg