From: Richard Cochran <richardcochran@gmail.com>
To: Luwei Zhou <b45643@freescale.com>
Cc: davem@davemloft.net, netdev@vger.kernel.org,
shawn.guo@linaro.org, bhutchings@solarflare.com,
R49496@freescale.com, b38611@freescale.com, b20596@freescale.com,
stephen@networkplumber.org
Subject: Re: [PATCH v1 0/4] Enable FEC pps ouput
Date: Fri, 3 Oct 2014 10:23:41 +0200 [thread overview]
Message-ID: <20141003082341.GB4249@localhost.localdomain> (raw)
In-Reply-To: <1411632621-17429-1-git-send-email-b45643@freescale.com>
On Thu, Sep 25, 2014 at 04:10:17PM +0800, Luwei Zhou wrote:
> This patch does:
> - Replace 32-bit free-running PTP timer with 31-bit.
> - Implement hardware PTP timestamp adjustment.
> - Enable PPS output based on hardware adjustment.
>
>
> Luwei Zhou (4):
> net: fec: ptp: Use the 31-bit ptp timer.
> net: fec: ptp: Use hardware algorithm to adjust PTP counter.
> net: fec: ptp: Enalbe PPS ouput based on ptp clock
^^^^^^ ^^^^^
Enable output
Also, it looks like you have implemented the wrong feature.
The "pps" capability means that the clock provides a PPS event
(interrupt) to the kernel.
IOW, if .pps==1, then you must call ptp_clock_event() with event type
PTP_CLOCK_PPS.
Your patch set seems to be creating a periodic output and not a PPS
kernel callback.
You should clarify what you are trying to do, and then implement the
appropriate interface in your driver.
Thanks,
Richard
next prev parent reply other threads:[~2014-10-03 8:23 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-25 8:10 [PATCH v1 0/4] Enable FEC pps ouput Luwei Zhou
2014-09-25 8:10 ` [PATCH v1 1/4] net: fec: ptp: Use the 31-bit ptp timer Luwei Zhou
2014-09-25 8:10 ` [PATCH v1 2/4] net: fec: ptp: Use hardware algorithm to adjust PTP counter Luwei Zhou
2014-09-25 13:29 ` Frank.Li
2014-09-26 5:12 ` luwei.zhou
2014-09-26 14:31 ` Frank.Li
2014-09-25 14:29 ` Richard Cochran
2014-09-26 5:53 ` luwei.zhou
2014-09-26 8:22 ` Richard Cochran
2014-09-25 8:10 ` [PATCH v1 3/4] net: fec: ptp: Enalbe PPS ouput based on ptp clock Luwei Zhou
2014-09-25 14:41 ` Richard Cochran
2014-09-26 6:35 ` luwei.zhou
2014-09-25 8:10 ` [PATCH v1 4/4] ARM: Documentation: Update fec dts binding doc Luwei Zhou
2014-09-25 14:43 ` Richard Cochran
2014-10-01 3:59 ` Richard Cochran
2014-10-08 3:15 ` luwei.zhou
2014-10-08 8:06 ` Richard Cochran
2014-10-08 8:36 ` luwei.zhou
2014-10-08 10:13 ` Richard Cochran
2014-10-09 2:19 ` luwei.zhou
2014-10-09 6:52 ` Richard Cochran
2014-10-09 7:11 ` luwei.zhou
2014-10-03 8:23 ` Richard Cochran [this message]
2014-10-08 3:30 ` [PATCH v1 0/4] Enable FEC pps ouput luwei.zhou
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=20141003082341.GB4249@localhost.localdomain \
--to=richardcochran@gmail.com \
--cc=R49496@freescale.com \
--cc=b20596@freescale.com \
--cc=b38611@freescale.com \
--cc=b45643@freescale.com \
--cc=bhutchings@solarflare.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=shawn.guo@linaro.org \
--cc=stephen@networkplumber.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;
as well as URLs for NNTP newsgroup(s).