lkundrak / rpms / kernel

Forked from rpms/kernel 4 years ago
Clone
b8be23d
From patchwork Wed Oct 26 15:17:01 2016
b8be23d
Content-Type: text/plain; charset="utf-8"
b8be23d
MIME-Version: 1.0
b8be23d
Content-Transfer-Encoding: 7bit
b8be23d
Subject: [3/5] ARM: OMAP4+: Fix bad fallthrough for cpuidle
b8be23d
From: Tony Lindgren <tony@atomide.com>
b8be23d
X-Patchwork-Id: 9397501
b8be23d
Message-Id: <20161026151703.24730-4-tony@atomide.com>
b8be23d
To: linux-omap@vger.kernel.org
b8be23d
Cc: Nishanth Menon <nm@ti.com>, Dmitry Lifshitz <lifshitz@compulab.co.il>,
b8be23d
 Dave Gerlach <d-gerlach@ti.com>,
b8be23d
 Enric Balletbo Serra <eballetbo@gmail.com>, 
b8be23d
 "Dr . H . Nikolaus Schaller" <hns@goldelico.com>,
b8be23d
 Pau Pajuel <ppajuel@gmail.com>, Grazvydas Ignotas <notasas@gmail.com>,
b8be23d
 Benoit Cousson <bcousson@baylibre.com>,
b8be23d
 Santosh Shilimkar <ssantosh@kernel.org>,
b8be23d
 Javier Martinez Canillas <javier@dowhile0.org>,
b8be23d
 Robert Nelson <robertcnelson@gmail.com>,
b8be23d
 Marek Belisko <marek@goldelico.com>, linux-arm-kernel@lists.infradead.org
b8be23d
Date: Wed, 26 Oct 2016 08:17:01 -0700
b8be23d
b8be23d
We don't want to fall through to a bunch of errors for retention
b8be23d
if PM_OMAP4_CPU_OSWR_DISABLE is not configured for a SoC.
b8be23d
b8be23d
Fixes: 6099dd37c669 ("ARM: OMAP5 / DRA7: Enable CPU RET on suspend")
b8be23d
Signed-off-by: Tony Lindgren <tony@atomide.com>
b8be23d
---
b8be23d
 arch/arm/mach-omap2/omap-mpuss-lowpower.c | 5 ++---
b8be23d
 1 file changed, 2 insertions(+), 3 deletions(-)
b8be23d
b8be23d
diff --git a/arch/arm/mach-omap2/omap-mpuss-lowpower.c b/arch/arm/mach-omap2/omap-mpuss-lowpower.c
b8be23d
--- a/arch/arm/mach-omap2/omap-mpuss-lowpower.c
b8be23d
+++ b/arch/arm/mach-omap2/omap-mpuss-lowpower.c
b8be23d
@@ -244,10 +244,9 @@ int omap4_enter_lowpower(unsigned int cpu, unsigned int power_state)
b8be23d
 		save_state = 1;
b8be23d
 		break;
b8be23d
 	case PWRDM_POWER_RET:
b8be23d
-		if (IS_PM44XX_ERRATUM(PM_OMAP4_CPU_OSWR_DISABLE)) {
b8be23d
+		if (IS_PM44XX_ERRATUM(PM_OMAP4_CPU_OSWR_DISABLE))
b8be23d
 			save_state = 0;
b8be23d
-			break;
b8be23d
-		}
b8be23d
+		break;
b8be23d
 	default:
b8be23d
 		/*
b8be23d
 		 * CPUx CSWR is invalid hardware state. Also CPUx OSWR
bce0708
From 5a78ff7bf7e25191144b550961001bbf6c734da4 Mon Sep 17 00:00:00 2001
bce0708
From: Peter Chen <peter.chen@nxp.com>
bce0708
Date: Thu, 11 Aug 2016 17:44:54 +0800
bce0708
Subject: [PATCH 04152/16809] Revert "gpu: drm: omapdrm: dss-of: add missing
bce0708
 of_node_put after calling of_parse_phandle"
bce0708
bce0708
This reverts
bce0708
commit 2ab9f5879162499e1c4e48613287e3f59e593c4f
bce0708
Author: Peter Chen <peter.chen@nxp.com>
bce0708
Date:   Fri Jul 15 11:17:03 2016 +0800
bce0708
    gpu: drm: omapdrm: dss-of: add missing of_node_put after calling of_parse_phandle
bce0708
bce0708
The of_get_next_parent will drop refcount on the passed node, so the reverted
bce0708
patch is wrong, thanks for Tomi Valkeinen points it.
bce0708
bce0708
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
bce0708
Signed-off-by: Peter Chen <peter.chen@nxp.com>
bce0708
Acked-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
bce0708
Signed-off-by: Sean Paul <seanpaul@chromium.org>
bce0708
Link: http://patchwork.freedesktop.org/patch/msgid/1470908694-16362-1-git-send-email-peter.chen@nxp.com
bce0708
---
bce0708
 drivers/gpu/drm/omapdrm/dss/dss-of.c | 7 +++----
bce0708
 1 file changed, 3 insertions(+), 4 deletions(-)
bce0708
bce0708
diff --git a/drivers/gpu/drm/omapdrm/dss/dss-of.c b/drivers/gpu/drm/omapdrm/dss/dss-of.c
bce0708
index e256d87..dfd4e96 100644
bce0708
--- a/drivers/gpu/drm/omapdrm/dss/dss-of.c
bce0708
+++ b/drivers/gpu/drm/omapdrm/dss/dss-of.c
bce0708
@@ -125,16 +125,15 @@ u32 dss_of_port_get_port_number(struct device_node *port)
bce0708
 
bce0708
 static struct device_node *omapdss_of_get_remote_port(const struct device_node *node)
bce0708
 {
bce0708
-	struct device_node *np, *np_parent;
bce0708
+	struct device_node *np;
bce0708
 
bce0708
 	np = of_parse_phandle(node, "remote-endpoint", 0);
bce0708
 	if (!np)
bce0708
 		return NULL;
bce0708
 
bce0708
-	np_parent = of_get_next_parent(np);
bce0708
-	of_node_put(np);
bce0708
+	np = of_get_next_parent(np);
bce0708
 
bce0708
-	return np_parent;
bce0708
+	return np;
bce0708
 }
bce0708
 
bce0708
 struct device_node *
bce0708
-- 
bce0708
2.9.3
bce0708