From: Kalle Valo <kvalo@codeaurora.org>
To: David Lin <dlin@marvell.com>
Cc: Johannes Berg <johannes@sipsolutions.net>,
"linux-wireless\@vger.kernel.org"
<linux-wireless@vger.kernel.org>,
"Chor Teck Law" <ctlaw@marvell.com>
Subject: Re: [PATCH v6] Add new mac80211 driver mwlwifi.
Date: Mon, 07 Sep 2015 17:53:26 +0300 [thread overview]
Message-ID: <87zj0yb7rt.fsf@kamboji.qca.qualcomm.com> (raw)
In-Reply-To: <20456de5ab0b43b69441b19abb282c31@SC-EXCH02.marvell.com> (David Lin's message of "Thu, 9 Jul 2015 23:19:27 +0000")
David Lin <dlin@marvell.com> writes:
> The Linux driver for WRT1900AC. The work was initially developed as part of
> openwrt effort and maintained on https://github.com/kaloz/mwlwifi.
>
> This is still work in progress, with 8864 chipset more mature and tested,
> while 8897 for the similar use case is added recently.
>
> Signed-off-by: David Lin <dlin@marvell.com>
The commit log is really short. For a new driver you should explain a
lot more, for example what works and what doesn't. Also it should
contained detailed info about how and why (!) this conflicts with
mwifiex and the way that problem was solved.
Also no new BUG_ON() calls in drivers, please:
fwcmd.c: BUG_ON(tid >= SYSADPT_MAX_TID);
mac80211.c: BUG_ON(queue > SYSADPT_TX_WMM_QUEUES - 1);
mac80211.c: BUG_ON(stream->state != AMPDU_STREAM_IN_PROGRESS);
tx.c: BUG_ON(tid > 7);
tx.c: BUG_ON(tid >= SYSADPT_MAX_TID);
tx.c: BUG_ON(!tx_skb);
We should start to get rid of all 200+ calls we already have, wireless
drivers should never call BUG_ON(). Instead use descriptive error
message (WARN_ON() etc) and bail out nicely with an error. That's much
more user friendly than crashing the kernel.
--
Kalle Valo
next prev parent reply other threads:[~2015-09-07 14:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-09 23:19 [PATCH v6] Add new mac80211 driver mwlwifi David Lin
2015-09-07 14:38 ` Kalle Valo
2015-09-08 1:26 ` David Lin
2015-10-02 8:19 ` David Lin
2015-10-05 14:38 ` Kalle Valo
2015-09-07 14:53 ` Kalle Valo [this message]
2015-09-08 1:28 ` David Lin
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=87zj0yb7rt.fsf@kamboji.qca.qualcomm.com \
--to=kvalo@codeaurora.org \
--cc=ctlaw@marvell.com \
--cc=dlin@marvell.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/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