Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752545AbbBYJDp (ORCPT ); Wed, 25 Feb 2015 04:03:45 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:23129 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750714AbbBYJDk (ORCPT ); Wed, 25 Feb 2015 04:03:40 -0500 X-AuditID: cbfee61b-f79d76d0000024d6-dc-54ed8feae1f1 Date: Wed, 25 Feb 2015 10:03:30 +0100 From: Lukasz Majewski To: a.kesavan@samsung.com, Abhilash Kesavan Cc: Chanwoo Choi , rui.zhang@intel.com, edubezval@gmail.com, kgene@kernel.org, b.zolnierkie@samsung.com, amit.daniel@samsung.com, inki.dae@samsung.com, kyungmin.park@samsung.com, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] thermal: exynos: Fix wrong control of power down detection mode for Exynos7 Message-id: <20150225100330.0ef63a95@amdc2363> In-reply-to: <1424753815-15113-2-git-send-email-cw00.choi@samsung.com> References: <1424753815-15113-1-git-send-email-cw00.choi@samsung.com> <1424753815-15113-2-git-send-email-cw00.choi@samsung.com> Organization: SPRC Poland X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnkeLIzCtJLcpLzFFi42I5/e+xgO6r/rchBounyVs8XrOYyaLhaojF xhnrWS2uf3nOajH/yjVWi0n3J7BYrPmrZNH/+DWzxdmmN+wWmx4DxS/vmsNm8bn3CKPFjPP7 mCyePOxjc+Dz2DnrLrvH4j0vmTw2repk89i8pN6jb8sqRo/Pm+QC2KK4bFJSczLLUov07RK4 Mrb/W8dW8JWnYt67ZcwNjGe4uhg5OSQETCR+t19hh7DFJC7cW8/WxcjFISSwiFHixo3NjBDO L0aJFfc62UCqWARUJd49uswEYrMJ6El8vvsUzBYR8JBY+G0FWAOzwEUmiW9dTxlBEsICaRIn ul4wg9i8QA3ds7tYQGxOATeJV5O/sENsaGSUOL/qGNgkfgFJifZ/P5ghbrKTOPdpAztEs6DE j8n3wJqZBbQkNm9rYoWw5SU2r3nLPIFRcBaSsllIymYhKVvAyLyKUTS1ILmgOCk910ivODG3 uDQvXS85P3cTIzianknvYFzVYHGIUYCDUYmHN1H4TYgQa2JZcWXuIUYJDmYlEV6nkrchQrwp iZVVqUX58UWlOanFhxilOViUxHmV7NtChATSE0tSs1NTC1KLYLJMHJxSDYyudnP+Np7b+6bt 8F9Lthmn43ceVpx3VGT91sqvTEk3tz702v2ffYqOxM0nv5tE8z+v3Fi66+fm53w1ehyzLl8Q /eiSV1+btdgi72zLWdfSpwlXP9Ty/J/UPTvhYpVlmXaHVWfzAr8kuQ5m2z8RHGceHlEpfDBh g/Jv8T3Tny1ba8j4W8XkrRuvEktxRqKhFnNRcSIAeivo8qICAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1852 Lines: 51 Hi Abhilash, > This patch fixes the wrong control of PD_DET_EN (power down detection > mode) for Exynos7 because exynos7_tmu_control() always enables the > power down detection mode regardless 'on' parameter. > > Cc: Zhang Rui > Cc: Eduardo Valentin > Signed-off-by: Chanwoo Choi > --- > drivers/thermal/samsung/exynos_tmu.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/thermal/samsung/exynos_tmu.c > b/drivers/thermal/samsung/exynos_tmu.c index 933cd80..a60f527 100644 > --- a/drivers/thermal/samsung/exynos_tmu.c > +++ b/drivers/thermal/samsung/exynos_tmu.c > @@ -682,6 +682,7 @@ static void exynos7_tmu_control(struct > platform_device *pdev, bool on) > if (on) { > con |= (1 << EXYNOS_TMU_CORE_EN_SHIFT); > + con |= (1 << EXYNOS7_PD_DET_EN_SHIFT); > interrupt_en = > (of_thermal_is_trip_valid(tz, 7) > << EXYNOS7_TMU_INTEN_RISE7_SHIFT) | > @@ -704,9 +705,9 @@ static void exynos7_tmu_control(struct > platform_device *pdev, bool on) interrupt_en << > EXYNOS_TMU_INTEN_FALL0_SHIFT; } else { > con &= ~(1 << EXYNOS_TMU_CORE_EN_SHIFT); > + con &= ~(1 << EXYNOS7_PD_DET_EN_SHIFT); > interrupt_en = 0; /* Disable all interrupts */ > } > - con |= 1 << EXYNOS7_PD_DET_EN_SHIFT; > > writel(interrupt_en, data->base + EXYNOS7_TMU_REG_INTEN); > writel(con, data->base + EXYNOS_TMU_REG_CONTROL); Could you test this patch if it isn't introducing any regression on your HW? -- Best regards, Lukasz Majewski Samsung R&D Institute Poland (SRPOL) | Linux Platform Group -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/