linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kalle Valo <kvalo@codeaurora.org>
To: Grant Grundler <grundler@google.com>
Cc: Johannes Berg <johannes@sipsolutions.net>,
	David Lin <dlin@marvell.com>,
	"linux-wireless\@vger.kernel.org"
	<linux-wireless@vger.kernel.org>,
	Chor Teck Law <ctlaw@marvell.com>, Pete Hsieh <peteh@marvell.com>
Subject: Re: [PATCH v7] Add new mac80211 driver mwlwifi.
Date: Mon, 14 Dec 2015 13:47:57 +0200	[thread overview]
Message-ID: <8737v545g2.fsf@kamboji.qca.qualcomm.com> (raw)
In-Reply-To: <CANEJEGv7ENTJu4YHz1x2_ve2M6-3Nn8X-0aC2hA3o1mUs3tQ1g@mail.gmail.com> (Grant Grundler's message of "Fri, 11 Dec 2015 16:46:28 -0800")

Grant Grundler <grundler@google.com> writes:

> Sorry for the late response...just one point below
>
> On Fri, Nov 20, 2015 at 3:22 AM, Johannes Berg <johannes@sipsolutions.net>
> wrote:
>
>     > +#define MWL_DRV_NAME     KBUILD_MODNAME
>     > +#define MWL_DRV_VERSION       "10.3.0.14"
>
>     versions like that are generally fairly useless since you don't update
>     them for every commit ...
>
>
> When backporting to other kernel trees, it's extremely handy to have a
> DRV_VERSION.
>
> Checking if a particular kernel build has the expected driver version trivial.
>  "mod_info" dumps the driver version for modules (which this will usually be
> too).
>
> And yes, it won't get updated for every commit only because other version
> control might encapsulate those changes. Not every distro makes their build
> versioning accessible to outsiders. So it's still helpful even if not perfect.
>
> Marvell can update this every time they resync with their own internal
> versions.

But the problem is that you cannot really trust this driver version
string. I found a perfect example from another Marvell driver:

5e6e3a92b9a4c drivers/net/wireless/mwifiex/main.c (Bing Zhao 2011-03-21 18:00:50 -0700   25) #define VERSION   "1.0"

So nobody has updated that version string since the initial commit from
2011 and that driver has had over 900 non-merge commits after that.
Because of bad cases like this I think having a driver specific versions
in in-tree drivers are just noise and unnecessary extra work. When
porting a driver to another tree git commit ids, release tag names or
git-describe output are much better ways to identify the driver version.

-- 
Kalle Valo

  parent reply	other threads:[~2015-12-14 11:48 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-12  3:51 [PATCH v7] Add new mac80211 driver mwlwifi David Lin
2015-11-12 19:47 ` Jes Sorensen
2015-11-26  8:34   ` David Lin
2015-11-20 11:22 ` Johannes Berg
2015-11-26  8:27   ` David Lin
2015-11-26  9:40     ` Johannes Berg
2015-11-27  2:00       ` David Lin
2015-11-27  8:27         ` Johannes Berg
2015-12-10 14:57         ` Kalle Valo
2015-12-15  7:54           ` David Lin
2015-12-10 14:06     ` Kalle Valo
     [not found]   ` <CANEJEGv7ENTJu4YHz1x2_ve2M6-3Nn8X-0aC2hA3o1mUs3tQ1g@mail.gmail.com>
2015-12-12  0:47     ` Grant Grundler
2015-12-14 11:47     ` Kalle Valo [this message]
2015-12-10 14:03 ` Kalle Valo
2015-12-10 14:39 ` Kalle Valo
2015-12-15  7:55   ` David Lin
2015-12-14 21:32 ` Kan Yan
2015-12-15  5:47   ` David Lin
2015-12-15  7:40 ` Emmanuel Grumbach
2015-12-15  7:53   ` David Lin
2016-03-16 23:24 ` Julian Calaby
2016-03-17  1:23   ` David Lin
2016-03-17  1:32     ` Julian Calaby
2016-03-17  2:10       ` David Lin
2016-04-03 12:05         ` Bjørn Mork
2016-04-15 12:40           ` Kalle Valo

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=8737v545g2.fsf@kamboji.qca.qualcomm.com \
    --to=kvalo@codeaurora.org \
    --cc=ctlaw@marvell.com \
    --cc=dlin@marvell.com \
    --cc=grundler@google.com \
    --cc=johannes@sipsolutions.net \
    --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).