From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org, richardcochran@gmail.com,
linux-sh@vger.kernel.org, masaru.nagai.vx@renesas.com
Subject: Re: [PATCH v6 2/2] Renesas Ethernet AVB PTP clock driver
Date: Thu, 11 Jun 2015 12:58:26 +0000 [thread overview]
Message-ID: <557985F2.9010900@cogentembedded.com> (raw)
In-Reply-To: <20150611.002425.1698330124707614277.davem@davemloft.net>
Hello.
On 6/11/2015 10:24 AM, David Miller wrote:
>>> Ethernet AVB device includes the gPTP timer, so we can implement a PTP clock
>>> driver. We're doing that in a separate file, with the main Ethernet driver
>>> calling the PTP driver's [de]initialization and interrupt handler functions.
>>> Unfortunately, the clock seems tightly coupled with the AVB-DMAC, so when that
>>> one leaves the operation mode, we have to unregister the PTP clock... :-(
>>> Based on the original patches by Masaru Nagai.
>>> Signed-off-by: Masaru Nagai <masaru.nagai.vx@renesas.com>
>>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
>> Applied.
Thank you!
> I had to fix up this patch because:
> obj-$(CONFIG_RAVB) += ravb_main.o ravb_ptp.o
> Doesn't do what you want it to for the modular case.
Oh, crap, I forgot to test the modular build after splitting the driver
again into separate files. Sorry about that... :-<
> You instead need to say something like:
> ravb-objs := ravb_main.o ravb_ptp.o
> obj-$(CONFIG_RAVB) += ravb.o
> and that's how I fixed up this commit before pushing it out.
And the code base I was using as a reference had this issue fixed quite
similarly...
WBR, Sergei
prev parent reply other threads:[~2015-06-11 12:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-10 22:02 [PATCH v6 2/2] Renesas Ethernet AVB PTP clock driver Sergei Shtylyov
2015-06-11 7:14 ` David Miller
2015-06-11 7:24 ` David Miller
2015-06-11 12:58 ` Sergei Shtylyov [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=557985F2.9010900@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=davem@davemloft.net \
--cc=linux-sh@vger.kernel.org \
--cc=masaru.nagai.vx@renesas.com \
--cc=netdev@vger.kernel.org \
--cc=richardcochran@gmail.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).