From: josh@joshtriplett.org
To: David Miller <davem@davemloft.net>
Cc: richardcochran@gmail.com, rashika.kheria@gmail.com,
linux-kernel@vger.kernel.org, dvhart@linux.intel.com,
joe@perches.com, andriy.shevchenko@linux.intel.com,
vfalico@redhat.com, netdev@vger.kernel.org
Subject: Re: [PATCH] drivers: ptp: Include new header file in ptp_pch.c
Date: Wed, 18 Dec 2013 15:40:50 -0800 [thread overview]
Message-ID: <20131218234050.GA25482@cloud> (raw)
In-Reply-To: <20131218.174359.2230195267384857675.davem@davemloft.net>
On Wed, Dec 18, 2013 at 05:43:59PM -0500, David Miller wrote:
> From: Richard Cochran <richardcochran@gmail.com>
> Date: Mon, 16 Dec 2013 09:58:40 +0100
>
> > On Mon, Dec 16, 2013 at 02:14:15AM +0530, Rashika Kheria wrote:
> >> ---
> >> drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h | 9 ---------
> >> .../net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c | 1 +
> >> drivers/ptp/ptp_pch.c | 1 +
> >> include/linux/ptp_pch.h | 16 ++++++++++++++++
> >> 4 files changed, 18 insertions(+), 9 deletions(-)
> >> create mode 100644 include/linux/ptp_pch.h
> >
> > Instead of adding a random driver header into include/linux, I would
> > prefer that you just move the ptp_pch.c from drivers/ptp to
> > drivers/net/ethernet/oki-semi/pch_gbe. Then you can just include
> > pch_gbe.h directly.
>
> I think this begs an even more fundamental question, why isn't the PTP
> driver abstraction providing the necessary methods and interfaces so
> that pch_gbe doesn't have to call into the ptp_pch.c code directly?
>
> Moving ptp_pch.c elsehwere is not desirable, it's a PTP driver so
> it belongs under drivers/ptp.
For the moment, at least, would it be reasonable to have a proper header
for these functions since pch_gbe is currently calling them? Making
that driver *not* call those functions might well be a sensible cleanup,
but does fixing this issue need to wait for that cleanup to happen?
- Josh Triplett
next prev parent reply other threads:[~2013-12-18 23:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-15 20:44 [PATCH] drivers: ptp: Include new header file in ptp_pch.c Rashika Kheria
2013-12-15 21:01 ` Josh Triplett
2013-12-16 8:58 ` Richard Cochran
2013-12-18 22:43 ` David Miller
2013-12-18 23:40 ` josh [this message]
2013-12-19 7:27 ` Richard Cochran
2013-12-19 19:13 ` Ben Hutchings
2013-12-19 19:23 ` Richard Cochran
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=20131218234050.GA25482@cloud \
--to=josh@joshtriplett.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=davem@davemloft.net \
--cc=dvhart@linux.intel.com \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=rashika.kheria@gmail.com \
--cc=richardcochran@gmail.com \
--cc=vfalico@redhat.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).