Received: by 10.192.165.148 with SMTP id m20csp1978125imm; Thu, 26 Apr 2018 04:58:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx49tpQb2yBR+qm5SI52qsQ3QE14KlpkhyKgRUQy1tuk2ysoPpj/5HYKqpSVI2RfnE6WegLvo X-Received: by 10.99.98.198 with SMTP id w189mr27609315pgb.263.1524743902599; Thu, 26 Apr 2018 04:58:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524743902; cv=none; d=google.com; s=arc-20160816; b=eKivJJvgKkRjYCYMj6sOf/YCz1xj+i40weg7BFmO3tbQH9NDaqILD7XSeMjT3jmouQ gyuV8rjWMeqSaTeZRcpW6Jn5D93ZGEehh9JKuvc319rkUGFJqsBZEhRxX2cFjizT+IHw L+OHZ+Df7sqK1CI/G5mN2lcMHe3p4v97vDrxXxGTXWaEN8YBM3V55sGwG68FFQuDx7x/ MLv235cuHdKeT4tOkfVSMVV8XB9oSFTABUatuB6jwPUr0Ga7N1Sk/xjpjZk0eXc48VYw 5IohKZpFkKJH+zgfP03B7olJ/MEe5S4nQpDHXKIJtw5D09tAAdXabuI9T1VEOy/kzuaj RDmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=XZOuE8drRsz3i2WgzJbNseDzrCdMlLevlba5xeUHNxY=; b=d9mpPx696Rl/h40zgX7uysiHheV4m9fDYZuTR+YQwsQVlPsaciLyvgMxMAYKZinP01 z0UtHC1LvzLmxoeIZ2gz+k5J64dyTkySJMuDojmMsv4xJe5t4N5ORXIzUMdg6Ka2wv8d iB0q3DMG4Gci1+CSvBboCNXH/C7wGWimEomEo2NVnRQdu3G6CQ9SydPQFyh59tfjtodr FcADFIvgGemP8Wo/Cp+JYwvV5qcetpCxvhC9YTE1L/VjMPI5tdRdrIqF8OCdhhKQwuUM AKWhDMvAlBQps9/+185F4+zOFdx/TPCdpb4BSb77yAtKp0cWdUMjp8Nf7IX3SNxL00Ph TNqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=hvRmPyHg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u11si4558313pgp.480.2018.04.26.04.58.08; Thu, 26 Apr 2018 04:58:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=hvRmPyHg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756056AbeDZLwd (ORCPT + 99 others); Thu, 26 Apr 2018 07:52:33 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:48679 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756013AbeDZLwY (ORCPT ); Thu, 26 Apr 2018 07:52:24 -0400 Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20180426115222epoutp0264b737b2e0b745358222eab8b2b6075a~o_ixg_kqX1584115841epoutp02M; Thu, 26 Apr 2018 11:52:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20180426115222epoutp0264b737b2e0b745358222eab8b2b6075a~o_ixg_kqX1584115841epoutp02M DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1524743542; bh=XZOuE8drRsz3i2WgzJbNseDzrCdMlLevlba5xeUHNxY=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=hvRmPyHgGexo2XibKb2cgjxRXPy3Dm6wpvEtl1X5lFp0a1Yu4FXsTGo4g4lcqL0pD geI9GttmvxCXfBkHsuIdiBQihGm8h1we60ZCmwQoypzbicz3IDdxltiU4N34xuGsjd y2Kc4Oz0aDc0yPzaN7v4ZPPuwGfAOxjokJcs40aQ= Received: from epsmges2p2.samsung.com (unknown [182.195.42.70]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20180426115221epcas2p3613292de9afff803b71099099b9a338c~o_ixDT_ug1611716117epcas2p3O; Thu, 26 Apr 2018 11:52:21 +0000 (GMT) Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id 80.94.04132.57DB1EA5; Thu, 26 Apr 2018 20:52:21 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20180426115221epcas2p29faeae4b9bd5eb023e9696e2c33c01e9~o_iw0oB670690506905epcas2p25; Thu, 26 Apr 2018 11:52:21 +0000 (GMT) X-AuditID: b6c32a46-145ff70000001024-be-5ae1bd7559af Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id AF.2B.03817.57DB1EA5; Thu, 26 Apr 2018 20:52:21 +0900 (KST) Received: from AMDC3058.DIGITAL.local ([106.120.53.102]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P7S00GD7JMBQG00@mmp2.samsung.com>; Thu, 26 Apr 2018 20:52:21 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: Eduardo Valentin Cc: Zhang Rui , linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, b.zolnierkie@samsung.com Subject: [PATCH 09/18] thermal: exynos: clear IRQs later in exynos4412_tmu_initialize() Date: Thu, 26 Apr 2018 13:51:24 +0200 Message-id: <1524743493-28113-10-git-send-email-b.zolnierkie@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1524743493-28113-1-git-send-email-b.zolnierkie@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOIsWRmVeSWpSXmKPExsWy7bCmhW7p3odRBlMmGFtsnLGe1WL+lWus Fpd3zWGz+Nx7hNFixvl9TBZPHvaxObB57Jx1l91j8Z6XTB59W1YxenzeJBfAEsVlk5Kak1mW WqRvl8CVca+7j6ngPVfF9Re3WRsYV3B2MXJySAiYSFw7d52xi5GLQ0hgB6PEt9tbGUESQgLf GSVe/GWDKTp+5zkTRHwDo8TrW+YQDb8YJXZdvs4OkmATsJKY2L4KrFlEQEvixKXtTCBFzAJz GCVmNexm6WLk4BAWiJRoe5YKUsMioCqxuPEeK0iYV8BT4v0CUYhdchInj01mBbE5gcIXjjSx gIyREPjLKrHs6CxGiCIXiQ+HHjJB2MISr45vYYewpSWerdrICNHQDPTNjj3MEIkJjBJ71gtB 2NYSh49fBNvALMAn0XH4LzvIERICvBIdbVAlHhKz/q6FmukosbKhkR3ieaBfNiwNmMAotYCR YRWjWGpBcW56arFRgZFecWJucWleul5yfu4mRnD0abntYFxyzucQowAHoxIPb8DCB1FCrIll xZW5hxglOJiVRHjjWx9GCfGmJFZWpRblxxeV5qQWH2KU5mBREudt8D0TJSSQnliSmp2aWpBa BJNl4uCUamCco6HHIaG2bqL1DMEFT1NaFM+UcvC66B++OjnU3KEwPdu8z7xL5ZmWnul5R6Up e83u2kyLt9yr4Dwt3yFRTfjbEgmVb6ZrUx/d7T7A3Ld1W4n5lFUVPrm2CapV9yobnxRcuRUQ UbRb4pjZRBa7rPjV/ZWy3NMkt18tz9H/pyPiqSR1nem4hRJLcUaioRZzUXEiAMfqlfK6AgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpkluLIzCtJLcpLzFFi42I5/e+xoG7p3odRBt2NihYbZ6xntZh/5Rqr xeVdc9gsPvceYbSYcX4fk8WTh31sDmweO2fdZfdYvOclk0ffllWMHp83yQWwRHHZpKTmZJal FunbJXBl3OvuYyp4z1Vx/cVt1gbGFZxdjJwcEgImEsfvPGfqYuTiEBJYxyhxo3E2I4Tzi1Hi 7bHvTCBVbAJWEhPbVzGC2CICWhInLm0H62AWmMMo8XzFHCCHg0NYIFKi7VkqSA2LgKrE4sZ7 rCBhXgFPifcLRCGWyUmcPDaZFcTmBApfONLEAmILCXhI3O97zzaBkWcBI8MqRsnUguLc9Nxi owKjvNRyveLE3OLSvHS95PzcTYzAgNl2WKt/B+PjJfGHGAU4GJV4eAMWPogSYk0sK67MPcQo wcGsJMIb3/owSog3JbGyKrUoP76oNCe1+BCjNAeLkjgvf/6xSCGB9MSS1OzU1ILUIpgsEwen VAMj04I3d9et+2PQEvuBaX9Ur4qd/bMZPQuPtpdwuS9g2+D67kRTZ2z4I5Wjk9MO1NdX2HIu yeC5cFLyyc5Z/V9jDgg+mPffe8uZ1dJhH9YZbflodeDmp9+C7BJP57uIyHh2ddUslQli/b1r 63+NtHkrAhnjTknulua86Vx/9PVe5lVXQ4/1dpzUVWIpzkg01GIuKk4EALnTOX8UAgAA X-CMS-MailID: 20180426115221epcas2p29faeae4b9bd5eb023e9696e2c33c01e9 X-Msg-Generator: CA CMS-TYPE: 102P X-CMS-RootMailID: 20180426115221epcas2p29faeae4b9bd5eb023e9696e2c33c01e9 X-RootMTR: 20180426115221epcas2p29faeae4b9bd5eb023e9696e2c33c01e9 References: <1524743493-28113-1-git-send-email-b.zolnierkie@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Clear IRQs after enabling thermal tripping (it should make no difference in driver operation). This prepares the driver code to moving IRQs clearing call from ->tmu_initialize method to exynos_tmu_initialize(). Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/thermal/samsung/exynos_tmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index 44a426a..1664d37 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -470,8 +470,6 @@ static void exynos4412_tmu_initialize(struct platform_device *pdev) writel(rising_threshold, data->base + EXYNOS_THD_TEMP_RISE); writel(get_th_reg(data, 0, true), data->base + EXYNOS_THD_TEMP_FALL); - data->tmu_clear_irqs(data); - /* if last threshold limit is also present */ for (i = 0; i < of_thermal_get_ntrips(data->tzd); i++) { if (trips[i].type == THERMAL_TRIP_CRITICAL) { @@ -488,6 +486,8 @@ static void exynos4412_tmu_initialize(struct platform_device *pdev) con = readl(data->base + EXYNOS_TMU_REG_CONTROL); con |= (1 << EXYNOS_TMU_THERM_TRIP_EN_SHIFT); writel(con, data->base + EXYNOS_TMU_REG_CONTROL); + + data->tmu_clear_irqs(data); } static void exynos5433_tmu_initialize(struct platform_device *pdev) -- 1.9.1