netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ptp/ptp_pch: Modified according to the mainter's comments
@ 2012-03-23  2:12 Takahiro Shimizu
  2012-03-23  2:12 ` [PATCH 2/2] net/pch_gbe: " Takahiro Shimizu
  2012-03-23  2:35 ` [PATCH 1/2] ptp/ptp_pch: " David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Takahiro Shimizu @ 2012-03-23  2:12 UTC (permalink / raw)
  To: jeffrey.t.kirsher, davem, lucas.demarchi, mirq-linux,
	paul.gortmaker, jdmason, john.stultz, richardcochran, arnd, khc,
	netdev, linux-kernel
  Cc: qi.wang, yong.y.wang, joel.clark, kok.howg.ewe, Takahiro Shimizu


Signed-off-by: Takahiro Shimizu <tshimizu818@gmail.com>
---
 drivers/ptp/ptp_pch.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/ptp/ptp_pch.c b/drivers/ptp/ptp_pch.c
index 375eb04..212381e 100644
--- a/drivers/ptp/ptp_pch.c
+++ b/drivers/ptp/ptp_pch.c
@@ -261,6 +261,7 @@ u64 pch_rx_snap_read(struct pci_dev *pdev)
 
 	ns = ((u64) hi) << 32;
 	ns |= lo;
+	ns <<= TICKS_NS_SHIFT;
 
 	return ns;
 }
@@ -277,6 +278,7 @@ u64 pch_tx_snap_read(struct pci_dev *pdev)
 
 	ns = ((u64) hi) << 32;
 	ns |= lo;
+	ns <<= TICKS_NS_SHIFT;
 
 	return ns;
 }
@@ -649,8 +651,6 @@ pch_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 	iowrite32(1, &chip->regs->trgt_lo);
 	iowrite32(0, &chip->regs->trgt_hi);
 	iowrite32(PCH_TSE_TTIPEND, &chip->regs->event);
-	/* Version: IEEE1588 v1 and IEEE1588-2008,  Mode: All Evwnt, Locked  */
-	iowrite32(0x80020000, &chip->regs->ch_control);
 
 	pch_eth_enable_set(chip);
 
-- 
1.7.4.4

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

end of thread, other threads:[~2012-03-23  2:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-23  2:12 [PATCH 1/2] ptp/ptp_pch: Modified according to the mainter's comments Takahiro Shimizu
2012-03-23  2:12 ` [PATCH 2/2] net/pch_gbe: " Takahiro Shimizu
2012-03-23  2:35 ` [PATCH 1/2] ptp/ptp_pch: " David Miller

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).