From patchwork Mon Feb 4 16:51:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10796091 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 42274922 for ; Mon, 4 Feb 2019 16:51:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 30B3B2BDE0 for ; Mon, 4 Feb 2019 16:51:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2E8762BDF0; Mon, 4 Feb 2019 16:51:48 +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 A78C42BDE6 for ; Mon, 4 Feb 2019 16:51:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729645AbfBDQvq (ORCPT ); Mon, 4 Feb 2019 11:51:46 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:43254 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729548AbfBDQvq (ORCPT ); Mon, 4 Feb 2019 11:51:46 -0500 Received: by mail-wr1-f68.google.com with SMTP id r2so546102wrv.10 for ; Mon, 04 Feb 2019 08:51:45 -0800 (PST) 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=Rac5BiiTwJ+tNdlljH1B7KcgeLquYQfP1nYDEDKDV54=; b=ihZcRoyGW1rjDt2KUppANsbo/sL9cZIgPbzeOvTOWm9Qn/bXo1FB3Fl8SI/I6oSmwb OWnZCx118jkR+kF86vKvKN5a7W9dQ+JqwkAXkbzJKDxxMPeJy1DK+udaclmWM9srNJBd cJOyxQib4itsh1qMAAzko0zWashp3zy7ObPZUAdalowAQWVUdRlXFrEE7m/fVly1FGBZ vXA1+7siARMMymtDKf3Bz9WLXNVQrUZdBbjFHEL+twJKcSukokE7YUkDBBfXctpCcdNX txx1Z+tJ8TgQ7mnT3gaYT5jRYPZNs0xi44zJJUBOhD+91tAetINi8RAo6ZpKeSeYjMq+ X0tg== X-Gm-Message-State: AHQUAuYMb0TS6kKO2UeZh3ouEAtg0AI4XOt2TaAZMEazwslq6rPdRZrk N/VktEzwTkGC7a5J8NKCR3LI/ldahv4= X-Google-Smtp-Source: AHgI3IbayzCsG5EaGoSZeXzAP8WsIKncQoJ7+H0ILp2jLPJ2yXdtFvZ7e4rtyIveurZ4LX3TLviaEA== X-Received: by 2002:adf:e8d2:: with SMTP id k18mr254084wrn.262.1549299105044; Mon, 04 Feb 2019 08:51:45 -0800 (PST) Received: from localhost.localdomain.com (nat-pool-mxp-t.redhat.com. [149.6.153.186]) by smtp.gmail.com with ESMTPSA id r22sm11233707wmh.2.2019.02.04.08.51.43 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 04 Feb 2019 08:51:44 -0800 (PST) From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org, sgruszka@redhat.com Subject: [PATCH 0/3] move mcu shared code in mt76-core Date: Mon, 4 Feb 2019 17:51:26 +0100 Message-Id: X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 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 Move mcu shared routines in mt76-core module in order to reuse them adding support for mt7603 driver Lorenzo Bianconi (3): mt76: move mt76_mcu_msg_alloc in mt76-core mt76: move mt76_mcu_get_response in mt76-core mt76: move mt76_mcu_rx_event in mt76-core drivers/net/wireless/mediatek/mt76/Makefile | 3 +- drivers/net/wireless/mediatek/mt76/mcu.c | 60 +++++++++++++++++++ drivers/net/wireless/mediatek/mt76/mt76.h | 7 +++ .../net/wireless/mediatek/mt76/mt76x02_mcu.c | 29 +-------- .../net/wireless/mediatek/mt76/mt76x02_mcu.h | 6 ++ .../net/wireless/mediatek/mt76/mt76x02_txrx.c | 3 +- .../wireless/mediatek/mt76/mt76x02_usb_mcu.c | 17 +----- 7 files changed, 78 insertions(+), 47 deletions(-) create mode 100644 drivers/net/wireless/mediatek/mt76/mcu.c