From: Stefano Brivio <sbrivio@redhat.com>
To: Sam Muhammed <jane.pnx9@gmail.com>
Cc: outreachy-kernel <outreachy-kernel@googlegroups.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: Re: [Outreachy kernel] [PATCH 1/4] Staging: rtl8192u: ieee80211: Use netdev_dbg() for debug messages.
Date: Mon, 30 Mar 2020 15:50:18 +0200 [thread overview]
Message-ID: <20200330155018.3db23c64@elisabeth> (raw)
In-Reply-To: <7ade5ee43581a6fb3bdb8d5a567b28976525b843.camel@gmail.com>
On Mon, 30 Mar 2020 09:01:19 -0400
Sam Muhammed <jane.pnx9@gmail.com> wrote:
> On Mon, 2020-03-30 at 09:59 +0200, Stefano Brivio wrote:
> > On Thu, 26 Mar 2020 11:02:35 -0400
> > Sam Muhammed <jane.pnx9@gmail.com> wrote:
> >
> > > +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c
> > > @@ -436,7 +436,7 @@ int ieee80211_wx_set_encode(struct ieee80211_device *ieee,
> > > if (ieee->reset_on_keychange &&
> > > ieee->iw_mode != IW_MODE_INFRA &&
> > > ieee->reset_port && ieee->reset_port(dev)) {
> > > - printk(KERN_DEBUG "%s: reset_port failed\n", dev->name);
> > > + netdev_dbg(ieee->dev, "reset_port failed\n");
> >
> > I guess you should stick to 'dev' here -- it's the same as ieee->dev,
> > but reset_port() is invoked on 'dev', so it would be less confusing.
>
> Thank You for pointing this out! this got me hesitant but i thought i
> could be more explicit?
Hmm, I see. Look, these would be my points, in order of priority:
1. ieee->reset_port(dev), port reset failed on dev, nothing else
2. it's nice to have a 'dev' pointer representing the device instead of
having to spell out ieee->dev every time in this function,
especially as the container is called 'ieee', which has a very weak
meaning
2. having a 'dev' variable is useless, ieee->dev leaves no room for
interpretation and wondering (when was 'dev' assigned? where does it
come from?)
So if I understand correctly you are referring to the second "2."
point. About those two points, I really have no preference. I also
couldn't decide myself. I guess I'd instinctively go for "ieee->dev"
everywhere.
However, I guess point 1. is arguably the most important here.
> Now since this change is already been made, i guess i should make this
> a new patch?
Ouch, I missed that. Yes.
> is there any information i should say to tie it with this series? or
> should be treated like a new separate patch?
It's a separate patch. You can use the Fixes: tag as documented in
submitting-patches.rst, but this is really subject to interpretation.
My personal interpretation is that it's not a functional fix and the
Fixes: tag should be omitted, even though you should refer to the merged
commit in the message of the new change.
Some maintainers want it no matter what. I don't recall having ever
sent a patch directly to Greg, so I don't know :) Try without :)
--
Stefano
next prev parent reply other threads:[~2020-03-30 13:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-26 15:02 [PATCH 0/4] Staging: rtl8192u: ieee80211: Replace printk(KERN_<LEVEL> ...) with netdev_*() family Sam Muhammed
2020-03-26 15:02 ` [PATCH 1/4] Staging: rtl8192u: ieee80211: Use netdev_dbg() for debug messages Sam Muhammed
2020-03-30 7:59 ` [Outreachy kernel] " Stefano Brivio
2020-03-30 13:01 ` Sam Muhammed
2020-03-30 13:50 ` Stefano Brivio [this message]
2020-03-26 15:02 ` [PATCH 2/4] Staging: rtl8192u: ieee80211: Use netdev_warn() for network devices Sam Muhammed
2020-03-26 15:02 ` [PATCH 3/4] Staging: rtl8192u: ieee80211: Use netdev_info() with " Sam Muhammed
2020-03-26 15:02 ` [PATCH 4/4] Staging: rtl8192u: ieee80211: Use netdev_alert() Sam Muhammed
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=20200330155018.3db23c64@elisabeth \
--to=sbrivio@redhat.com \
--cc=gregkh@linuxfoundation.org \
--cc=jane.pnx9@gmail.com \
--cc=outreachy-kernel@googlegroups.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.