net/pch_gbe: supports eg20t ptp clock
Subsystems (3)
PATCH 1/1 net/pch_gbe: supports eg20t ptp clock
From: Takahiroi Shimizu <[email protected]>
Supports EG20T ptp clock in the driver
Changes e-mail address.
--- drivers/net/ethernet/oki-semi/pch_gbe/Kconfig | 13 ++ drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h | 13 ++ .../net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c | 217 +++++++++++++++++++- 3 files changed, 240 insertions(+), 3 deletions(-)
drivers/net/ethernet/oki-semi/pch_gbe/Kconfig +13 -0
@@ -20,3 +20,16 @@ config PCH_GBE purpose use. ML7223/ML7831 is companion chip for Intel Atom E6xx series. ML7223/ML7831 is completely compatible for Intel EG20T PCH. + +if PCH_GBE + +config PCH_PTP + bool "PCH PTP clock support" + default n + depends on PTP_1588_CLOCK_PCH + ---help--- + Say Y here if you want to use Precision Time Protocol (PTP) in the + driver. PTP is a method to precisely synchronize distributed clocks + over Ethernet networks. + +endif # PCH_GBE
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h +13 -0
@@ -630,6 +630,9 @@ struct pch_gbe_adapter {unsigned long tx_queue_len;bool have_msi;bool rx_stop_flag; +int hwts_tx_en; +int hwts_rx_en; +struct pci_dev *ptp_pdev; };extern const char pch_driver_version[];
@@ -648,6 +651,16 @@ extern void pch_gbe_free_tx_resources(struct pch_gbe_adapter *adapter,extern void pch_gbe_free_rx_resources (struct pch_gbe_adapter *adapter,struct pch_gbe_rx_ring *rx_ring);extern void pch_gbe_update_stats (struct pch_gbe_adapter *adapter); +#ifdef CONFIG_PCH_PTP +extern u32 pch_ch_control_read (struct pci_dev *pdev); +extern void pch_ch_control_write (struct pci_dev *pdev,u32 val); +extern u32 pch_ch_event_read (struct pci_dev *pdev); +extern void pch_ch_event_write (struct pci_dev *pdev,u32 val); +extern u32 pch_src_uuid_lo_read (struct pci_dev *pdev); +extern u32 pch_src_uuid_hi_read (struct pci_dev *pdev); +extern u64 pch_rx_snap_read (struct pci_dev *pdev); +extern u64 pch_tx_snap_read (struct pci_dev *pdev); +#endif /* pch_gbe_param.c */ extern void pch_gbe_check_options (struct pch_gbe_adapter *adapter);
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c +214 -3
276 lines not on this page · raw message
Signature · 1 line
1.7.4.4
PATCH 1/1 supports eg20t ptp clock
Supports EG20T ptp clock in the driver
Changes e-mail address.
--- drivers/ptp/Kconfig | 13 + drivers/ptp/Makefile | 1 + drivers/ptp/ptp_pch.c | 731 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 745 insertions(+), 0 deletions(-) create mode 100644 drivers/ptp/ptp_pch.c
drivers/ptp/Kconfig +13 -0
@@ -72,4 +72,17 @@ config DP83640_PHY In order for this to work, your MAC driver must also implement the skb_tx_timetamp() function. +config PTP_1588_CLOCK_PCH + tristate "Intel PCH EG20T as PTP clock" + depends on PTP_1588_CLOCK + depends on PCH_GBE + help + This driver adds support for using the PCH EG20T as a PTP + clock. This clock is only useful if your PTP programs are + getting hardware time stamps on the PTP Ethernet packets + using the SO_TIMESTAMPING API. + + To compile this driver as a module, choose M here: the module + will be called ptp_pch. + endmenu
drivers/ptp/Makefile +1 -0
@@ -5,3 +5,4 @@ ptp-y := ptp_clock.o ptp_chardev.o ptp_sysfs.o obj-$(CONFIG_PTP_1588_CLOCK) += ptp.o obj-$(CONFIG_PTP_1588_CLOCK_IXP46X) += ptp_ixp46x.o +obj-$(CONFIG_PTP_1588_CLOCK_PCH) += ptp_pch.o
drivers/ptp/ptp_pch.c new file +731 -0
731 lines not on this page · raw message
Signature · 1 line
1.7.4.4
David Miller
maintainerYou still haven't submitted this properly.
First, you submitted the PCH_GBE driver changes before the EG20T PTP clock driver which it depends upon.
Second, you didn't number your patches. When you submit a patch series you must number them so that there is no confusion about what order those patches should be applied.
Richard Cochran
maintainerQuoted 5 lines · David Miller
You still haven't submitted this properly.
First, you submitted the
PCH_GBEdriver changes before the EG20T PTP clock driver which it depends upon.
David, both this pair of patches and the second pair apply cleanly to both Torvalds mainline and to net-next. So, what are you complaining about here? I am still confused.
Thanks,
Richard
David Miller
maintainerFrom: Richard Cochran <[email protected]>
Date: Fri, 9 Mar 2012 18:30:32 +0100
Quoted 10 lines · David Miller
Quoted 5 lines
You still haven't submitted this properly.
First, you submitted the
PCH_GBEdriver changes before the EG20T PTP clock driver which it depends upon.David, both this pair of patches and the second pair apply cleanly to both Torvalds mainline and to net-next. So, what are you complaining about here? I am still confused.
I'm complaining submitting changes properly, and that has nothing to do with where or how cleanly the patches apply.
Richard Cochran
maintainerQuoted 10 lines · David Miller
From: Richard Cochran <[email protected]>
Date: Fri, 9 Mar 2012 18:30:32 +0100Quoted 7 lines · David Miller
Quoted 5 lines
You still haven't submitted this properly.
First, you submitted the
PCH_GBEdriver changes before the EG20T PTP clock driver which it depends upon.
Quoted 6 lines
Quoted 3 lines
David, both this pair of patches and the second pair apply cleanly to both Torvalds mainline and to net-next. So, what are you complaining about here? I am still confused.
I'm complaining submitting changes properly, and that has nothing to do with where or how cleanly the patches apply.
After reviewing the patches, now I see the dependencies.
Sorry for the noise,
Richard