From: Julian Calaby <julian.calaby@gmail.com>
To: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: Ivo van Doorn <ivdoorn@gmail.com>,
John Linville <linville@tuxdriver.com>,
linux-wireless@vger.kernel.org, users@host1.serialmonkey.com,
Alban Browaeys <prahal@yahoo.com>,
Benoit PAPILLAULT <benoit.papillault@free.fr>,
Felix Fietkau <nbd@openwrt.org>,
Luis Correia <luis.f.correia@gmail.com>,
Mattias Nissler <mattias.nissler@gmx.de>,
Mark Asselstine <asselsm@gmail.com>,
Xose Vazquez Perez <xose.vazquez@gmail.com>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/2] rt2x00: Implement support for rt2800pci
Date: Sun, 18 Oct 2009 14:08:23 +1100 [thread overview]
Message-ID: <646765f40910172008r1309126fla6897d4289004934@mail.gmail.com> (raw)
In-Reply-To: <200910171654.03344.bzolnier@gmail.com>
On Sun, Oct 18, 2009 at 01:54, Bartlomiej Zolnierkiewicz
<bzolnier@gmail.com> wrote:
> Now to the less happy part..
>
> I also used the opportunity to take a closer look at this driver and
> it seems that it needlessly adds around 2 KLOC to kernel by duplicating
> the common content of rt2800usb.h to rt2800pci.h instead of moving it
> to the shared header (like it is done in the staging crap drivers):
>
> $ wc -l drivers/net/wireless/rt2x00/rt2800usb.h drivers/net/wireless/rt2x00/rt2800pci.h
> 1951 drivers/net/wireless/rt2x00/rt2800usb.h
> 1960 drivers/net/wireless/rt2x00/rt2800pci.h
> 3911 total
>
> $ diff -u drivers/net/wireless/rt2x00/rt2800usb.h drivers/net/wireless/rt2x00/rt2800pci.h|diffstat
> rt2800pci.h | 213 +++++++++++++++++++++++++++++++-----------------------------
> 1 file changed, 111 insertions(+), 102 deletions(-)
>
> Similarly it looks like most of the code between rt2800usb.c and rt2800pci.c
> could also be shared (up to another 2 KLOC saved) by adding abstraction layer
> for accessing chipset registers over different buses (again like it is done
> in staging crap drivers):
>
> $ wc -l drivers/net/wireless/rt2x00/rt2800usb.c drivers/net/wireless/rt2x00/rt2800pci.c
> 3077 drivers/net/wireless/rt2x00/rt2800usb.c
> 3323 drivers/net/wireless/rt2x00/rt2800pci.c
> 6400 total
>
> $ diff -u drivers/net/wireless/rt2x00/rt2800usb.c drivers/net/wireless/rt2x00/rt2800pci.c|diffstat
> rt2800pci.c | 2190 +++++++++++++++++++++++++++++++++---------------------------
> 1 file changed, 1218 insertions(+), 972 deletions(-)
Nobody else has said it, so:
Patches welcome!
Your points with the vendor drivers apply here too - consolidating the
common parts of the drivers will enhance readability, and make
development easier, and mean that, with your help, these might get to
a everyday usable state quicker.
And remember that this is a preliminary release of the code. There's
still a long way to go.
Thanks,
--
Julian Calaby
Email: julian.calaby@gmail.com
.Plan: http://sites.google.com/site/juliancalaby/
next prev parent reply other threads:[~2009-10-18 3:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200910152137.58164.IvDoorn@gmail.com>
[not found] ` <200910152204.16407.IvDoorn@gmail.com>
2009-10-17 14:54 ` Bartlomiej Zolnierkiewicz
2009-10-17 15:08 ` Johannes Berg
2009-10-17 15:19 ` Bartlomiej Zolnierkiewicz
2009-10-17 21:18 ` Bartlomiej Zolnierkiewicz
2009-10-18 9:40 ` Luis Correia
2009-10-18 3:08 ` Julian Calaby [this message]
2009-10-18 16:59 ` Ivo van Doorn
2009-10-19 15:56 ` Bartlomiej Zolnierkiewicz
2009-10-19 17:42 ` Ivo van Doorn
2009-10-20 6:58 ` Holger Schurig
2009-10-20 16:31 ` Ivo van Doorn
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=646765f40910172008r1309126fla6897d4289004934@mail.gmail.com \
--to=julian.calaby@gmail.com \
--cc=asselsm@gmail.com \
--cc=benoit.papillault@free.fr \
--cc=bzolnier@gmail.com \
--cc=ivdoorn@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=luis.f.correia@gmail.com \
--cc=mattias.nissler@gmx.de \
--cc=nbd@openwrt.org \
--cc=prahal@yahoo.com \
--cc=users@host1.serialmonkey.com \
--cc=xose.vazquez@gmail.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
all inboxes | Powered by JetHome®