From patchwork Wed Nov 7 18:56:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 10672905 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1A96E13A4 for ; Wed, 7 Nov 2018 18:57:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0913A2CD8C for ; Wed, 7 Nov 2018 18:57:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EEA192CDBD; Wed, 7 Nov 2018 18:57:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 82BFE2CD8C for ; Wed, 7 Nov 2018 18:57:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=fuj2gmPByKPP/+l+YN8NFN+YXxm1SuHoUTA5wGuGLeE=; b=VVFvzmx5f/5bH4 akiZDb3TTY6KuXelzArDUR1dhZ7xqmTXX45g8QIqSj980D6IMBMfB9X3xwXSDIVXPnD+WGSvD27Bz cg/c+M1PetKo/8/i91W7M/DlGX/AkySIuhXz+NoFqFfese+T+Id5hq1XPo0haB5WoOkgJ4GQZv7Gu tUjpvET/jxH0qneNFUgGAbVZNEUjkKOhPLy3qjjOMOwJs8cFpjYFzTenpOFM+nsXSKGLVtZCimHUu nGRQw2ATbVBvcvafiD4/qhyTeDi/KKJxKtb4KGpcGHlr6TdII+ptT3ir20eplWsWYBsU2DvHLUIVy JRDF93ca115klbp7AK+g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKT0o-0002L2-0K; Wed, 07 Nov 2018 18:57:10 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gKT0k-0002Jf-Db for ath10k@lists.infradead.org; Wed, 07 Nov 2018 18:57:08 +0000 Received: by mail-pf1-x443.google.com with SMTP id n11-v6so8088781pfb.6 for ; Wed, 07 Nov 2018 10:56:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=pbwaPeUEJoEdr85WXuC4ND2vfZK37raJMfYBIrYR4BQ=; b=KDBtKGb+jD4/PcDjay8HX5M0LqdZMfbswWwiuhBML9fD2ce6NxFY6a1VwgljANls3d ebucecw2bL7NdaRpeMHMkM3+FY0JZa1b6oEkmhAh0J4DIn6493R/Jf1rpE4u1obtLlWr V8g1bEOdJvR7Ix5e6IeltlQHH2uKS9BrpNKw4= 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:mime-version :content-transfer-encoding; bh=pbwaPeUEJoEdr85WXuC4ND2vfZK37raJMfYBIrYR4BQ=; b=RMOGSqr7GLiV56hY14Rvee/62jQPUrK4FvhLv1lbeN1TOq+gT9ncYmtw0ldofqAS0T sdLO6GD+6yrh6/fM2AFD2fkQHEh3OXhBZoWRlCSVW7fCNWX6dffnlFC3jGDtNqD4wApq NUQ64ZcoS1dkcQw1rZ/7Eapjzx/rY0zyF92QmdS4IEYn94sM05jO+MQ5YlVPE39x61BM Qr+WLuyLfI9k97ghpHnj3FqbT8fij8+p/NyobyfbZunLXORPddSjI0z4033AR//gYkSL KDxKaI547UGnXSD42G9AJ4LmAvQ4VFHZmduTroz1KFaIVizfk0UKGVg7IEmkeOFqoaIO La6A== X-Gm-Message-State: AGRZ1gLhGM1M1MCB6jRaUBd1W1OBKqSzozFPulEX7qChOEgJhAftTJki ViBn3BFrrnzvfJy4DggNSobl9+TTMyQ= X-Google-Smtp-Source: AJdET5dzYB0oKvoN7+mzEmdSBbZjlsrWsEyihjMuU295A2yre7bbJ6OiKI8oV6gftphRy9EiidfL1w== X-Received: by 2002:a63:4a4a:: with SMTP id j10-v6mr1223210pgl.0.1541617015219; Wed, 07 Nov 2018 10:56:55 -0800 (PST) Received: from smtp.gmail.com ([2620:15c:202:1:299d:6b87:5478:d28a]) by smtp.gmail.com with ESMTPSA id k38sm3149009pgb.33.2018.11.07.10.56.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Nov 2018 10:56:54 -0800 (PST) From: Brian Norris To: ath10k@lists.infradead.org Subject: [PATCH REGRESSION] Revert "ath10k: add quiet mode support for QCA6174/QCA9377" Date: Wed, 7 Nov 2018 10:56:43 -0800 Message-Id: <20181107185643.240346-1-briannorris@chromium.org> X-Mailer: git-send-email 2.19.1.930.g4563a0d9d0-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181107_105706_455352_9419C689 X-CRM114-Status: GOOD ( 12.66 ) X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Govind Singh , Brian Norris , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Yu Wang , Rakesh Pillai Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This reverts commit cfb353c0dc058bc1619cc226d3cbbda1f360bdd3. WCN3990 firmware does not yet implement this feature, and so it crashes like this: fatal error received: err_qdi.c:456:EX:wlan_process:1:WLAN RT:207a:PC=b001b4f0 This feature can be re-implemented with a proper service bitmap or other feature-discovery mechanism in the future. But it should not break working boards. Fixes: cfb353c0dc05 ("ath10k: add quiet mode support for QCA6174/QCA9377") Cc: Yu Wang Cc: Rakesh Pillai Cc: Govind Singh Cc: Signed-off-by: Brian Norris --- drivers/net/wireless/ath/ath10k/wmi-tlv.c | 33 +---------------------- drivers/net/wireless/ath/ath10k/wmi-tlv.h | 16 ----------- 2 files changed, 1 insertion(+), 48 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/wmi-tlv.c b/drivers/net/wireless/ath/ath10k/wmi-tlv.c index ad4114a88170..099e78b5de1f 100644 --- a/drivers/net/wireless/ath/ath10k/wmi-tlv.c +++ b/drivers/net/wireless/ath/ath10k/wmi-tlv.c @@ -3209,37 +3209,6 @@ ath10k_wmi_tlv_op_gen_tdls_peer_update(struct ath10k *ar, return skb; } -static struct sk_buff * -ath10k_wmi_tlv_op_gen_pdev_set_quiet_mode(struct ath10k *ar, u32 period, - u32 duration, u32 next_offset, - u32 enabled) -{ - struct wmi_tlv_set_quiet_cmd *cmd; - struct wmi_tlv *tlv; - struct sk_buff *skb; - - skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); - if (!skb) - return ERR_PTR(-ENOMEM); - - tlv = (void *)skb->data; - tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PDEV_SET_QUIET_CMD); - tlv->len = __cpu_to_le16(sizeof(*cmd)); - cmd = (void *)tlv->value; - - /* vdev_id is not in use, set to 0 */ - cmd->vdev_id = __cpu_to_le32(0); - cmd->period = __cpu_to_le32(period); - cmd->duration = __cpu_to_le32(duration); - cmd->next_start = __cpu_to_le32(next_offset); - cmd->enabled = __cpu_to_le32(enabled); - - ath10k_dbg(ar, ATH10K_DBG_WMI, - "wmi tlv quiet param: period %u duration %u enabled %d\n", - period, duration, enabled); - return skb; -} - static struct sk_buff * ath10k_wmi_tlv_op_gen_wow_enable(struct ath10k *ar) { @@ -4143,7 +4112,7 @@ static const struct wmi_ops wmi_tlv_ops = { .gen_dbglog_cfg = ath10k_wmi_tlv_op_gen_dbglog_cfg, .gen_pktlog_enable = ath10k_wmi_tlv_op_gen_pktlog_enable, .gen_pktlog_disable = ath10k_wmi_tlv_op_gen_pktlog_disable, - .gen_pdev_set_quiet_mode = ath10k_wmi_tlv_op_gen_pdev_set_quiet_mode, + /* .gen_pdev_set_quiet_mode not implemented */ .gen_pdev_get_temperature = ath10k_wmi_tlv_op_gen_pdev_get_temperature, /* .gen_addba_clear_resp not implemented */ /* .gen_addba_send not implemented */ diff --git a/drivers/net/wireless/ath/ath10k/wmi-tlv.h b/drivers/net/wireless/ath/ath10k/wmi-tlv.h index bf8a4320c39c..5db294558ce5 100644 --- a/drivers/net/wireless/ath/ath10k/wmi-tlv.h +++ b/drivers/net/wireless/ath/ath10k/wmi-tlv.h @@ -1,7 +1,6 @@ /* * Copyright (c) 2005-2011 Atheros Communications Inc. * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. - * Copyright (c) 2018, The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -1980,21 +1979,6 @@ struct wmi_tlv_wow_add_del_event_cmd { __le32 event_bitmap; } __packed; -/* Command to set/unset chip in quiet mode */ -struct wmi_tlv_set_quiet_cmd { - __le32 vdev_id; - - /* in TUs */ - __le32 period; - - /* in TUs */ - __le32 duration; - - /* offset in TUs */ - __le32 next_start; - __le32 enabled; -} __packed; - struct wmi_tlv_wow_enable_cmd { __le32 enable; } __packed;