Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4024613rdb; Thu, 14 Sep 2023 09:30:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFeDM2CTmukef5Z2g6BvbcvXqLLUWeI4f+LwLTrDqxhzPh7vjjj0NKNEa1vsP6g+VhdRvHf X-Received: by 2002:a05:6e02:1070:b0:34c:a166:9866 with SMTP id q16-20020a056e02107000b0034ca1669866mr5533383ilj.4.1694709023424; Thu, 14 Sep 2023 09:30:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694709023; cv=none; d=google.com; s=arc-20160816; b=psZJLmuTJpbHPu7PPdwEAxv0tuIo1A9YiwnaWwownQ0BOdQbMXnNrwIX56qzwIfq3M WPagWgT+ZVzkcZkiYUkTKFNJVEpWK12wRcFypJQnWQW1s/ITnmxqD4skykNh9EvyNvR0 D8mUNK2Ldqdd2mEnEWLVhU1l8UQ+jC95da1+XCJR2uVH0za9KXERQ3QbQowdGfApMerR Zz4pS6ASR8B2sQdbyDMaPfVTxocaobIrvrxX7ri1FtUj9BU15oRGzc6qO5+9OtDyDfP8 AdNqKJQMpN+g2IHZasl9iIcb0uz91VTAQBBsBRatoxKseQe2yn6To2TJrJLYWT+247L6 HQhQ== 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=khJbb1v9CxYDR69tTGRoXyJBoHhMmLWlZqVZyoTBExk=; fh=bDt8rkfrhOw7xT5L1LhMirLOPoyJHBTZm0IlN6e2LiA=; b=04dtxJWmARD2Xm+scVGrRWmle5ZHFKg5FE/CWTBy7O6r+gRdpDtqc/SYoL3Zx/wRPR crKevS+wEe6dlke00g2nPA97+JJawQkAy3WQxVCmaF3501gRS5qvsMCxRaibkevEuEno wU/ED8L+n1FT00jFZQRJR4T6nTnDVOOkHwSJr+vUcNcw/0SQ5c1FunxrNl2PcD1Hbak1 Cu/rhYk1ySY2LHY1xxM6C1jMYYKE/vPINAa/ypqIIX781Q5p7nLAxH5VkgRRRk6ukYWn k1vH612BjY5VFhbZJSfxNZEFay0HbKvdXxmENKlGDn2Wu8cz/H//NqUkgTqj6weGk/lk 8ocQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b=fsGkfe3z; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id w62-20020a638241000000b00573fd89e62asi1747703pgd.483.2023.09.14.09.30.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 09:30:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b=fsGkfe3z; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id C964E81DD263; Thu, 14 Sep 2023 09:09:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241439AbjINQJI (ORCPT + 57 others); Thu, 14 Sep 2023 12:09:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241310AbjINQJH (ORCPT ); Thu, 14 Sep 2023 12:09:07 -0400 Received: from forward101c.mail.yandex.net (forward101c.mail.yandex.net [178.154.239.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F90A1BDD for ; Thu, 14 Sep 2023 09:09:03 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-39.myt.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-39.myt.yp-c.yandex.net [IPv6:2a02:6b8:c12:195:0:640:cda7:0]) by forward101c.mail.yandex.net (Yandex) with ESMTP id 4ED1360036; Thu, 14 Sep 2023 19:08:29 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-39.myt.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id S8jreuLDXiE0-8T098tht; Thu, 14 Sep 2023 19:08:28 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1694707708; bh=khJbb1v9CxYDR69tTGRoXyJBoHhMmLWlZqVZyoTBExk=; h=Message-ID:Date:In-Reply-To:Cc:Subject:References:To:From; b=fsGkfe3z0a3k5l897BsdEDzcx9PyMzBmOXDE1SGCg4zWNfWUqdTbPSOgXxM4IGzoZ IlGeXiARYykxq8D9oj11sRVmeatYgHv5laBXcoTvXhuNfxD5BdviWNxw5xwjVCYqfN rnNPEfaTP7SsodPsQhMxynQLDRqSZYl1nbYRap5g= Authentication-Results: mail-nwsmtp-smtp-production-main-39.myt.yp-c.yandex.net; dkim=pass header.i=@yandex.ru From: Dmitry Antipov To: Jeff Johnson Cc: Kalle Valo , linux-wireless@vger.kernel.org, lvc-project@linuxtesting.org, ath10k@lists.infradead.org, Dmitry Antipov Subject: [PATCH] wifi: ath10k: drop HTT_DATA_TX_STATUS_DOWNLOAD_FAIL Date: Thu, 14 Sep 2023 19:07:03 +0300 Message-ID: <20230914160744.155903-1-dmantipov@yandex.ru> X-Mailer: git-send-email 2.41.0 In-Reply-To: <18eac255-720a-488e-882e-b79f098aba65@quicinc.com> References: <18eac255-720a-488e-882e-b79f098aba65@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 14 Sep 2023 09:09:04 -0700 (PDT) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email According to Jeff, 'HTT_DATA_TX_STATUS_DOWNLOAD_FAIL' from 'enum htt_data_tx_status' is never actually used by the firmware code and so may be dropped, with the related adjustment to 'ath10k_htt_rx_tx_compl_ind()'. Suggested-by: Jeff Johnson Signed-off-by: Dmitry Antipov Found by Linux Verification Center (linuxtesting.org) with SVACE. --- drivers/net/wireless/ath/ath10k/htt.h | 3 +-- drivers/net/wireless/ath/ath10k/htt_rx.c | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/htt.h b/drivers/net/wireless/ath/ath10k/htt.h index 7b24297146e7..c80470e8886a 100644 --- a/drivers/net/wireless/ath/ath10k/htt.h +++ b/drivers/net/wireless/ath/ath10k/htt.h @@ -880,8 +880,7 @@ enum htt_data_tx_status { HTT_DATA_TX_STATUS_OK = 0, HTT_DATA_TX_STATUS_DISCARD = 1, HTT_DATA_TX_STATUS_NO_ACK = 2, - HTT_DATA_TX_STATUS_POSTPONE = 3, /* HL only */ - HTT_DATA_TX_STATUS_DOWNLOAD_FAIL = 128 + HTT_DATA_TX_STATUS_POSTPONE = 3 /* HL only */ }; enum htt_data_tx_flags { diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireless/ath/ath10k/htt_rx.c index 438b0caaceb7..b261d6371c0f 100644 --- a/drivers/net/wireless/ath/ath10k/htt_rx.c +++ b/drivers/net/wireless/ath/ath10k/htt_rx.c @@ -2964,7 +2964,6 @@ static void ath10k_htt_rx_tx_compl_ind(struct ath10k *ar, break; case HTT_DATA_TX_STATUS_DISCARD: case HTT_DATA_TX_STATUS_POSTPONE: - case HTT_DATA_TX_STATUS_DOWNLOAD_FAIL: tx_done.status = HTT_TX_COMPL_STATE_DISCARD; break; default: -- 2.41.0