Received: by 10.192.165.148 with SMTP id m20csp2491349imm; Sun, 6 May 2018 16:28:08 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrJghf+X/RmA/vGXOrv/rr7/zA2+zgHAwvGrkghJDlWe/Vtt0iLpwTB6ceGHDLUXz8GvPE+ X-Received: by 2002:a63:7413:: with SMTP id p19-v6mr28186821pgc.230.1525649288806; Sun, 06 May 2018 16:28:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525649288; cv=none; d=google.com; s=arc-20160816; b=i1jnpUjN8InYQ9fvP3Ccu2aB7xA0cKNj314QTdKdulTKiUSu5QfOVWVCr9ye/j6X49 4oT09lI1iXCc1MYUWoCYQLWyaD9uPpOZ5Dr9VRbtVj79PpWvlT6Dn2L0PFD4f2CbwzyW k+BdJ/5VVpv/uMrYeJCZSsmwtFkYnA/V8rMxRTXBj4qe9c1GXwKk1r/XCzthHswfJCjt erFN54ifQdXygjK1Aq5iq71RYmPZWJW60FtoIomAQwhVG1ghq8O5CD0t1W1Tv9SJCfax 99l8HCrq0iYC9EVsiEOee+bGDM09nJrNjrMU2EaJoXacQhTzmkrmBHxDPFdfDMiX6t3y qeRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=g+xvvIG4OLSs2vr3GjytNk7SVsiYPV3Vc8Ecw4xaNqI=; b=HV2lXX/Q+ARqU/rHL0FHYfvb280I/C0Jjoej6Mr63FKVcBw43vgmdFpam0w2DFyP5N uVHOnp/uFtX17IP/xjOBy9vci4SUboOyYn+W0g3uQZfXPq2I6wFJACWPsCEXeH317SDX TLJGHz3sLxFPe31iImUvXKUuaz5wS0R93Ce4ZvpED8WDD/U5QLjD7/LaLbvk4fJ6Srq9 XTELkxNfPWnSFmPvsoh6YEn4EXuyJ2L/XAKRoPnyJwVDXLwllHX4jkXHDjiIAzW3FWaW atCJLiSSQeTOmA0xm9Pb16fyjgrEtlbs4uZMzJZ7rZIGJMeNwxrbKbJdvJweu/ve963G ZwtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SLFVl0bb; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e33-v6si14486520pld.231.2018.05.06.16.27.22; Sun, 06 May 2018 16:28:08 -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=@gmail.com header.s=20161025 header.b=SLFVl0bb; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751903AbeEFX1K (ORCPT + 99 others); Sun, 6 May 2018 19:27:10 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:46632 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751625AbeEFX1H (ORCPT ); Sun, 6 May 2018 19:27:07 -0400 Received: by mail-pf0-f194.google.com with SMTP id p12so21346400pff.13; Sun, 06 May 2018 16:27:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=g+xvvIG4OLSs2vr3GjytNk7SVsiYPV3Vc8Ecw4xaNqI=; b=SLFVl0bbLSdmEh1GBXCMs7XWx60qHHGuLU0blXWyHY+mYK1zoKJrRaz2OR1Z1bZpFl R5fW1pDWLEi8tmJp0hvOjXe8LVNZ+Cmi0zd9ZWGa19w8C+rXzjtXC/SDkClvI0xGSwoe O9c8iVlDxsNW3PjG/yQLB49fWgKsX4bF5o5VXxq5LwV8NY5Eh18Lhhiw3/alxef5lDnB CeMPLtRuM2DSXzFhOACt9X5Iwux6FaCo5wt3Udx0+ixzzWcL/JDlLSxciNhthXmH8v8v WswQ1FQkIr5GvbdD0fHUue0mykez3YYwFlsIqmEiNdRI1BDXMVMcGmFjoXw3RU8V48ze ukiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=g+xvvIG4OLSs2vr3GjytNk7SVsiYPV3Vc8Ecw4xaNqI=; b=gHji4XoOmZN4LnJ0ZpVIaE/Ce6ldiXtqjtiACv+tNLKijY0VfxcVo/jkBAUbBWqnWe gctdmwfwDtwS5LSbqauG4ZfFAoS5K7nvxD+2lujsKBATdKEbc6Fstymvk9E17mnuBTdp LUQ/8VMJx5WmRCNkOroJCVtUMPXBhccxp/h9J+EFhNb1UJFteCzqQjh4508qoD19tQP5 9vGvWcep6MvYReU0eCMUUTYOuDn+Cschtk5LKGJkOOM0i3N3lqJmChHFl5Wg7LTVr3gz 0KbDlnk4tgNKPQ+XoBEo5ZTDLiYD+lno0g0YGVxmMguDM32/2zLsG/WBhCuXc5pxB+OW ww3A== X-Gm-Message-State: ALQs6tDYrhv+wMna4c2n8QJ89rWtIjseM+b2vx7gapROhbmsM0PzfpcT 9uxDhUFSuFy0g31MffEFo2E= X-Received: by 2002:a63:6245:: with SMTP id w66-v6mr28580395pgb.55.1525649227141; Sun, 06 May 2018 16:27:07 -0700 (PDT) Received: from localhost.localdomain ([2601:644:8201:32e0:7256:81ff:febd:926d]) by smtp.gmail.com with ESMTPSA id p126-v6sm33975013pga.28.2018.05.06.16.27.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 May 2018 16:27:06 -0700 (PDT) Date: Sun, 6 May 2018 16:27:04 -0700 From: Eduardo Valentin To: Bartlomiej Zolnierkiewicz Cc: Zhang Rui , linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 10/18] thermal: exynos: move IRQs clearing to exynos_tmu_initialize() Message-ID: <20180506232703.GB25956@localhost.localdomain> References: <1524743493-28113-1-git-send-email-b.zolnierkie@samsung.com> <1524743493-28113-11-git-send-email-b.zolnierkie@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1524743493-28113-11-git-send-email-b.zolnierkie@samsung.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey, On Thu, Apr 26, 2018 at 01:51:25PM +0200, Bartlomiej Zolnierkiewicz wrote: > Move ->tmu_clear_irqs call from ->tmu_initialize method to > exynos_tmu_initialize(). > > There should be no functional changes caused by this patch. > > Signed-off-by: Bartlomiej Zolnierkiewicz > --- > drivers/thermal/samsung/exynos_tmu.c | 12 +++--------- > 1 file changed, 3 insertions(+), 9 deletions(-) > > diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c > index 1664d37..82484c5 100644 > --- a/drivers/thermal/samsung/exynos_tmu.c > +++ b/drivers/thermal/samsung/exynos_tmu.c > @@ -368,8 +368,10 @@ static int exynos_tmu_initialize(struct platform_device *pdev) > status = readb(data->base + EXYNOS_TMU_REG_STATUS); > if (!status) > ret = -EBUSY; > - else > + else { > data->tmu_initialize(pdev); > + data->tmu_clear_irqs(data); > + } You should actually enclose the if statement also in curls here: if (!status) { ret = -EBUSY; } else { data->tmu_initialize(pdev); data->tmu_clear_irqs(data); } Fixing myself, but next time pay attention to kernel coding style CHECK: Unbalanced braces around else statement #35: FILE: drivers/thermal/samsung/exynos_tmu.c:371: + else { total: 0 errors, 0 warnings, 1 checks, 43 lines checked >