From patchwork Sat Feb 1 15:33:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryder Lee X-Patchwork-Id: 216540 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=-3.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MIME_BASE64_TEXT, SPF_HELO_NONE, SPF_PASS, UNPARSEABLE_RELAY, USER_AGENT_GIT autolearn=no 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 11635C33CB3 for ; Sat, 1 Feb 2020 15:34:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D3C032070C for ; Sat, 1 Feb 2020 15:34:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="iFkDx5Dg" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727091AbgBAPeI (ORCPT ); Sat, 1 Feb 2020 10:34:08 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:3149 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726670AbgBAPeH (ORCPT ); Sat, 1 Feb 2020 10:34:07 -0500 X-UUID: 35847b1e36074bceb0eae052a9527976-20200201 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=0csIRJLeMgqFDBc0WpZNMpF4/Ash9iE+C/byhNFJPjE=; b=iFkDx5DgjBljW0BIGEZfv2mbWNjlV+Pq4tE7BbbZAmirLtKLtVrdIla9SqBjGhjoQC6AJuRpi3aHf86iJU3+MDwwnsmw1vbaUIEhmpP7N0OSe4tHTzZqzbl1SkYXHY22qAe3wMT8ZVBFe4tIh1A9hlspvkLm8ZLzQ2ldLOqylEA=; X-UUID: 35847b1e36074bceb0eae052a9527976-20200201 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1362623669; Sat, 01 Feb 2020 23:33:57 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sat, 1 Feb 2020 23:33:56 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Sat, 1 Feb 2020 23:31:31 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , Roy Luo , Sean Wang , Josh Boyer , , , Ryder Lee Subject: [PATCH v2 0/7] switch mt7615 MCU command format from v1 to v2 Date: Sat, 1 Feb 2020 23:33:45 +0800 Message-ID: X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi, This updates command flow to adapt newer firmware version. Changes since v2: - check the return value from __mt76_mcu_send_msg. - rename dev->fw_ver to '2.0'. - simplify is_v1 expression. - revise commit messages. Ryder Lee (7): mt76: mt7615: simplify mcu_set_bmc flow mt76: mt7615: simplify mcu_set_sta flow mt76: mt7615: add a helper to encapsulate sta_rec operation mt76: mt7615: add starec operating flow for firmware v2 mt76: mt7615: use new tag sta_rec_wtbl mt76: mt7615: switch mt7615_mcu_set_tx_ba to v2 format mt76: mt7615: switch mt7615_mcu_set_rx_ba to v2 format .../net/wireless/mediatek/mt76/mt7615/main.c | 12 +- .../net/wireless/mediatek/mt76/mt7615/mcu.c | 577 +++++++++--------- .../net/wireless/mediatek/mt76/mt7615/mcu.h | 8 +- .../wireless/mediatek/mt76/mt7615/mt7615.h | 20 +- 4 files changed, 310 insertions(+), 307 deletions(-) -- 2.18.0