From: David Lin <dlin@marvell.com>
To: Kalle Valo <kvalo@codeaurora.org>
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: Tue, 8 Sep 2015 01:28:44 +0000 [thread overview]
Message-ID: <8b2f365955774ddea9d6e99c40c8a892@SC-EXCH02.marvell.com> (raw)
In-Reply-To: <87zj0yb7rt.fsf@kamboji.qca.qualcomm.com>
> Kalle Valo [mailto:kvalo@codeaurora.org] writes:
>
> 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
I will change BUG_ON() to WARN_ON() for next patch.
Thanks,
David
prev parent reply other threads:[~2015-09-08 1:28 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
2015-09-08 1:28 ` David Lin [this message]
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=8b2f365955774ddea9d6e99c40c8a892@SC-EXCH02.marvell.com \
--to=dlin@marvell.com \
--cc=ctlaw@marvell.com \
--cc=johannes@sipsolutions.net \
--cc=kvalo@codeaurora.org \
--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