From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Yoshihiro Kaneko <ykaneko0929@gmail.com>, netdev@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>,
Simon Horman <horms@verge.net.au>,
Magnus Damm <magnus.damm@gmail.com>,
linux-sh@vger.kernel.org
Subject: Re: [PATCH net-next] ravb: ptp: Add CONFIG mode support
Date: Fri, 4 Dec 2015 00:09:29 +0300 [thread overview]
Message-ID: <5660AF89.1010008@cogentembedded.com> (raw)
In-Reply-To: <1448989479-11594-1-git-send-email-ykaneko0929@gmail.com>
Hello.
On 12/01/2015 08:04 PM, Yoshihiro Kaneko wrote:
> From: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
>
> This patch makes PTP support active in CONFIG mode on R-Car Gen3.
>
> Signed-off-by: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
> Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
> ---
>
> This patch is based on the master branch of David Miller's next networking
> tree.
>
> drivers/net/ethernet/renesas/ravb.h | 1 +
> drivers/net/ethernet/renesas/ravb_main.c | 33 +++++++++++++++++++++++++++-----
> 2 files changed, 29 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/net/ethernet/renesas/ravb.h b/drivers/net/ethernet/renesas/ravb.h
> index f9dee74..9fbe92a 100644
> --- a/drivers/net/ethernet/renesas/ravb.h
> +++ b/drivers/net/ethernet/renesas/ravb.h
> @@ -206,6 +206,7 @@ enum CCC_BIT {
> CCC_OPC_RESET = 0x00000000,
> CCC_OPC_CONFIG = 0x00000001,
> CCC_OPC_OPERATION = 0x00000002,
> + CCC_GAC = 0x00000080,
I'd have added a comment that it's gen3 specific.
[...]
> diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c
> index 990dc55..293046d 100644
> --- a/drivers/net/ethernet/renesas/ravb_main.c
> +++ b/drivers/net/ethernet/renesas/ravb_main.c
[...]
> @@ -1814,6 +1825,10 @@ static int ravb_probe(struct platform_device *pdev)
> /* Initialise HW timestamp list */
> INIT_LIST_HEAD(&priv->ts_skb_list);
>
> + /* Initialise PTP Clock driver */
> + if (chip_id != RCAR_GEN2)
> + ravb_ptp_init(ndev, pdev);
> +
> /* Debug message level */
> priv->msg_enable = RAVB_DEF_MSG_ENABLE;
>
> @@ -1855,6 +1870,10 @@ out_napi_del:
> out_dma_free:
> dma_free_coherent(ndev->dev.parent, priv->desc_bat_size, priv->desc_bat,
> priv->desc_bat_dma);
> +
> + /* Stop PTP Clock driver */
> + if (chip_id != RCAR_GEN2)
> + ravb_ptp_stop(ndev);
This is clearly misplaced.
[...]
MBR, Sergei
next prev parent reply other threads:[~2015-12-03 21:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-01 17:04 [PATCH net-next] ravb: ptp: Add CONFIG mode support Yoshihiro Kaneko
2015-12-03 19:28 ` David Miller
2015-12-03 21:10 ` Sergei Shtylyov
2015-12-03 23:08 ` David Miller
2015-12-03 23:38 ` Sergei Shtylyov
2015-12-04 1:36 ` David Miller
2015-12-03 21:09 ` Sergei Shtylyov [this message]
2015-12-05 10:01 ` Yoshihiro Kaneko
2015-12-06 19:19 ` Sergei Shtylyov
2015-12-07 14:47 ` Yoshihiro Kaneko
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=5660AF89.1010008@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=davem@davemloft.net \
--cc=horms@verge.net.au \
--cc=linux-sh@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=ykaneko0929@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).