Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp848052ybv; Wed, 5 Feb 2020 15:54:23 -0800 (PST) X-Google-Smtp-Source: APXvYqxu3qOEMxZ8iuc2kgSZmdCDvsF1gqSpGcz5O55xhR4YdMgM1I/GbCqvQt8SP/1lCgEsn6NU X-Received: by 2002:aca:d4c1:: with SMTP id l184mr5066127oig.172.1580946863338; Wed, 05 Feb 2020 15:54:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580946863; cv=none; d=google.com; s=arc-20160816; b=YtYrE9Y7N8XfgU+Jl+k2TEZQWjiU7nq3JYWGZ44caS0dqgsYoExkJWfFDumM3F8xRt mwkdizR68DWZoxTr2CDGkEKzEBLQurTvT9I1XP/X9vU6ibpstxoAAYSPCBcyfq2fXPUq ZhHM5bm7qqg/gQ3QswIahTBNIZi4eE7wrXXQFOdM7CRD3R4ZdAzQWYUcb6Pskz5XVHS7 XT6TBusH9rLv6LayW9yocjUFBm/Q0GhdhMRwqr2EbyCnvHYgEEzMfz/5ginU9zPiD6/p iT6LDcDevfnOGeNUl8vwUnUAa3o+V+Rrkv8QBxq0xuh/JAcHjaQSBE+MeqeUDWBbojJU rsFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=oCsvqI/9z6Vfq7PdVBp7xqC9aYfaOz/5WIMVihzDmI8=; b=Ic5ySCkxBS8hyZJsmSmj+cw32SroOVLL9ZdymlVHqPoy7eMJYlpPIWydUJGg0aS88e +8bs7lf5aTZxXUJ5CHzc/tYaZCCVlnjSCUQM5h8a8htuJmWotsLMaSdyFcWP+SZhY0bX SEpkEjCgorXdvPdFL9e4ywpZ45/DKtBr7AKfH1sKb02yACCMyhwT2OAajNt4o9qovjDq UDVZpvZLtEbBTQZbk/yzxCUlSFxHsAuQ4llMJr7mLvzxz66+2+3aILgfCNZurtnT6TjY kaAaEOAKF7R5rwK6YHx+sFN4IxNmMWdFGbXbi9iYMTtvPMYkckqELMHg/N8gKPiLxi3H Hg9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lzq4ZJub; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a3si873355otk.234.2020.02.05.15.54.01; Wed, 05 Feb 2020 15:54:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lzq4ZJub; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727443AbgBEXxW (ORCPT + 99 others); Wed, 5 Feb 2020 18:53:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:46152 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727170AbgBEXxW (ORCPT ); Wed, 5 Feb 2020 18:53:22 -0500 Received: from localhost.lan (unknown [151.48.147.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A98B720672; Wed, 5 Feb 2020 23:53:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580946801; bh=B8S0cSFMRnPunM7hGtX/UcwnafhXYWO8syCal9DZtok=; h=From:To:Cc:Subject:Date:From; b=lzq4ZJubu6RaCFBk4DiJfqbqp21Hej3HqsZGy1x2b/qM82J2QZ/wQm9h7QclDLEUw 1m6IWQnHymqSnnhkv+5E8CWMeA4ftL28jE2YAiMJOLWZly5pQ+dTxeJQaqOIkaRs/q LizbOna1lXTb6TMoarKlCaU+udHk1AMYOOUu3lQk= From: Lorenzo Bianconi To: nbd@nbd.name Cc: lorenzo.bianconi@redhat.com, linux-wireless@vger.kernel.org Subject: [PATCH 0/3] remove mmio dependency from mcu event code Date: Thu, 6 Feb 2020 00:53:07 +0100 Message-Id: X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Remove mmio dependency from mt76_mcu_rx_event and mt76_mcu_get_response in order to reuse them in usb code and remove duplicated code Lorenzo Bianconi (3): mt76: reuse mt76_mcu in mt76u_mcu mt76: generalize mt76_mcu_rx_event routine mt76: generalize mt76_mcu_get_response routine drivers/net/wireless/mediatek/mt76/mcu.c | 15 ++++--- drivers/net/wireless/mediatek/mt76/mt76.h | 43 ++++++++++--------- .../net/wireless/mediatek/mt76/mt7603/dma.c | 4 +- .../net/wireless/mediatek/mt76/mt7615/mcu.c | 2 +- .../net/wireless/mediatek/mt76/mt76x02_txrx.c | 3 +- .../wireless/mediatek/mt76/mt76x02_usb_mcu.c | 22 ++++++---- drivers/net/wireless/mediatek/mt76/usb.c | 6 ++- 7 files changed, 52 insertions(+), 43 deletions(-) -- 2.21.1