From patchwork Tue Mar 24 12:40:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Kazior X-Patchwork-Id: 6078411 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D711CBF90F for ; Tue, 24 Mar 2015 12:43:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 18033201CE for ; Tue, 24 Mar 2015 12:43:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 38FA02017D for ; Tue, 24 Mar 2015 12:42:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752115AbbCXMm5 (ORCPT ); Tue, 24 Mar 2015 08:42:57 -0400 Received: from mail-lb0-f174.google.com ([209.85.217.174]:34445 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751917AbbCXMm4 (ORCPT ); Tue, 24 Mar 2015 08:42:56 -0400 Received: by lbbsy1 with SMTP id sy1so139924768lbb.1 for ; Tue, 24 Mar 2015 05:42:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id; bh=y3YLpOT/qxydBUzIqRLI8iisB0HxLQgmJ9QiDWfG23Q=; b=320A1ypL3PZTDJxIYxeBAJzsIwXe7Xawy38ehhgPED0mAbtDq0Fiqn9cYpnF4MkNAw RxjMiLMnnCQ5HtALlqvNV993PWZeIKbjad9zCd4IRcifathjWA3OrXEP2fM36rh81+sS v7pjYbkycUUv7Irw071BkjFzEGZ2coNftpONU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=y3YLpOT/qxydBUzIqRLI8iisB0HxLQgmJ9QiDWfG23Q=; b=AbU2nYt6XALyGkwbCiS6fofHQvSV0V+VkPVAc1gsPrfsG27PLIqjRwo45oQSN7f2pr rYHHX9RLBJ6GTpLbFMkgi4BkAMKNaSzlrtEMkD0vdR9SXgX5bFs5DJ2UtjcJQk73aX/H dyVjVcAXpGNYwZsVQxMmmwe54slyUZ6oLoLUpt3phl11gVOqdJ3/pYUY4kxNj/ACZLZi VZEw2R8wnNOH3/DslZ8zfMCB9DwY2S9jhO01FKwV9HBn2YSLcQQS43CQRv5MpO9AdXyB 9OxF/5ilYoR46lkrCCZr7XwyXwDkdyItwyuDfYn5EIwWWncFLkQIlM6/SbFKQNKIymJf X6Ng== X-Gm-Message-State: ALoCoQkbrYD9q9+IPgyK7QgkTKTjdqdCVdQkgAqdM7MZk+O0xAuW2kIwEIDvosCg8JGmv8dy2awa6cPacQLjsJfH9zkVBcXcCiVl6nyVHSgTGWqNKya7iBo+nPNQiuDUx+t+O4ylGFti X-Received: by 10.152.245.41 with SMTP id xl9mr3665362lac.24.1427200975017; Tue, 24 Mar 2015 05:42:55 -0700 (PDT) Received: from bob.homerouter.cpe (apn-77-113-71-242.dynamic.gprs.plus.pl. [77.113.71.242]) by mx.google.com with ESMTPSA id g6sm908043lab.2.2015.03.24.05.42.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Mar 2015 05:42:54 -0700 (PDT) From: Michal Kazior To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Michal Kazior Subject: [PATCH] ath10k: don't call quiet mode if it's not implemented Date: Tue, 24 Mar 2015 12:40:17 +0000 Message-Id: <1427200817-7407-1-git-send-email-michal.kazior@tieto.com> X-Mailer: git-send-email 2.1.4 X-DomainID: tieto.com Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP qca6174 and wmi-tlv doesn't have quiet mode implemented. Don't even attempt to call it. This fixes a warning when bringing first interface up: failed to set quiet mode period 100 duarion 0 enabled 0 ret -95 Fixes: 8515b5c79a54 ("ath10k: configure thermal throttle while powering up") Signed-off-by: Michal Kazior --- Notes: (based on pending branch) drivers/net/wireless/ath/ath10k/thermal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/thermal.c b/drivers/net/wireless/ath/ath10k/thermal.c index 01bae867cae9..1a899d70dc5d 100644 --- a/drivers/net/wireless/ath/ath10k/thermal.c +++ b/drivers/net/wireless/ath/ath10k/thermal.c @@ -140,6 +140,9 @@ void ath10k_thermal_set_throttling(struct ath10k *ar) lockdep_assert_held(&ar->conf_mutex); + if (!ar->wmi.ops->gen_pdev_set_quiet_mode) + return; + if (ar->state != ATH10K_STATE_ON) return;