linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Maxime Bizon <mbizon@freebox.fr>
To: Chor Teck Law <ctlaw@marvell.com>
Cc: Kalle Valo <kvalo@codeaurora.org>, David Lin <dlin@marvell.com>,
	Johannes Berg <johannes@sipsolutions.net>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	Pete Hsieh <peteh@marvell.com>
Subject: Re: [PATCH v5] Add new mac80211 driver mwlwifi.
Date: Wed, 5 Aug 2015 00:49:51 +0200	[thread overview]
Message-ID: <20150804224951.GA31383@sakura.staff.proxad.net> (raw)
In-Reply-To: <db9a0d4afa9b435d8efa380715955bee@SC-EXCH03.marvell.com>


On Tuesday 04 Aug 2015 à 18:11:29 (+0000), Chor Teck Law wrote:

Hi Chor,

> mwl8k was a driver for chips few generations older sponsored by
> Marvell. We did leverage part of driver framework that is still
> applicable. However, for the current development, the firmware API
> specs, chip capabilities and bandwidth requirements have changed in
> order to handle newer technologies and features.

this is a fullmac driver, what differs between them is:
 - how you boot the device / load firmware
 - how you send commands to it
 - datapath


from a quick glance at your new driver

 1) firmware loading works the same way

 2) "hostcmd" are used to communicate with the firmware, of course new
   commands are needed for newer standards, but a common API could be
   used for common basic operations

 3) rx datapath looks the same (look at struct mwl_rx_desc vs mwl8k_rxd_ap)

 4) AMPDU code is copied/pasted from mwl8k driver, even the original
   comments have not been updated:

+  /* Defer calling mwl8k_start_stream so that the current


> No, we are not treating the submission as dumping! We would not have
> responded with effort to meet the requests/feedback if so. We
> appreciate and have taken the feedbacks seriously to complete to
> patch6. In fact the submission was requested by some community
> members who has seen the benefit of its evolvement on openwrt
> github, and they would like to see the new driver consolidated into
> the wireless mainline.

judging from the mwl8k experience (hello, unhappy customer here),
mainline is indeed the goal, but after that, nothing.

driver & firmware left at version 1, unless customer (me in that case)
made an explicit bug report or feature request.

> Due to hardware, firmware, specs and requirements change over time,
> it is not feasible for us to revisit generations old products or
> making sure new changes are backward compatible with it. (If
> desired, we welcome the community to take any new useful changes
> that are independent of chip rev to other similar branches.)

no hardware specs, no firmware source or docs, community can only make
blind guesses.

also see my answer beyond.

> Lastly, I do not think we are creating a precedence with different
> generation of drivers supporting different families of chips.

these are firmware based chipsets, not hard-wired. having a common
driver for two completely different set of chipsets is indeed stupid,
and makes it unreadable.

but from my POV, your pattern is: build new chipset, obsolete previous
chipset, fork current firmware, make uncompatible changes to both
firmware & host driver to accomodate new chipset peculiarities.

and eventually, if a customer requests a mainline linux driver, then
write one... this is what I'd call "dumping"

-- 
Maxime

  reply	other threads:[~2015-08-04 22:49 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-03  6:10 [PATCH v5] Add new mac80211 driver mwlwifi David Lin
2015-07-03  9:51 ` Johannes Berg
2015-07-08  0:14   ` David Lin
2015-07-04 10:40 ` Jonas Gorski
2015-07-05 10:33   ` Johannes Berg
2015-07-05 10:57     ` Jonas Gorski
2015-07-07  1:47   ` David Lin
2015-07-07  9:38     ` Jonas Gorski
2015-07-07  9:50       ` Imre Kaloz
2015-07-07 13:48         ` Chor Teck Law
2015-07-07 14:20           ` Jonas Gorski
2015-07-07 14:35           ` Imre Kaloz
2015-07-07 14:56             ` Chor Teck Law
2015-07-09 15:27 ` Maxime Bizon
2015-08-04 17:02   ` Kalle Valo
2015-08-04 18:11     ` Chor Teck Law
2015-08-04 22:49       ` Maxime Bizon [this message]
2015-09-07 10:37         ` Kalle Valo
2015-08-04 22:09     ` Maxime Bizon
2015-08-05  8:39       ` Chor Teck Law
2015-08-05 14:21         ` Maxime Bizon
2015-08-05 15:29           ` Chor Teck Law
2015-09-07 11:20         ` Kalle Valo
2015-09-11 13:43           ` Chor Teck Law
2015-09-29  9:03             ` Kalle Valo
2015-09-29 10:11               ` Kalle Valo
2015-09-30  2:05                 ` David Lin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150804224951.GA31383@sakura.staff.proxad.net \
    --to=mbizon@freebox.fr \
    --cc=ctlaw@marvell.com \
    --cc=dlin@marvell.com \
    --cc=johannes@sipsolutions.net \
    --cc=kvalo@codeaurora.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=peteh@marvell.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).