All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dp83640: Always decode received status frames
@ 2014-06-25 12:40 Stefan Sørensen
  2014-06-26  5:07 ` Richard Cochran
  2014-07-08  6:39 ` Sørensen, Stefan
  0 siblings, 2 replies; 4+ messages in thread
From: Stefan Sørensen @ 2014-06-25 12:40 UTC (permalink / raw)
  To: davem, richardcochran; +Cc: netdev, Stefan Sørensen

Currently status frames are only handled when packet timestamping is
enabled, but status frames are also needed for pin event timestamping.

Fix by moving packet timestamping check to after status frame decode.

Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
---
 drivers/net/phy/dp83640.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/phy/dp83640.c b/drivers/net/phy/dp83640.c
index 6a999e6..9408157 100644
--- a/drivers/net/phy/dp83640.c
+++ b/drivers/net/phy/dp83640.c
@@ -1323,15 +1323,15 @@ static bool dp83640_rxtstamp(struct phy_device *phydev,
 {
 	struct dp83640_private *dp83640 = phydev->priv;
 
-	if (!dp83640->hwts_rx_en)
-		return false;
-
 	if (is_status_frame(skb, type)) {
 		decode_status_frame(dp83640, skb);
 		kfree_skb(skb);
 		return true;
 	}
 
+	if (!dp83640->hwts_rx_en)
+		return false;
+
 	SKB_PTP_TYPE(skb) = type;
 	skb_queue_tail(&dp83640->rx_queue, skb);
 	schedule_work(&dp83640->ts_work);
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] dp83640: Always decode received status frames
  2014-06-25 12:40 [PATCH] dp83640: Always decode received status frames Stefan Sørensen
@ 2014-06-26  5:07 ` Richard Cochran
  2014-07-08  6:39 ` Sørensen, Stefan
  1 sibling, 0 replies; 4+ messages in thread
From: Richard Cochran @ 2014-06-26  5:07 UTC (permalink / raw)
  To: Stefan Sørensen; +Cc: davem, netdev

On Wed, Jun 25, 2014 at 02:40:16PM +0200, Stefan Sørensen wrote:
> Currently status frames are only handled when packet timestamping is
> enabled, but status frames are also needed for pin event timestamping.
> 
> Fix by moving packet timestamping check to after status frame decode.
> 
> Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>

Acked-by: Richard Cochran <richardcochran@gmail.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] dp83640: Always decode received status frames
  2014-06-25 12:40 [PATCH] dp83640: Always decode received status frames Stefan Sørensen
  2014-06-26  5:07 ` Richard Cochran
@ 2014-07-08  6:39 ` Sørensen, Stefan
  2014-07-10  0:01   ` David Miller
  1 sibling, 1 reply; 4+ messages in thread
From: Sørensen, Stefan @ 2014-07-08  6:39 UTC (permalink / raw)
  To: davem; +Cc: netdev, richardcochran

On Wed, 2014-06-25 at 14:40 +0200, Stefan Sørensen wrote:
> Currently status frames are only handled when packet timestamping is
> enabled, but status frames are also needed for pin event timestamping.
> 
> Fix by moving packet timestamping check to after status frame decode.
> 
> Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>

Dave, I have noticed that this patch is marked as superseded in
patchworks (http://patchwork.ozlabs.org/patch/363989/), though I have
not posted any updated patch and only response is an Acked-By from
Richard.

Stefan


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] dp83640: Always decode received status frames
  2014-07-08  6:39 ` Sørensen, Stefan
@ 2014-07-10  0:01   ` David Miller
  0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2014-07-10  0:01 UTC (permalink / raw)
  To: Stefan.Sorensen; +Cc: netdev, richardcochran

From: Sørensen, Stefan <Stefan.Sorensen@spectralink.com>
Date: Tue, 8 Jul 2014 06:39:52 +0000

> On Wed, 2014-06-25 at 14:40 +0200, Stefan Sørensen wrote:
>> Currently status frames are only handled when packet timestamping is
>> enabled, but status frames are also needed for pin event timestamping.
>> 
>> Fix by moving packet timestamping check to after status frame decode.
>> 
>> Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
> 
> Dave, I have noticed that this patch is marked as superseded in
> patchworks (http://patchwork.ozlabs.org/patch/363989/), though I have
> not posted any updated patch and only response is an Acked-By from
> Richard.

Sorry about that, applied, thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-07-10  0:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-25 12:40 [PATCH] dp83640: Always decode received status frames Stefan Sørensen
2014-06-26  5:07 ` Richard Cochran
2014-07-08  6:39 ` Sørensen, Stefan
2014-07-10  0:01   ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.