From patchwork Fri Jan 22 02:34:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thara Gopinath X-Patchwork-Id: 369071 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EDA51C433E0 for ; Fri, 22 Jan 2021 02:36:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C3B782310A for ; Fri, 22 Jan 2021 02:36:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726703AbhAVCfq (ORCPT ); Thu, 21 Jan 2021 21:35:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726686AbhAVCfa (ORCPT ); Thu, 21 Jan 2021 21:35:30 -0500 Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AB97C06178B for ; Thu, 21 Jan 2021 18:34:10 -0800 (PST) Received: by mail-qt1-x831.google.com with SMTP id c1so3198325qtc.1 for ; Thu, 21 Jan 2021 18:34:10 -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=9OyF+mVHzBowT5jqUi6kq26BNOfu/Lyfr/uYmIxESS8=; b=e7RWnXHOcw/3PQCB00HU7sxPvSclJhxoYRgoKz0d/dKiS6EqYh7TNYR1er4uolrHLL RuqUzCaVpJIW6S9aUgQIHyKHQbf0BQrFavk7waFp400P62cbph6gg/o+VN5k5v/jN4sj efXykNCYVKgxzCISlAOs7H1IQIUX0Ac1gBA8Tj8r7UrleYu49wtISkTUR9x+0OBrU+QG kSpDS5uzE5qpaRq/rujVXvIPdPEhCTHd/8TDd3H6IWPluP9sSvQxA2XZCth5Oow6Bp09 YAfRE27YhPtgtejxpYdpNgtyc/b5RJQOprFavaYHL2T/MAEHRNkqJVO3AdU26zQCc9p/ tYKg== 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=9OyF+mVHzBowT5jqUi6kq26BNOfu/Lyfr/uYmIxESS8=; b=E+jv/FWKVeXZlVS7Oz41hGS7wV9iQ/ZV9+C48D8zQuRYzfO1lSLInwO29HxLajUrKb FXAjcnnjzbFNZNRFfcT+mUwVGuo/TveXWImjlya8RZnTxdXAVwoEyehizT2HfkVuMmTh 3KjznZ0JSRvVKqui1ykZpoFGxIiS2kFg1S+si+GZR+2BTYn5+3IDN+ctRr938jdkgpDS NwHuB2R9gWUoDTVqH7DsJoZtKLfJn0jb/atFx/X8B0XjemeCnBieKNVAJl1lL1pt9Zi2 fps9zE9T/jbpACu88MZH/5bgFRuvxL0ykkiNOtESgnQ/P7KHxANWW1x5IsaUBomRCAna OJig== X-Gm-Message-State: AOAM532ihN+nDE0wwRPJ49EBgVzAsTpWCPgAP3RdPRa/xtmhYlpZJKm6 kHQMILUC1/Q9+VmsHsGZ5H1DxQ== X-Google-Smtp-Source: ABdhPJzMn5NmRbsF8RVmskQp97PXferlsocWp8+O6q4zI4VfwkzFgT8J6fDfp+xrFGVjx1n2vHR0eA== X-Received: by 2002:a05:622a:1d4:: with SMTP id t20mr2479725qtw.281.1611282849348; Thu, 21 Jan 2021 18:34:09 -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 m13sm4846025qtu.93.2021.01.21.18.34.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Jan 2021 18:34:08 -0800 (PST) From: Thara Gopinath To: rui.zhang@intel.com, daniel.lezcano@linaro.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 v2 1/3] iwlwifi: mvm: tt: Replace thermal_notify_framework Date: Thu, 21 Jan 2021 21:34:04 -0500 Message-Id: <20210122023406.3500424-2-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210122023406.3500424-1-thara.gopinath@linaro.org> References: <20210122023406.3500424-1-thara.gopinath@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@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. Acked-by: Kalle Valo Signed-off-by: Thara Gopinath --- v1->v2: - Removed net: wireless: intel: from subject header of Patch 1 in the series as per Kalle Valo and added his Acked-by. drivers/net/wireless/intel/iwlwifi/mvm/tt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ }