Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4906851pxu; Thu, 10 Dec 2020 08:14:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJxC7LkITC8M/Ox59JYS3eLmIOG3mJRdjV1psiBoT7U+qjhPhfhZWskcnxsmwo1SI5J/KqbP X-Received: by 2002:a05:6402:3192:: with SMTP id di18mr7382788edb.332.1607616848086; Thu, 10 Dec 2020 08:14:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607616848; cv=none; d=google.com; s=arc-20160816; b=fSuVACDHZNtXNwmFgR5jvhkawClmUx/XCzs1mXKFq/sYUlpgSSH4qluycHet5ffzw4 BclbCuCOOz0Ik3Ct13JpCG2+Aov2aNGa6X8yRtTIlaNmvqDlLZ7BgU5HvB9lJvYi39F0 Ix1wGoLy28YtEEIXt6s6Ivi5wODNFvlRitkY8KzHvOEDhz4SEU//70axBo80ZZV7bX92 lRL5tVxmu0vU7GBjw2vJV80Kw/HH750PFvg/E0YMi+eEOuKB1RHvpaR+foliNsZLN9/x gx2B562pMXZCbu0R/BVOPJv9rZfM1UmYDYmbpSk93kb/JW9Nz8kisX2pBqZLwUojRtnb qXiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=H9hu18o8blyYnuGKEqmYi2M2JSTcn+jz8VPPMy11ti4=; b=MR+sDxTuLNMykrcTn0DgrTethBmynpWmLngSP33FR46z1cU9474vvHeISREVRKEpaR 1dfFZ89GwiIhpivbg2ORbWTY6jDtOgVQewOB1L/tZTFbq5kfRhBQPXH46fOvccmn6yYw TZMmcorUmexM+Q2WLPb8a9b+cE9/avxP30tDKFZPGghPQ3F967wgAcPIaYOnM0CQEQWB oqyGHHwXjGaa/XjT3SBZ7PdNn1kpubnxWUCIWLSo2P6TU8UO9HkwpUDIpLR3l11RVpgZ Cu8HU+bzE3gFDi8PchPb2KGLtGQahIaCCnjBtzIwRonUmv9e6ly7pLXWvmgZMRM8hqi0 M4TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ragnatech-se.20150623.gappssmtp.com header.s=20150623 header.b=lNRhSz8o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn5si3135624ejc.533.2020.12.10.08.13.44; Thu, 10 Dec 2020 08:14:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ragnatech-se.20150623.gappssmtp.com header.s=20150623 header.b=lNRhSz8o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392384AbgLJQLZ (ORCPT + 99 others); Thu, 10 Dec 2020 11:11:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392378AbgLJQLG (ORCPT ); Thu, 10 Dec 2020 11:11:06 -0500 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5C28C061793 for ; Thu, 10 Dec 2020 08:10:25 -0800 (PST) Received: by mail-lj1-x244.google.com with SMTP id f11so7322363ljn.2 for ; Thu, 10 Dec 2020 08:10:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech-se.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=H9hu18o8blyYnuGKEqmYi2M2JSTcn+jz8VPPMy11ti4=; b=lNRhSz8ocGlUwD8y8ViOXXVooVExftagV4HO67zreuF9Gcwf0muXj3BAEe2SNdveEh SiHtD0xTEs3cNV3n3F/i+JOYw0sVuw5mvCW9gush2rBTN2mtQjDfY09eVtMDib5gRpIa 08M6jtNWrOP5ByjMa1OyHD99vMNw7mYO+LuuACjJ8DqJjNNIqUcOt1Q60Ts9RsFvX2Ud XkhGReqgTAJPQxIwl3jacDDoSNvkxfQ4AjYZn66yhjlkFmpnJoKkAfkdWSIVtYEio8HP AoOzrF5yuKrI6DTBj2+JMPej6pWzkbcKQxwO5kTL1QSMcGBCZ7SZlv/b37BO2assl+sY hrNQ== 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:content-transfer-encoding :in-reply-to; bh=H9hu18o8blyYnuGKEqmYi2M2JSTcn+jz8VPPMy11ti4=; b=bnKGDdjnf3JGzDiRKdkN4IXm9XCLUL0jDc8ptSfniO1lzxqXwK0RTjaNuVCfoFI6f7 eNmFSWxjlPIvT6o5z/2/sx+FnNlMyu4HUDzScnrLtVqdRREIhDOGeGGGofZ75Drfqmuz +TmhRRBC5hpRWVonS8hhCpYw8ODI6CgkW55bxTZCmrNDlGFtIV4YXU8E/yt+WZk/0hqu Qm5Gs5wSJmdm/Tt+w0MZHaZ7ZA1Z2NY+OUdVXx25IBpZILkw2mSDVeEzqS2P92jZw5Nt RBc2OWoiLLaudomdBB3E+LdjVR4i/rY758J4pzAqWVh2AqlyYlkHO+pby4GDf0FPQ3qg c1hg== X-Gm-Message-State: AOAM531n5W3nW6b2c+LOs6Y0xDTLoE/u4fgvFR+rRzIHLg9pPW/KBY/+ iO653lEa36kCIUUeNxO07kJRrA== X-Received: by 2002:a2e:3308:: with SMTP id d8mr3182165ljc.183.1607616624255; Thu, 10 Dec 2020 08:10:24 -0800 (PST) Received: from localhost (h-209-203.A463.priv.bahnhof.se. [155.4.209.203]) by smtp.gmail.com with ESMTPSA id j27sm568194lfm.178.2020.12.10.08.10.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Dec 2020 08:10:23 -0800 (PST) Date: Thu, 10 Dec 2020 17:10:22 +0100 From: Niklas =?iso-8859-1?Q?S=F6derlund?= To: Daniel Lezcano Cc: rui.zhang@intel.com, kai.heng.feng@canonical.com, lukasz.luba@arm.com, srinivas.pandruvada@linux.intel.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Amit Kucheria , "open list:RENESAS R-CAR THERMAL DRIVERS" Subject: Re: [PATCH 4/5] thermal/drivers/rcar: Remove notification usage Message-ID: <20201210161022.GE4186812@oden.dyn.berto.se> References: <20201210121514.25760-1-daniel.lezcano@linaro.org> <20201210121514.25760-4-daniel.lezcano@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201210121514.25760-4-daniel.lezcano@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daniel, Thanks for your work. On 2020-12-10 13:15:13 +0100, Daniel Lezcano wrote: > The ops is only showing a trace telling a critical trip point is > crossed. The same information is given by the thermal framework. > > This is redundant, remove the code. > > Signed-off-by: Daniel Lezcano Reviewed-by: Niklas S?derlund > --- > drivers/thermal/rcar_thermal.c | 19 ------------------- > 1 file changed, 19 deletions(-) > > diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c > index 6ae757d66f46..b49f04daaf47 100644 > --- a/drivers/thermal/rcar_thermal.c > +++ b/drivers/thermal/rcar_thermal.c > @@ -323,24 +323,6 @@ static int rcar_thermal_get_trip_temp(struct thermal_zone_device *zone, > return 0; > } > > -static int rcar_thermal_notify(struct thermal_zone_device *zone, > - int trip, enum thermal_trip_type type) > -{ > - struct rcar_thermal_priv *priv = rcar_zone_to_priv(zone); > - struct device *dev = rcar_priv_to_dev(priv); > - > - switch (type) { > - case THERMAL_TRIP_CRITICAL: > - /* FIXME */ > - dev_warn(dev, "Thermal reached to critical temperature\n"); > - break; > - default: > - break; > - } > - > - return 0; > -} > - > static const struct thermal_zone_of_device_ops rcar_thermal_zone_of_ops = { > .get_temp = rcar_thermal_of_get_temp, > }; > @@ -349,7 +331,6 @@ static struct thermal_zone_device_ops rcar_thermal_zone_ops = { > .get_temp = rcar_thermal_get_temp, > .get_trip_type = rcar_thermal_get_trip_type, > .get_trip_temp = rcar_thermal_get_trip_temp, > - .notify = rcar_thermal_notify, > }; > > /* > -- > 2.17.1 > -- Regards, Niklas S?derlund