From patchwork Mon Apr 16 23:05:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10344019 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 998DF601C2 for ; Mon, 16 Apr 2018 23:06:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A03E2893C for ; Mon, 16 Apr 2018 23:06:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7EADB28947; Mon, 16 Apr 2018 23:06:15 +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=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 198812893C for ; Mon, 16 Apr 2018 23:06:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752060AbeDPXGN (ORCPT ); Mon, 16 Apr 2018 19:06:13 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:38216 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751172AbeDPXGM (ORCPT ); Mon, 16 Apr 2018 19:06:12 -0400 Received: by mail-wr0-f194.google.com with SMTP id h3so17729113wrh.5 for ; Mon, 16 Apr 2018 16:06:12 -0700 (PDT) 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; bh=GuX4poKE0vU4S4GYJ1F8HESuD84i1OhnELk0Pp116nU=; b=giy7s3Bi3i/9f/CgnBB2hwcDcZei6jRCJhY3RzeZp8L+rttwDej1Shmf3OiCxkYTH1 /1klktOHXycrYSJDW5T7fUiCyCeAvQB584UR2ZKyRFJNGZrjBNr7McuetxNaRi/Aidkc 6ifryrXvGr5iNgZEMNh5kphMCmpCj1XlcQ5td8RkwNLjxnrpdiVUVfqS4XoHlniPAle4 soBZpK25g1BxSO53glsfRnrkIIbCavVzH7/iCPejBbI9AYO6OoFkTTBmOY1xidLM6jtZ fgybRREcQDGOOX1gG0y0YK+hgMMPTTn6UrMYSYl8+OFP9dqIzW+Ptkv2f08FnQoEcam/ WrLw== X-Gm-Message-State: ALQs6tD+iYAvwLmfqCgscq2NCzfGC/yzzTNbA81m1r4kaDAWBaCLg4qO sTI7sDBL+T3ka+SWf5TYMntqA/QJzM4= X-Google-Smtp-Source: AIpwx48//T25H3XEPDAp7VGdCZmjgLHHwcXBhAlSkZRaPRD8uYQJSGc2tu+rPKBov7WqsGva96Jg6Q== X-Received: by 10.223.136.232 with SMTP id g37mr5721045wrg.62.1523919971698; Mon, 16 Apr 2018 16:06:11 -0700 (PDT) Received: from localhost.localdomain ([151.66.73.16]) by smtp.gmail.com with ESMTPSA id 4sm4880676wrz.58.2018.04.16.16.06.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Apr 2018 16:06:11 -0700 (PDT) From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org Subject: [PATCH] mt76x2: fix TXD_INFO bitmask definition Date: Tue, 17 Apr 2018 01:05:59 +0200 Message-Id: <20180416230559.11268-1-lorenzo.bianconi@redhat.com> X-Mailer: git-send-email 2.16.3 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Despite this issue is not harmful since it is not actually used in mt76 driver, fix DMA txinfo bitmask definition Fixes: 7bc04215a66b ('mt76: add driver code for MT76x2e') Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt76x2_dma.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt76x2_dma.h b/drivers/net/wireless/mediatek/mt76/mt76x2_dma.h index 47f79d83fcb4..e9d426bbf91a 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x2_dma.h +++ b/drivers/net/wireless/mediatek/mt76/mt76x2_dma.h @@ -19,7 +19,7 @@ #include "dma.h" -#define MT_TXD_INFO_LEN GENMASK(13, 0) +#define MT_TXD_INFO_LEN GENMASK(15, 0) #define MT_TXD_INFO_NEXT_VLD BIT(16) #define MT_TXD_INFO_TX_BURST BIT(17) #define MT_TXD_INFO_80211 BIT(19) @@ -27,9 +27,8 @@ #define MT_TXD_INFO_CSO BIT(21) #define MT_TXD_INFO_WIV BIT(24) #define MT_TXD_INFO_QSEL GENMASK(26, 25) -#define MT_TXD_INFO_TCO BIT(29) -#define MT_TXD_INFO_UCO BIT(30) -#define MT_TXD_INFO_ICO BIT(31) +#define MT_TXD_INFO_DPORT GENMASK(29, 27) +#define MT_TXD_INFO_TYPE GENMASK(31, 30) #define MT_RX_FCE_INFO_LEN GENMASK(13, 0) #define MT_RX_FCE_INFO_SELF_GEN BIT(15)