linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Pavel Machek <pavel@suse.cz>
Cc: kernel list <linux-kernel@vger.kernel.org>,
	Greg KH <greg@kroah.com>,
	kaszak@gmail.com, lcostantino@gmail.com,
	linux-wireless@vger.kernel.org
Subject: Re: w35und wifi driver for linux-staging
Date: Wed, 1 Oct 2008 08:52:48 -0400	[thread overview]
Message-ID: <20081001125248.GA29661@infradead.org> (raw)
In-Reply-To: <20081001123656.GA30942@elf.ucw.cz>

On Wed, Oct 01, 2008 at 02:36:56PM +0200, Pavel Machek wrote:
> +source "drivers/net/wireless/winbond/Kconfig"

winbond is a little too generic, please use the same name as the driver
name for the directory.

> @@ -0,0 +1,6 @@
> +config W35UND
> +	tristate "Winbond driver"
> +	depends on MAC80211 && WLAN_80211 && EXPERIMENTAL && !4KSTACKS
> +	---help---
> +	  This is highly experimental driver for winbond wifi card on some Kohjinsha notebooks
> +	  Check http://code.google.com/p/winbondport/ for new version

Again, please give the option a useful name, and a useful description
including mentioning the actual chip name in there.

Also the !4KSTACKS dependency looks rather odd.

> diff --git a/drivers/net/wireless/winbond/Makefile b/drivers/net/wireless/winbond/Makefile
> new file mode 100644
> index 0000000..4682dd1
> --- /dev/null
> +++ b/drivers/net/wireless/winbond/Makefile
> @@ -0,0 +1,17 @@
> +	BASE_DIR=./winbondport
> +	DRIVER_DIR=./winbondport/linux
> +
> +obj-m := w35und.o
> +
> +w35und-objs := $(DRIVER_DIR)/wbusb.o $(DRIVER_DIR)/wb35reg.o $(DRIVER_DIR)/wb35rx.o $(DRIVER_DIR)/wb35tx.o \
> +	$(BASE_DIR)/mds.o \
> +	$(BASE_DIR)/mlmetxrx.o \
> +	$(BASE_DIR)/mto.o $(BASE_DIR)/phy_calibration.o $(BASE_DIR)/reg.o \
> +	$(BASE_DIR)/rxisr.o \
> +	$(BASE_DIR)/sme_api.o $(BASE_DIR)/wbhal.o $(BASE_DIR)/wblinux.o  \
> +
> +
> +obj-$(CONFIG_W35UND) += w35und.o

This is not a proper Makefile, and having these files in subdirectories
is not really a good idea either.  So move all files into one directory
and write a proper Makefile for it:

w35und-y	+= wbusb.o wb35reg.o wb35rx.o wb35tx.o mds.o mlmetxrx.o \
		   mto.o phy_calibration.o reg.o rxisr.o sme_api.o wbhal.o \
		   wblinux.o

obj-$(CONFIG_W35UND)	+= w35und.o

> diff --git a/drivers/net/wireless/winbond/winbondport/Makefile b/drivers/net/wireless/winbond/winbondport/Makefile
> new file mode 100644
> index 0000000..b03564c
> --- /dev/null
> +++ b/drivers/net/wireless/winbond/winbondport/Makefile
> @@ -0,0 +1,5 @@
> +#
> +# Makefile for the Winbond wireless networking driver
> +#
> +	
> +include $(TOPDIR)/Rules.make

This looks like some 2.4 leftover.

> diff --git a/drivers/net/wireless/winbond/winbondport/SVN_CHANGELOG b/drivers/net/wireless/winbond/winbondport/SVN_CHANGELOG
> new file mode 100644

should not be in the git tree.

> +++ b/drivers/net/wireless/winbond/winbondport/VersionNote.txt

neither.


No comments on the code now, I don't think I want to look at it..


  parent reply	other threads:[~2008-10-01 12:52 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-01 12:36 w35und wifi driver for linux-staging Pavel Machek
2008-10-01 11:34 ` Luis R. Rodriguez
2008-10-01 18:53   ` Greg KH
2008-10-01 12:52 ` Christoph Hellwig [this message]
2008-10-02 19:12   ` Dan Williams
2008-11-19 11:28   ` Pavel Machek
2008-10-01 19:39 ` patch staging-add-w35und-wifi-driver.patch added to gregkh-2.6 tree gregkh
2008-10-01 23:05   ` Ian Schram
2008-10-01 23:10     ` Greg KH
2008-11-24  8:49     ` Pavel Machek
2008-10-02  9:57   ` Pavel Machek
2008-10-18 21:19 ` w35und wifi driver for linux-staging Arjan van de Ven
2008-10-20 16:57   ` Dan Williams
2008-10-20 17:27     ` Greg KH

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=20081001125248.GA29661@infradead.org \
    --to=hch@infradead.org \
    --cc=greg@kroah.com \
    --cc=kaszak@gmail.com \
    --cc=lcostantino@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=pavel@suse.cz \
    /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).