Return-path: Received: from mail-wm0-f65.google.com ([74.125.82.65]:40729 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728409AbeGTNGZ (ORCPT ); Fri, 20 Jul 2018 09:06:25 -0400 Received: by mail-wm0-f65.google.com with SMTP id z13-v6so9593118wma.5 for ; Fri, 20 Jul 2018 05:18:26 -0700 (PDT) Date: Fri, 20 Jul 2018 14:18:22 +0200 From: Lorenzo Bianconi To: Stanislaw Gruszka Cc: Hans Ulli Kroll , linux-wireless@vger.kernel.org, Felix Fietkau , Jakub Kicinski , Michal Schmidt , linux-mediatek@lists.infradead.org Subject: Re: [PATCH 00/11] Add mt76x0 driver Message-ID: <20180720121821.GB26455@localhost.localdomain> (sfid-20180720_141832_581255_2D979861) References: <1530771142-4118-1-git-send-email-sgruszka@redhat.com> <20180705153216.GE17524@localhost.localdomain> <20180720103032.GA1791@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20180720103032.GA1791@redhat.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: > On Sat, Jul 07, 2018 at 10:38:27AM +0200, Hans Ulli Kroll wrote: > > > > My integration efforts can be traced here: > > > > https://github.com/sgruszka/wireless-drivers-next/commits/mt76x0-draft > > > > > > > > > > I just had a brief review of the code and I compiled the driver since at > > > the moment I had no adapter for that chipset. > > > As a remainder for future improvements/integration most of the code in > > > dma.c, usb.c (except probe/disconnect functions) and tx.c can use the related > > > routines in the mt76-usb layer (we need to fill function pointer for chipset > > > related stuff if there are differences with mt76x2u, not looked yet). > > > Moreover mcu code can use utility routines in usb-mcu.c > > > I have not looked at mt76x2 common code yet. > > > > > > Regards, > > > Lorenzo > > > > > > > It is also possible to reuse > > struct mt76x2_txwi > > struct mt76x2_rxwi > > > > They have the same memory layout for both mt76x0u and mt76x2u chipsets. > > > > Lorenzo can you move them up to > > mt76.h > > and rename them to > > struct mt76_txwi > > struct mt76_rxwi > > > > And we can also do this for > > struct mt76x2_vif > > For the record. I unified bunch of mac80211 callbacks and mac/wcid functions > and structures (including structures pointed above) into new mt76xx_lib > module. I also rebased the changes on top of latest wireless-drivers-next > master and mt76x2u patches in new branch mt76x0-draft-v2: > https://github.com/sgruszka/wireless-drivers-next/commits/mt76x0-draft-v2 > Sorry Hans, I forgot to reply to your email. I have already seen Stanislaw's repo and I agree he can apply his patchset on top of mt76x2u one as soon as it is merged in wireless-driver-next repo. Moreover Stanislaw I started working on unifying mt76x2u/mt76x0 dma/usb code, I have not sent you the patchset since I am waiting for the adapter. If you want I can send you the code as soon as it is completed (just compiled, not tested) Regards, Lorenzo > Regards > Stanislaw