Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2338574ybk; Mon, 11 May 2020 19:02:42 -0700 (PDT) X-Google-Smtp-Source: APiQypJ8xOi7VPMy6YzxuP5YfWkOFMD1tf0DXVF4uUWfP8N7G1pNJNmm39SQpbisNzYxpod7zt9e X-Received: by 2002:a05:6402:70c:: with SMTP id w12mr15124165edx.377.1589248961910; Mon, 11 May 2020 19:02:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589248961; cv=none; d=google.com; s=arc-20160816; b=coZvvSmJlZzfNkgkdhjOmHe0tLs3kmZSPyQ7U3vHeWATO5VMlydzsf/Ex7LHm9wNes iYPjj+eM/+HSyN8PRgdxRguq3B806WAqyUWbK+Dv1gLhUUogxyLJ5e3BIItoRVTh8sX1 OS+92KvaqywP2Qfv0FfCEme5ZKxVRONIytDXKI9Nw1p6SuylFxMzQtZu1sednZFmYnp1 wwkvSft+Jh74jCGXAhmhW4YvYXB4A4Z0Kdk8WJRsjz07hBY8PFjxpWeL+PLWqvBdtDoc RwQT3D4uXc44IvobxL8K/UGfYiTeTAJ/mwYyPTFchxs22M9GLRpnB5OXVuy8byCXSALT B66g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :ironport-sdr:ironport-sdr; bh=YmFnLKmx8GoSCOR9eTQeothJpVhFk56lRtm5h6GJrlU=; b=ytghCuCh/pQUzSlNXWyKAf2QWf/9TJZikvdn8YswF7rcQhR0rdd/PHWHvvEdsgh8d4 W5+q/hsnviCeuBOpOSU7l9xhGaZte4a61h2w59elDGW6Ir6FQVHiWKg9crKZTxQHWOpA mQIcuMbbLK7y+5l+9uKdqGd4EIWtUpLvKNSzljcqaq2uY0WpefEck9KJpt5Y0TY5bDbI SLGeXliDUinjJGmZzbjx6I6ZyiZmlbdqMEAZH2dR3BU2P1JHhmjoJNd8ug5cXd70FY+q 69HVask1v7CzSIFX1VFBrtGfwrdYLB5IhGMvB8FfeHwYtFhzguUX62OrRsS8D3gAxaeM ouUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kt25si252104ejb.511.2020.05.11.19.02.18; Mon, 11 May 2020 19:02:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728557AbgELB6c (ORCPT + 99 others); Mon, 11 May 2020 21:58:32 -0400 Received: from mga03.intel.com ([134.134.136.65]:19157 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726874AbgELB6c (ORCPT ); Mon, 11 May 2020 21:58:32 -0400 IronPort-SDR: 64w399iFxKgVqqPMmmrzBQVUNJz4VPSORNPs36c0qdsc6HVJwPk8U5n6nUgv5POcl5fm7JMgUR YYOQgB3jNZ3A== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2020 18:58:31 -0700 IronPort-SDR: /wi+FMfPtOrjVIxuhWeElC5VdPRFxcpccZVgmRFolElnJhL2nqL+MPAYXcPBkEJFme2SPdn3B7 NtQwAgffx9oA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,381,1583222400"; d="scan'208";a="286470510" Received: from xwang69-mobl1.ccr.corp.intel.com ([10.249.168.68]) by fmsmga004.fm.intel.com with ESMTP; 11 May 2020 18:58:29 -0700 Message-ID: <4b6a9dbf43a33354c01d760f7fab3723e5882269.camel@intel.com> Subject: Re: [PATCH 1/6] iwlwifi: use thermal_zone_device_update() for temperature change From: Zhang Rui To: linux-pm@vger.kernel.org Cc: linux-wireless@vger.kernel.org, daniel.lezcano@linaro.org, andrzej.p@collabora.com, b.zolnierkie@samsung.com, luca@coelho.fi, luciano.coelho@intel.com Date: Tue, 12 May 2020 09:58:28 +0800 In-Reply-To: <20200430063229.6182-2-rui.zhang@intel.com> References: <20200430063229.6182-1-rui.zhang@intel.com> <20200430063229.6182-2-rui.zhang@intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Thu, 2020-04-30 at 14:32 +0800, Zhang Rui wrote: > thermal_notify_framework() is an obsolete API, and iwlwifi is the > only > user of it. > Convert iwlwifi driver to use thermal_zone_device_update() instead. > > Note that, thermal_zone_device_update() is able to handle the crossed > threshold by comparing the current temperature with every trip point, > so > ths_crossed variant in iwl_mvm_temp_notif() is probably not needed. > It is still left there in this patch, in case the debug information > is > still needed. > > Signed-off-by: Zhang Rui Hi, Luca, Any comments about this patch and patch 6/6? thanks, rui > --- > drivers/net/wireless/intel/iwlwifi/mvm/tt.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/tt.c > b/drivers/net/wireless/intel/iwlwifi/mvm/tt.c > index 418e59b..6344b6b 100644 > --- a/drivers/net/wireless/intel/iwlwifi/mvm/tt.c > +++ b/drivers/net/wireless/intel/iwlwifi/mvm/tt.c > @@ -203,9 +203,8 @@ void iwl_mvm_temp_notif(struct iwl_mvm *mvm, > struct iwl_rx_cmd_buffer *rxb) > > if (mvm->tz_device.tzone) { > struct iwl_mvm_thermal_device *tz_dev = &mvm- > >tz_device; > - > - thermal_notify_framework(tz_dev->tzone, > - tz_dev- > >fw_trips_index[ths_crossed]); > + thermal_zone_device_update(tz_dev->tzone, > + THERMAL_EVENT_UNSPECIFIED); > } > #endif /* CONFIG_THERMAL */ > }