From: Greg KH <greg@kroah.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Bing Zhao <bzhao@marvell.com>,
linux-wireless@vger.kernel.org,
"John W. Linville" <linville@tuxdriver.com>,
Dan Williams <dcbw@redhat.com>,
David Woodhouse <dwmw2@infradead.org>,
Amitkumar Karwar <akarwar@marvell.com>,
Kiran Divekar <dkiran@marvell.com>,
"David S. Miller" <davem@davemloft.net>
Subject: Re: [PATCH 00/31] wireless: Marvell mwifiex driver for SD8787
Date: Fri, 3 Dec 2010 07:06:55 -0800 [thread overview]
Message-ID: <20101203150655.GB32323@kroah.com> (raw)
In-Reply-To: <1291380780.3499.119.camel@jlt3.sipsolutions.net>
On Fri, Dec 03, 2010 at 01:53:00PM +0100, Johannes Berg wrote:
> On Wed, 2010-12-01 at 17:31 -0800, Bing Zhao wrote:
> > The mwifiex driver for Marvell 802.11n chipset SD8787 is available at
> > git://git.marvell.com/mwifiex.git. Both STA mode and Mobile hotspot
> > mode are supported.
> >
> > git pull git://git.marvell.com/mwifiex.git master
>
> Please post patches, not git trees.
>
> But since John is holding us somewhat hostage by saying he'll consider
> merging this, and apparently you don't have the taste to even consider
> the review comments you have gotten before, I took a brief look to
> *prove* that this driver cannot be merged as is.
>
>
> Here's a short list of things to fix:
> * __packed
> * ENTER/LEAVE must go
> * enum mwifiex_status must go -- use errno
> * private ioctls were grandfathered in,
> but aren't allowed in new drivers
> * do you really need your own crypto mode definitions?
> * your pseudo-kerneldoc comments "/**" don't conform
> to the right format
> * private locking wrappers are not allowed (mwifiex_spin_lock etc)
> * private debugging like PRINTM is not allowed
> * there's exactly one space after "#include"
> * struct eth_803_hdr? are you serious? and you even have
> it twice: struct eth_II_hdr
> * enum ieee_types_elementid_e must go
> * similarly, almost all of ieee.h
> * no bitfields and BIG_ENDIAN_BITFIELD allowed
> * not all allocations are GFP_ATOMIC, use wisely and
> GFP_KERNEL in most places
> * a wifi driver that's doing stuff with sockets (nl_sk, sk_socket)?
> explain, in MUCH detail (or preferably just get rid of it)
> * there's debugfs_remove_recursive
> * some functions like mwifiex_is_network_compatible need to be broken
> into smaller ones to avoid the crap indentation they have
> * mwifiex_uap_ap_cfg_parse_data. Must I say more?
> * struct mwifiex_buffer *mbuf? Is this a BSD driver? We have SKBs, get
> rid of this. (Oh and skbs have a CB)
> * mwifiex_init_lock/mwifiex_free_lock -- I'd laugh in your general
> direction if it wasn't so sad
> * mwifiex_util_peek_list etc.: learn about list.h
> * mwifiex_init_timer -- still sad, dynamically allocating timers? just
> like spinlocks, they can be embedded and make your code simpler
>
> Ok good enough, that should keep you busy for a while...
>
> The above is might be a good basis for a TODO file for staging...
Yeah, that sounds like plenty of reasons for this to be in staging for
now. Bing, care to send me patches that add the driver to
drivers/staging/ with a TODO file that at least contains the information
above in it? If so, I'll be glad to queue it up there.
thanks,
greg k-h
next prev parent reply other threads:[~2010-12-03 15:07 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-02 1:31 [PATCH 00/31] wireless: Marvell mwifiex driver for SD8787 Bing Zhao
2010-12-02 19:33 ` John W. Linville
2010-12-02 19:58 ` Johannes Berg
2010-12-03 12:53 ` Johannes Berg
2010-12-03 15:06 ` Greg KH [this message]
[not found] ` <477F20668A386D41ADCC57781B1F704307D59F9D6D@SC-VEXCH1.marvell.com>
[not found] ` <77956EDC1B917843AC9B7965A3BD78B058FEF48E24@SC-VEXCH2.marvell.com>
2010-12-03 18:39 ` Johannes Berg
2010-12-03 19:11 ` John W. Linville
2010-12-03 21:17 ` [PATCH 0/3] mwifiex: remove some stuff John W. Linville
2010-12-03 22:22 ` Bing Zhao
2010-12-04 0:34 ` Bing Zhao
2010-12-06 19:14 ` Bing Zhao
2010-12-03 21:17 ` [PATCH 1/3] mwifiex: remove uAP functionality John W. Linville
2010-12-03 21:17 ` [PATCH 2/3] mwifiex: remove NETLINK_MARVELL and associate madness John W. Linville
2010-12-03 21:17 ` [PATCH 3/3] mwifiex: remove questionable wireless_send_event stuff John W. Linville
2010-12-04 0:59 ` [PATCH 00/31] wireless: Marvell mwifiex driver for SD8787 Bing Zhao
2010-12-03 22:15 ` Bing Zhao
2011-02-23 3:37 ` Bing Zhao
2011-02-23 8:23 ` Johannes Berg
2011-02-23 19:26 ` Bing Zhao
2011-03-11 4:04 ` Bing Zhao
2011-03-11 8:45 ` Johannes Berg
2011-03-11 14:12 ` John W. Linville
2011-03-11 18:31 ` Bing Zhao
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=20101203150655.GB32323@kroah.com \
--to=greg@kroah.com \
--cc=akarwar@marvell.com \
--cc=bzhao@marvell.com \
--cc=davem@davemloft.net \
--cc=dcbw@redhat.com \
--cc=dkiran@marvell.com \
--cc=dwmw2@infradead.org \
--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).