From patchwork Tue Jan 19 14:05:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thara Gopinath X-Patchwork-Id: 366220 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp1202891jam; Tue, 19 Jan 2021 15:38:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJxCUPr0Fy24Po0jl2CsqYshoAD8hdfIaNtXuQEkLmQPDpKXMITPIHRxMxbiEtxdqLiHgCjd X-Received: by 2002:a05:6402:17cb:: with SMTP id s11mr5064964edy.119.1611099505950; Tue, 19 Jan 2021 15:38:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611099505; cv=none; d=google.com; s=arc-20160816; b=uAwLL5qt9hCfbkmHrSs4fyZkiw3I8jAImYGv8y4NW28J6yE0uerqXjFGpL3u87M5wg nv2FZiOM2SYZvEc/735qE7o8+Pcym3i/WnYa4KFTlsgHOqM9aKv+1XvDEEU4uifkjkEU AiwMZS/zdmZbSi4yrIFV5MsAelteJMzr/wiVD5Um5J/nckf8DFW3O54trDjoKjA9F6Ia WIK1LciXp9urc4ydHwuZrtrg0GEGq3T/Z79BqOfZ+PTkxwmICGfknJKp+4YgtPVyOFbu rm9SahwjdHREmPQmNwU7k5z7PXOSmbaMuOMH45+uusl+3yFdDMraHbadH3F+bIHdyjpi gVxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=K6Vqc+23VASYsYGFP+qO4Y3EIsmnhbqAWUtWDpTUg5U=; b=g7jGJLOlqFzL0kQ4D9VZflND5xriGCmwzIvwWGAznTXWfh6iwjWSkifrZtOmGpHa88 Qzx259Xz/F7afYaUZl/FPHTYpmAq630CA1QRYuqyPXF+XnoTei5rBC19Wwlx+CmoEO/0 uPgvkftVGM1oUbTnptAo8Vbbe+JlE8PfAf7yAZ3Q7DpRcJ6Tctm3zV0UBXUKaeATh657 u8JQPgAoZBe+ryjNcY/xWU1bYtdmEf/nx02hjyq5DFB4qS6wchfjdFwGn2rxnVJjYSHa bn9o8Q6eCPvWMFrLfloo5rqZ1fNXYRRD9vNcHVzvJuX8uvB0BVIZikV3E+M9FDlOzXXI ld8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aoBbgWW+; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u26si156770edb.578.2021.01.19.15.38.25; Tue, 19 Jan 2021 15:38:25 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=aoBbgWW+; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729360AbhASXhL (ORCPT + 2 others); Tue, 19 Jan 2021 18:37:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2395124AbhASOGz (ORCPT ); Tue, 19 Jan 2021 09:06:55 -0500 Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE217C0613ED for ; Tue, 19 Jan 2021 06:05:45 -0800 (PST) Received: by mail-qt1-x82e.google.com with SMTP id z6so6636032qtn.0 for ; Tue, 19 Jan 2021 06:05:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K6Vqc+23VASYsYGFP+qO4Y3EIsmnhbqAWUtWDpTUg5U=; b=aoBbgWW+1jyixAOrGCq8jS4cB5lnojmj9EUiBVefvGrNFKnsPv53QoXk63zgdS5qAe URGwCTa/dAK9xSDwGdna0fivCB2IS90ZvxfHS7qrFvU9lEHFPEkGjmntFbRZFgcrpWRY wGvFC5Be6CbYFw4gXVuH/9GSwygjS5aue/fjWzYZvWkU3R8srXVhFQKB+WJzi10oMuWf Mbul/Ca1tPg18oGr4oI+TQbHP3JMuRdK1v5P28+qmmfEnSkrvQNutwdpiRagj010gu7i SEj44zseOJcDBI+rL4Y9uRs8rROCF7iFLrGNwS6Vs/jacPsfadVMjuMKcG90sSzg9WBY QihQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=K6Vqc+23VASYsYGFP+qO4Y3EIsmnhbqAWUtWDpTUg5U=; b=phVhNrIAXw1RGz/HV7y3YUOev+PHkAzv1YqqB8BY5F0YKmoilGMhuvo3LLdqZ8wvIg F/dDBNuWAHlpdDSJN4JJ42d2QplplT8Po5JqZ9XZvrt7Mr8kqCfyUWsghPwrE0wJxf17 VsxONktWam1kpe59/TmLeAtB2JMXsWW9Yagq8g48MjQFvogTknmTQOOHyT1GboH4cFFf zazfusMZrKH75n6RS2RseE2vk845AnbMCRXvd8myze0xFIk3jbB+KOkeeRa/NexA3Ya3 Nb8c/Z79BEdHvPf4gvmeoVRKTy7kStll2StapVk1cAVtU4bRyfLgrKkswkPliKQdAsoA zbxA== X-Gm-Message-State: AOAM532O3uMcbMcTCZNayUCVL5IluOfwsIez0+CMtAhuKWfNgi3vo6Lm pKr3R40R2alTCISvH/GJBVuaSw== X-Received: by 2002:ac8:5cd0:: with SMTP id s16mr4195712qta.309.1611065144384; Tue, 19 Jan 2021 06:05:44 -0800 (PST) Received: from pop-os.fios-router.home (pool-71-163-245-5.washdc.fios.verizon.net. [71.163.245.5]) by smtp.googlemail.com with ESMTPSA id f134sm12910308qke.85.2021.01.19.06.05.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jan 2021 06:05:43 -0800 (PST) From: Thara Gopinath To: rui.zhang@intel.com, daniel.lezcano@linaro.org, kvalo@codeaurora.org, davem@davemloft.net, kuba@kernel.org, luciano.coelho@intel.com Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-pm@vger.kernel.org, amitk@kernel.org, nathan.errera@intel.com Subject: [PATCH 1/2] net: wireless: intel: iwlwifi: mvm: tt: Replace thermal_notify_framework Date: Tue, 19 Jan 2021 09:05:40 -0500 Message-Id: <20210119140541.2453490-2-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210119140541.2453490-1-thara.gopinath@linaro.org> References: <20210119140541.2453490-1-thara.gopinath@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org thermal_notify_framework just updates for a single trip point where as thermal_zone_device_update does other bookkeeping like updating the temperature of the thermal zone and setting the next trip point etc. Replace thermal_notify_framework with thermal_zone_device_update as the later is more thorough. Signed-off-by: Thara Gopinath --- drivers/net/wireless/intel/iwlwifi/mvm/tt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 Acked-by: Kalle Valo diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/tt.c b/drivers/net/wireless/intel/iwlwifi/mvm/tt.c index 507625f96dd7..a0c6be03903a 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/tt.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/tt.c @@ -146,8 +146,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_TRIP_VIOLATED); } #endif /* CONFIG_THERMAL */ }