linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ivo van Doorn <ivdoorn@gmail.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: "John W. Linville" <linville@tuxdriver.com>,
	linux-wireless@vger.kernel.org
Subject: Re: [PATCH 0/28] rt2x00:
Date: Wed, 28 Feb 2007 18:07:28 +0100	[thread overview]
Message-ID: <200702281807.28551.IvDoorn@gmail.com> (raw)
In-Reply-To: <1172681828.5015.47.camel@johannes.berg>

On Wednesday 28 February 2007 17:57, Johannes Berg wrote:
> On Wed, 2007-02-28 at 15:07 +0100, Ivo van Doorn wrote:
> 
> > Here is the patch series to bring rt2x00 up to date.
> 
> Unrelated to this particular patchset, but we've long said how rt*
> drivers are a source of huge amounts of duplicate code.
> 
> I just diffed rt2400pci and rt2500pci just for example and noticed that
> the hardware is basically identical except for the added features. After
> cutting out spurious changes the diff is about 150 lines so it should be
> really simple to support the hw in one driver. It'd be great if you
> could do this, the code duplication currently in there is pretty awkward
> if we change anything externally and need to update 5 almost-identical
> drivers.

That is where rt2x00lib is coming in. This is only a recent addition to rt2x00
so not everything has moved in correctly. So you can expect more to be
merged into rt2x00lib.

Merging rt2400pci and rt2500pci doesn't sound like a good idea to me,
once rt2x00lib has been optimally used most duplicate code is out,
and merging those 2 could make the implementation of hardware encryption
for rt2500pci harder. rt2400pci is the only Ralink chip that is not capable of
hardware encryption.

In the early days of rt2x00 where work on rewriting the drivers has just begun,
those 2 drivers were indeed merged but the checks for which chipset was
currently used became more and more complex. The RF chipsets are
not unique between RT chips, which made checking for which register
should be set and with what value became larger and larger. In the end
it appeared simpler to split the 2 apart. Especially when considering
that more use should be made of the hardware encryption capabilities
of rt2500.

Ivo

  reply	other threads:[~2007-02-28 17:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-28 14:07 [PATCH 0/28] rt2x00: Ivo van Doorn
2007-02-28 16:57 ` Johannes Berg
2007-02-28 17:07   ` Ivo van Doorn [this message]
2007-02-28 17:16     ` Johannes Berg
2007-02-28 18:24       ` Ivo van Doorn
2007-02-28 18:30         ` Johannes Berg

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=200702281807.28551.IvDoorn@gmail.com \
    --to=ivdoorn@gmail.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.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).