From: Lennert Buytenhek <buytenh@wantstofly.org>
To: H Hartley Sweeten <hartleys@visionengravers.com>
Cc: David Miller <davem@davemloft.net>,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
joe@perches.com
Subject: Re: [PATCH] ep93xx_eth.c: general cleanup
Date: Thu, 31 Dec 2009 10:11:22 +0100 [thread overview]
Message-ID: <20091231091122.GP1735@mail.wantstofly.org> (raw)
In-Reply-To: <BD79186B4FD85F4B8E60E381CAEE19090200F635@mi8nycmail19.Mi8.com>
On Wed, Dec 30, 2009 at 01:03:00PM -0500, H Hartley Sweeten wrote:
> >> Wednesday, December 16, 2009 11:32 AM, Lennert Buytenhek wrote:
> >>> On Wed, Dec 16, 2009 at 01:18:13PM -0500, H Hartley Sweeten wrote:
> >>>
> >>>> V3 - Change pr_fmt() as suggested by Joe Perches
> >>>> Don't remove DRV_MODULE_NAME and DRV_MODULE_VERSION
> >>>> Don't remove the message in ep93xx_eth_init_module()
> >>>
> >>> That's not what I meant, but alright, as you prefer.
> >>
> >> Guess my parser is off line today.... ;-)
> >>
> >> What did you mean?
> >
> > This patch also doesn't apply to current sources, so if you
> > could also please respin this once you've resolved the feedback
> > that would be great.
>
> Lennert,
Hi Hartley,
> Since I need to respin this patch what did you mean by this comment?
>
> On Wednesday, December 16, 2009 11:09 AM, Lennert Buytenhek wrote:
> > On Wed, Dec 16, 2009 at 01:06:10PM -0500, H Hartley Sweeten wrote:
> >
> >>>> General cleanup of the ep93xx_eth driver.
> >>>
> >>> Apart from keeping DRV_MODULE_NAME and DRV_MODULE_VERSION, I have
> >>> no strong opinion about this one way or the other. So I guess that
> >>> means ACK.
> >>
> >> I will add back the DRV_MODULE_NAME and DRV_MODULE_VERSION and repost.
> >>
> >> What about the message in ep93xx_eth_init_module()? Would you prefer
> >> that one to stay?
> >
> > Most drivers I'm familiar with print a version message when they are
> > first instantiated -- perhaps that makes more sense.
>
> I will wait for your reply before updating the patch.
What I meant was, most drivers seem to print a message at probe
time, i.e. when they are attached to an actual device for the first
time.
Grepping for 'printed_version' in drivers/net/* actually turns up
two variants:
- Print the version message on the first probe. (e.g. 3c59x)
- Print the version message at module load time if we were built as
a module, while if we were built into the kernel, only print a
version message on the first probe. (e.g. 8139too)
At least in the case of ep93xx_eth, you can't even have it enabled if
you're not building a kernel specifically for the ep93xx ARM SoC, and
if you are building for the ep93xx, as far as I know we don't support
any boards that don't have the ethernet brought out and so you're very
likely to have ep93xx_eth enabled then, so whether you do it
unconditionally at driver init time or at probe time will make no
effective difference for the majority of cases.
I.e. I can't really say I care much either way.
cheers,
Lennert
next prev parent reply other threads:[~2009-12-31 9:11 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-16 17:29 H Hartley Sweeten
2009-12-16 18:01 ` Lennert Buytenhek
2009-12-16 18:06 ` H Hartley Sweeten
2009-12-16 18:08 ` Lennert Buytenhek
2009-12-16 18:18 ` H Hartley Sweeten
2009-12-16 18:32 ` Lennert Buytenhek
2009-12-16 18:34 ` H Hartley Sweeten
2009-12-23 22:14 ` David Miller
2009-12-30 18:03 ` H Hartley Sweeten
2009-12-31 9:11 ` Lennert Buytenhek [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-01-05 21:05 [PATCH] ep93xx_eth.c " H Hartley Sweeten
2010-01-08 8:53 ` David Miller
2009-12-16 17:09 [PATCH] ep93xx_eth.c: " H Hartley Sweeten
2009-12-16 17:32 ` Joe Perches
2009-12-16 17:44 ` H Hartley Sweeten
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=20091231091122.GP1735@mail.wantstofly.org \
--to=buytenh@wantstofly.org \
--cc=davem@davemloft.net \
--cc=hartleys@visionengravers.com \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@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
all inboxes | Powered by JetHome®