Re: [PATCH/RFC net-next 2/5] ravb: correct ptp does failure after suspend and resume

2018-04-21 Thread Sergei Shtylyov
Hello! s/failure/fail/ in the subject. On 04/17/2018 11:50 AM, Simon Horman wrote: > From: Kazuya Mizuguchi > > This patch fixes the problem that ptp4l command does not work after > suspend and resume. > Add the initial setting in ravb_suspend() and ravb_resume(), > because ptp does not wor

Re: [PATCH/RFC net-next 2/5] ravb: correct ptp does failure after suspend and resume

2018-04-17 Thread Sergei Shtylyov
On 04/17/2018 01:05 PM, Wolfram Sang wrote: >> @@ -2302,6 +2305,7 @@ static int __maybe_unused ravb_resume(struct device >> *dev) >> { >> struct net_device *ndev = dev_get_drvdata(dev); >> struct ravb_private *priv = netdev_priv(ndev); >> +struct platform_device *pdev = priv->pdev;

Re: [PATCH/RFC net-next 2/5] ravb: correct ptp does failure after suspend and resume

2018-04-17 Thread Wolfram Sang
> @@ -2302,6 +2305,7 @@ static int __maybe_unused ravb_resume(struct device > *dev) > { > struct net_device *ndev = dev_get_drvdata(dev); > struct ravb_private *priv = netdev_priv(ndev); > + struct platform_device *pdev = priv->pdev; Minor nit: I'd save this line... > + if

[PATCH/RFC net-next 2/5] ravb: correct ptp does failure after suspend and resume

2018-04-17 Thread Simon Horman
From: Kazuya Mizuguchi This patch fixes the problem that ptp4l command does not work after suspend and resume. Add the initial setting in ravb_suspend() and ravb_resume(), because ptp does not work. Fixes: a0d2f20650e8 ("Renesas Ethernet AVB PTP clock driver") Signed-off-by: Kazuya Mizuguchi Si