Convert to a common ocelot_port_txtstamp_request() for TX timestamp
request handling.
Signed-off-by: Yangbo Lu
---
drivers/net/dsa/ocelot/felix.c | 14 +-
drivers/net/ethernet/mscc/ocelot.c | 24 +---
drivers/net/ethernet/mscc/ocelot_net.c | 18
configuration could be done during transmitting. Non-onestep-Sync packet
with one-step timestamp request should fall back to use two-step timestamp.
Signed-off-by: Yangbo Lu
---
drivers/net/ethernet/mscc/ocelot.c | 57 ++
drivers/net/ethernet/mscc/ocelot_net.c | 5
This patch-set is to support ocelot PTP Sync one-step timestamping.
Actually before that, this patch-set cleans up and optimizes the
DSA slave tx timestamp request handling process.
Yangbo Lu (3):
net: dsa: optimize tx timestamp request handling
net: mscc: ocelot: convert to
put skb cloning into port_txtstamp where it really needs.
Signed-off-by: Yangbo Lu
---
Documentation/networking/timestamping.rst | 7 +--
.../net/dsa/hirschmann/hellcreek_hwtstamp.c | 20 --
.../net/dsa/hirschmann/hellcreek_hwtstamp.h | 2 +-
drivers/net/dsa/mv88e6xxx
Convert system_wq queue_work() to schedule_work() which is
a wrapper around it, since the former is a rare construct.
Fixes: 7294380c5211 ("enetc: support PTP Sync packet one-step timestamping")
Signed-off-by: Yangbo Lu
---
drivers/net/ethernet/freescale/enetc/enetc.c | 2 +-
1 file
enetc_start_xmit() which may be called by worker, rather than in
enetc_xmit(). Otherwise, the worker calling enetc_start_xmit() after
bit lock released is not able to lock again for transfer.
Fixes: 7294380c5211 ("enetc: support PTP Sync packet one-step timestamping")
Signed-off-by:
.
- Update PTP Sync packet originTimestamp field with current timestamp.
- Configure single-step register for correctionField offeset and UDP
checksum update.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- Rebased.
- Fixed issues from patchwork checks.
- netif_tx_lock for one
ges making sure
start to send current message only after the last one
completed on hardware. (ENETC single-step register has to
be dynamically configured per message.) So, marking TX
timestamp type per skb is required.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- Rebased.
Changes for
.
- Set bit lock when transmitted one-step packet, and scheduled
work when completed. The worker cleared the bit lock, and
transmitted one skb in skb queue if has, instead of a loop.
Yangbo Lu (2):
enetc: mark TX timestamp type per skb
enetc: support PTP Sync packet one
current timestamp.
- Configure single-step register for correctionField offeset and UDP
checksum update.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- Rebased.
- Fixed issues from patchwork checks.
- netif_tx_lock for one-step timestamping packet sending.
---
drivers/net
ges making sure
start to send current message only after the last one
completed on hardware. (ENETC single-step register has to
be dynamically configured per message.) So, marking TX
timestamp type per skb is required.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- Rebased.
---
drivers/
transmitted on hardware before transmitting current one.
Changes for v2:
- Rebased.
- Fixed issues from patchwork checks.
- netif_tx_lock for one-step timestamping packet sending.
Yangbo Lu (2):
enetc: mark TX timestamp type per skb
enetc: support PTP Sync packet one-step
transmitted on hardware before transmitting current one.
Yangbo Lu (2):
enetc: mark TX timestamp type per skb
enetc: support PTP Sync packet one-step timestamping
drivers/net/ethernet/freescale/enetc/enetc.c | 206 --
drivers/net/ethernet/freescale/enetc/enetc.h | 24
current timestamp.
- Configure single-step register for correctionField offeset and UDP
checksum update.
Signed-off-by: Yangbo Lu
---
drivers/net/ethernet/freescale/enetc/enetc.c | 204 --
drivers/net/ethernet/freescale/enetc/enetc.h | 21 +-
.../ethernet/freescale/enetc
ges making sure
start to send current message only after the last one
completed on hardware. (ENETC single-step register has to
be dynamically configured per message.) So, marking TX
timestamp type per skb is required.
Signed-off-by: Yangbo Lu
---
drivers/net/ethernet/freescale/enetc/enetc.c |
Current calculation for diff of TMR_ADD register value may have
64-bit overflow in this code line, when long type scaled_ppm is
large.
adj *= scaled_ppm;
This patch is to resolve it by using mul_u64_u64_div_u64().
Signed-off-by: Yangbo Lu
---
drivers/ptp/ptp_qoriq.c | 13 +++--
1 file
The timestamp fields should be copied to new skb too in
A-050385 workaround for later TX timestamping handling.
Fixes: 3c68b8fffb48 ("dpaa_eth: FMan erratum A050385 workaround")
Signed-off-by: Yangbo Lu
---
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 10 +-
1 file
Added the missing stub function for ptp_get_msgtype().
Reported-by: Randy Dunlap
Fixes: 036c508ba95e ("ptp: Add generic ptp message type function")
Signed-off-by: Yangbo Lu
---
include/linux/ptp_classify.h | 8
1 file changed, 8 insertions(+)
diff --git a/include/linux/ptp_
The FIPER3 (fixed interval period pulse generator) is supported on
DPAA2 and ENETC network controller hardware. This patch is to support
it in ptp_qoriq driver.
Signed-off-by: Yangbo Lu
Acked-by: Vladimir Oltean
---
Changes for v2:
- Some improvement in code.
- Added ACK from
The FIPER3 (fixed interval period pulse generator) is supported on
DPAA2 and ENETC network controller hardware. This patch-set is to
support it in ptp_qoriq driver and dt-binding.
Changes for v2:
- Some improvement in code.
- Added ACK from Vladimir.
Yangbo Lu (2):
dt-binding: ptp_qoriq
Add fsl,tmr-fiper3 property definition which is supported only
on DPAA2 and ENETC network controller hardware.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
---
Documentation/devicetree/bindings/ptp/ptp-qoriq.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation
Fix below sparse warning in dpmac.c.
warning: cast to restricted __le64
Signed-off-by: Yangbo Lu
---
Changes for v2:
- Fixed in right way.
---
drivers/net/ethernet/freescale/dpaa2/dpmac-cmd.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet
skb queue.
- mutex lock is used to ensure the last one-step timestamping packet
has already been transmitted on hardware through TX confirmation queue
before transmitting current packet.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
Changes for v3:
- Fixed build issue on
This patch is to add APIs of 1588 single step timestamping.
- dpni_set_single_step_cfg
- dpni_get_single_step_cfg
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
Changes for v3:
- Fixed sparse warnings.
Changes for v4:
- None.
---
drivers/net/ethernet/freescale
s use skb->cb[0] to mark the
timestamping request for each skb.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- Removed unused variable priv in dpaa2_eth_xdp_create_fd().
Changes for v3:
- None.
Changes for v4:
- None.
---
drivers/net/ethernet/freescale/dpaa2/dpaa2-et
sending.
So in driver, at least clock gettime operation will be needed
to make sure right time is written to hardware frame annotation
for one step timestamping.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
Changes for v3:
- Fixed sparse warning.
Changes for v4
Invoke dpaa2_eth_enable_tx_tstamp() once in code after building FD,
rather than calling it in dpaa2_eth_build_single_fd(),
dpaa2_eth_build_sg_fd_single_buf(), and dpaa2_eth_build_sg_fd().
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
Changes for v3:
- None.
Changes for v4
is ready.
- Added comments in using onestep_tstamp_lock.
- Dropped dpmac.c sparse warning fix-up patch.
Yangbo Lu (5):
dpaa2-eth: add APIs of 1588 single step timestamping
dpaa2-eth: define a global ptp_qoriq structure pointer
dpaa2-eth: invoke dpaa2_eth_enable_tx_tstamp() once
sending.
So in driver, at least clock gettime operation will be needed
to make sure right time is written to hardware frame annotation
for one step timestamping.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
Changes for v3:
- Fixed sparse warning.
---
drivers/net/ethernet
Invoke dpaa2_eth_enable_tx_tstamp() once in code after building FD,
rather than calling it in dpaa2_eth_build_single_fd(),
dpaa2_eth_build_sg_fd_single_buf(), and dpaa2_eth_build_sg_fd().
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
Changes for v3:
- None.
---
drivers
s use skb->cb[0] to mark the
timestamping request for each skb.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- Removed unused variable priv in dpaa2_eth_xdp_create_fd().
Changes for v3:
- None.
---
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 26 +++-
Fix below sparse warning in dpmac.c.
warning: cast to restricted __le64
Signed-off-by: Yangbo Lu
---
Changes for v3:
- Added this patch.
---
drivers/net/ethernet/freescale/dpaa2/dpmac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/freescale
This patch is to add APIs of 1588 single step timestamping.
- dpni_set_single_step_cfg
- dpni_get_single_step_cfg
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
Changes for v3:
- Fixed sparse warnings.
---
drivers/net/ethernet/freescale/dpaa2/dpni-cmd.h | 21
ble priv in dpaa2_eth_xdp_create_fd().
Changes for v3:
- Fixed sparse warnings.
- Fix build issue on 32-bit.
- Converted to use ptp_parse_header.
Yangbo Lu (6):
dpaa2-eth: add APIs of 1588 single step timestamping
dpaa2-eth: define a global ptp_qoriq structure pointer
dp
skb queue.
- mutex lock is used to ensure the last one-step timestamping packet
has already been transmitted on hardware through TX confirmation queue
before transmitting current packet.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
Changes for v3:
- Fixed build issue on
The FIPER3 (fixed interval period pulse generator) is supported on
DPAA2 and ENETC network controller hardware. This patch is to support
it in ptp_qoriq driver.
Signed-off-by: Yangbo Lu
---
drivers/ptp/ptp_qoriq.c | 23 ++-
include/linux/fsl/ptp_qoriq.h | 3 +++
2
Add fsl,tmr-fiper3 property definition which is supported only
on DPAA2 and ENETC network controller hardware.
Signed-off-by: Yangbo Lu
---
Documentation/devicetree/bindings/ptp/ptp-qoriq.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/ptp/ptp
The FIPER3 (fixed interval period pulse generator) is supported on
DPAA2 and ENETC network controller hardware. This patch-set is to
support it in ptp_qoriq driver and dt-binding.
Yangbo Lu (2):
dt-binding: ptp_qoriq: support fsl,tmr-fiper3 property
ptp_qoriq: support FIPER3
.../devicetree
sending.
So in driver, at least clock gettime operation will be needed
to make sure right time is written to hardware frame annotation
for one step timestamping.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
---
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 4
drivers/net
Invoke dpaa2_eth_enable_tx_tstamp() once in code after building FD,
rather than calling it in dpaa2_eth_build_single_fd(),
dpaa2_eth_build_sg_fd_single_buf(), and dpaa2_eth_build_sg_fd().
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
---
drivers/net/ethernet/freescale/dpaa2/dpaa2
s use skb->cb[0] to mark the
timestamping request for each skb.
Signed-off-by: Yangbo Lu
---
Change for v2:
- Removed unused variable priv in dpaa2_eth_xdp_create_fd().
---
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 26 +++-
drivers/net/ethernet/freesca
skb queue.
- mutex lock is used to ensure the last one-step timestamping packet
has already been transmitted on hardware through TX confirmation queue
before transmitting current packet.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
---
drivers/net/ethernet/freescale/dpaa2/dp
ble priv in dpaa2_eth_xdp_create_fd().
Yangbo Lu (5):
dpaa2-eth: add APIs of 1588 single step timestamping
dpaa2-eth: define a global ptp_qoriq structure pointer
dpaa2-eth: invoke dpaa2_eth_enable_tx_tstamp() once in code
dpaa2-eth: utilize skb->cb[0] for hardware timestamping
dpaa2-eth: s
This patch is to add APIs of 1588 single step timestamping.
- dpni_set_single_step_cfg
- dpni_get_single_step_cfg
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
---
drivers/net/ethernet/freescale/dpaa2/dpni-cmd.h | 21 +++
drivers/net/ethernet/freescale/dpaa2/dpni.c | 73
This patch is to add APIs of 1588 single step timestamping.
- dpni_set_single_step_cfg
- dpni_get_single_step_cfg
Signed-off-by: Yangbo Lu
---
drivers/net/ethernet/freescale/dpaa2/dpni-cmd.h | 21 +++
drivers/net/ethernet/freescale/dpaa2/dpni.c | 73 +
drivers
skb queue.
- mutex lock is used to ensure the last one-step timestamping packet
has already been transmitted on hardware through TX confirmation queue
before transmitting current packet.
Signed-off-by: Yangbo Lu
---
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c |
s use skb->cb[0] to mark the
timestamping request for each skb.
Signed-off-by: Yangbo Lu
---
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 25 +++-
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h | 13 ++--
2 files changed, 23 insertions(+), 15 deletions(
sending.
So in driver, at least clock gettime operation will be needed
to make sure right time is written to hardware frame annotation
for one step timestamping.
Signed-off-by: Yangbo Lu
---
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 4
drivers/net/ethernet/freescale/dpaa2/dpaa2
Invoke dpaa2_eth_enable_tx_tstamp() once in code after building FD,
rather than calling it in dpaa2_eth_build_single_fd(),
dpaa2_eth_build_sg_fd_single_buf(), and dpaa2_eth_build_sg_fd().
Signed-off-by: Yangbo Lu
---
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 31
not, transmit immediately.
- Schedule a work to transmit skbs in skb queue.
- mutex lock is used to ensure the last one-step timestamping packet
has already been transmitted on hardware through TX confirmation queue
before transmitting current packet.
Yangbo Lu (5):
dpaa2-eth: add APIs of 1588 sin
-by: Vladimir Oltean
Signed-off-by: Yangbo Lu
---
drivers/net/ethernet/mscc/ocelot.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/net/ethernet/mscc/ocelot.c
b/drivers/net/ethernet/mscc/ocelot.c
index e05a48c..82bde07 100644
--- a/drivers/net/ethernet
The trap action should be copying the frame to CPU and
dropping it for forwarding, but current setting was just
copying frame to CPU.
Fixes: b596229448dd ("net: mscc: ocelot: Add support for tcam")
Signed-off-by: Yangbo Lu
Acked-by: Allan W. Nielsen
---
Changes for v4:
- Add
The trap action should be copying the frame to CPU and
dropping it for forwarding, but current setting was just
copying frame to CPU.
Signed-off-by: Yangbo Lu
---
drivers/net/ethernet/mscc/ocelot_ace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/mscc
The ingress ports setting of rule should support covering all ports.
This patch is to use u16 ingress_port for ingress port mask setting
for ace rule. One bit corresponds one port.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
---
drivers/net/ethernet/mscc/ocelot_ace.c| 2
All the PTP messages over Ethernet have etype 0x88f7 on them.
Use etype as the key to trap PTP messages.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- Added this patch.
---
drivers/net/ethernet/mscc/ocelot.c | 28
1 file changed, 28 insertions(+)
diff
The trap action should be copying the frame to CPU and
dropping it for forwarding, but current setting was just
copying frame to CPU.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
---
drivers/net/ethernet/mscc/ocelot_ace.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions
The ocelot_ace_rule is not port specific. We don't need a member port
in ocelot_ace_rule structure. Drop it and use member ocelot instead.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
---
drivers/net/ethernet/mscc/ocelot_ace.c| 12 ++--
drivers/net/ethernet
This patch-set is to support PTP Ethernet frames trapping.
Before that, fix some issues and improve the ocelot_ace driver
for using.
---
Changes for v2:
- Added PTP Ethernet frames trapping support patch.
Yangbo Lu (4):
ocelot_ace: drop member port from ocelot_ace_rule structure
The ocelot_ace_rule is not port specific. We don't need a member port
in ocelot_ace_rule structure. Drop it and use member ocelot instead.
Signed-off-by: Yangbo Lu
---
drivers/net/ethernet/mscc/ocelot_ace.c| 12 ++--
drivers/net/ethernet/mscc/ocelot_ace.h| 2 +-
driver
The ingress ports setting of rule should support covering all ports.
This patch is to use u16 ingress_port for ingress port mask setting
for ace rule. One bit corresponds one port.
Signed-off-by: Yangbo Lu
---
drivers/net/ethernet/mscc/ocelot_ace.c| 2 +-
drivers/net/ethernet/mscc
This patch-set is to fix some issues and improve the ocelot_ace driver
for using.
Yangbo Lu (3):
ocelot_ace: drop member port from ocelot_ace_rule structure
ocelot_ace: fix ingress ports setting for rule
ocelot_ace: fix action of trap
drivers/net/ethernet/mscc/ocelot_ace.c| 20
The trap action should be copying the frame to CPU and
dropping it for forwarding, but current setting was just
copying frame to CPU.
Signed-off-by: Yangbo Lu
---
drivers/net/ethernet/mscc/ocelot_ace.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net
This patch to add enetc_ptp driver into QorIQ PTP list
for maintaining.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
Changes for v3:
- None.
---
MAINTAINERS |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index 604bca2
The 1588 timer on eTSEC Ethernet controller uses different
register memory map with DPAA Ethernet controller.
Now the new ENETC Ethernet controller uses same reigster
memory map with DPAA. To support ENETC, let's use register
memory map of DPAA/ENETC in default.
Signed-off-by: Yang
This patch is to add PTP clock driver for ENETC.
The driver reused QorIQ PTP clock driver.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
Changes for v3:
- Converted to use ptp_qoriq_free().
---
drivers/net/ethernet/freescale/enetc/Kconfig | 12 ++
drivers/net
This patch is to add QorIQ PTP support for ENETC.
ENETC PTP driver which is a PCI driver for same
1588 timer IP block will reuse QorIQ PTP driver.
Signed-off-by: Yangbo Lu
---
Chanbges for v2:
- None.
Chanbges for v3:
- None.
---
drivers/ptp/Kconfig |2 +-
1 files changed, 1
There is QorIQ 1588 timer IP block on the new ENETC Ethernet
controller. However it uses little endian mode which is different
with before. This patch is to add little endian support for the
driver by using "little-endian" dts node property.
Signed-off-by: Yangbo Lu
---
Chan
there
is still dependency for ENETC PTP node upstreaming. This will
be done in the near future. The hardware timestamping support
for ENETC is done but needs to be reworked with new method in
internal git tree, and will be sent out soon.
Yangbo Lu (9):
ptp_qoriq: make structure/function names
Specify "little-endian" property if the 1588 timer IP block
is little-endian mode. The default endian mode is big-endian.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
Changes for v3:
- None.
---
.../devicetree/bindings/ptp/ptp-qoriq.txt |3 ++
hasn't
changed any functions.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- Fixed build issue in gianfar/dpaa ethtool driver.
Changes for v3:
- None.
---
drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c |2 +-
drivers/net/ethernet/freescale/gian
This patch is to make functions of ptp operations global,
so that ENETC PTP driver which is a PCI driver for same
1588 timer IP block could reuse them.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
Changes for v3:
- None.
---
drivers/ptp/ptp_qoriq.c | 27
Moved QorIQ PTP clock initialization/free into new functions
ptp_qoriq_init()/ptp_qoriq_free(). These functions could also
be reused by ENETC PTP drvier which is a PCI driver for same
1588 timer IP block.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
Changes for v3
This patch is to add QorIQ PTP support for ENETC.
ENETC PTP driver which is a PCI driver for same
1588 timer IP block will reuse QorIQ PTP driver.
Signed-off-by: Yangbo Lu
---
Chanbges for v2:
- None.
---
drivers/ptp/Kconfig |2 +-
1 files changed, 1 insertions(+), 1 deletions
This patch to add enetc_ptp driver into QorIQ PTP list
for maintaining.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
---
MAINTAINERS |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index 019a2bc..f0b50f8 100644
--- a/MAINTAINERS
This patch is to add PTP clock driver for ENETC.
The driver reused QorIQ PTP clock driver.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
---
drivers/net/ethernet/freescale/enetc/Kconfig | 12 ++
drivers/net/ethernet/freescale/enetc/Makefile|3 +
drivers/net/ethernet
Moved QorIQ PTP clock initialization into new function
qoriq_ptp_init(). This function could also be reused
by ENETC PTP drvier which is a PCI driver for same 1588
timer IP block.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
---
drivers/ptp/ptp_qoriq.c | 120
Specify "little-endian" property if the 1588 timer IP block
is little-endian mode. The default endian mode is big-endian.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
---
.../devicetree/bindings/ptp/ptp-qoriq.txt |3 +++
1 files changed, 3 insertions(+), 0
There is QorIQ 1588 timer IP block on the new ENETC Ethernet
controller. However it uses little endian mode which is different
with before. This patch is to add little endian support for the
driver by using "little-endian" dts node property.
Signed-off-by: Yangbo Lu
---
Chan
hasn't
changed any functions.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- Fixed build issue in gianfar/dpaa ethtool driver.
---
drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c |2 +-
drivers/net/ethernet/freescale/gianfar_ethtool.c |2 +-
drivers
The 1588 timer on eTSEC Ethernet controller uses different
register memory map with DPAA Ethernet controller.
Now the new ENETC Ethernet controller uses same reigster
memory map with DPAA. To support ENETC, let's use register
memory map of DPAA/ENETC in default.
Signed-off-by: Yang
there
is still dependency for ENETC PTP node upstreaming. This will
be done in the near future. The hardware timestamping support
for ENETC is done but needs to be reworked with new method in
internal git tree, and will be sent out soon.
Yangbo Lu (9):
ptp_qoriq: make structure/function names
This patch is to make functions of ptp operations global,
so that ENETC PTP driver which is a PCI driver for same
1588 timer IP block could reuse them.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
---
drivers/ptp/ptp_qoriq.c | 27 ---
include
Moved QorIQ PTP clock initialization into new function
qoriq_ptp_init(). This function could also be reused
by ENETC PTP drvier which is a PCI driver for same 1588
timer IP block.
Signed-off-by: Yangbo Lu
---
drivers/ptp/ptp_qoriq.c | 120
The 1588 timer on eTSEC Ethernet controller uses different
register memory map with DPAA Ethernet controller.
Now the new ENETC Ethernet controller uses same reigster
memory map with DPAA. To support ENETC, let's use register
memory map of DPAA/ENETC in default.
Signed-off-by: Yang
Specify "little-endian" property if the 1588 timer IP block
is little-endian mode. The default endian mode is big-endian.
Signed-off-by: Yangbo Lu
---
.../devicetree/bindings/ptp/ptp-qoriq.txt |3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Doc
This patch is to make functions of ptp operations global,
so that ENETC PTP driver which is a PCI driver for same
1588 timer IP block could reuse them.
Signed-off-by: Yangbo Lu
---
drivers/ptp/ptp_qoriq.c | 27 ---
include/linux/fsl/ptp_qoriq.h |9
This patch is to add QorIQ PTP support for ENETC.
ENETC PTP driver which is a PCI driver for same
1588 timer IP block will reuse QorIQ PTP driver.
Signed-off-by: Yangbo Lu
---
drivers/ptp/Kconfig |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/ptp/Kconfig b
there
is still dependency for ENETC PTP node upstreaming. This will
be done in the near future. The hardware timestamping support
for ENETC is done but needs to be reworked with new method in
internal git tree, and will be sent out soon.
Yangbo Lu (9):
ptp_qoriq: make structure/function names
hasn't
changed any functions.
Signed-off-by: Yangbo Lu
---
drivers/ptp/ptp_qoriq.c | 288 +++---
drivers/ptp/ptp_qoriq_debugfs.c | 36 +++---
include/linux/fsl/ptp_qoriq.h | 14 +-
3 files changed, 169 insertions(+), 169 deletions(-)
There is QorIQ 1588 timer IP block on the new ENETC Ethernet
controller. However it uses little endian mode which is different
with before. This patch is to add little endian support for the
driver by using "little-endian" dts node property.
Signed-off-by: Yangbo Lu
---
drivers/ptp/p
This patch to add enetc_ptp driver into QorIQ PTP list
for maintaining.
Signed-off-by: Yangbo Lu
---
MAINTAINERS |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index 019a2bc..f0b50f8 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -6093,6
This patch is to add PTP clock driver for ENETC.
The driver reused QorIQ PTP clock driver.
Signed-off-by: Yangbo Lu
---
drivers/net/ethernet/freescale/enetc/Kconfig | 12 ++
drivers/net/ethernet/freescale/enetc/Makefile|3 +
drivers/net/ethernet/freescale/enetc/enetc_hw.h |5
hardware. Below is an example to enable fiper1 loopback.
echo 1 > /sys/kernel/debug/2d10e00.ptp_clock/fiper1-loopback
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
Changes for v3:
- Converted to use debugfs.
---
drivers/ptp/Kconfig |2 +-
drivers/ptp/Makef
Documented "fsl,extts-fifo" property.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- Modified binding description.
Changes for v3:
- Rephrased fsl,extts-fifo.
---
.../devicetree/bindings/ptp/ptp-qoriq.txt |2 ++
1 files changed, 2 insertions(+), 0 deletion
The tmr_tevent register would update event bits
no matter tmr_temask bits were set or not. So we
should get interrupts by tmr_tevent & tmr_temask,
and clean up interrupts in tmr_tevent before
enabling them.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- Remove useless lock/regi
should be cleaned up before enabling external
trigger interrupts. Otherwise, there will be interrupts immediately
just after enabling external trigger interrupts.
Signed-off-by: Yangbo Lu
Signed-off-by: Vladimir Oltean
---
Changes for v2:
- Converted to use extts_clean_up instead.
Chan
Added drivers/ptp/ptp_qoriq_debugfs.c into QorIQ PTP clock driver list.
Signed-off-by: Yangbo Lu
---
Changes for v3:
- Added this patch.
---
MAINTAINERS |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index a592b99..098d0eb 100644
--- a
required to be added into 1588 timer dts node whose
hardware supports it. The work will be done for some QorIQ platforms dts in
the near future.
Yangbo Lu (6):
ptp_qoriq: fix interrupt enabling and handling
ptp_qoriq: support external trigger stamp FIFO
dt-binding: ptp_qoriq: document "
This patch is to add external trigger stamp fifo support
for 1588 timer.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- None.
Changes for v3:
- None.
---
arch/arm/boot/dts/ls1021a.dtsi |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts
clock in default.
Signed-off-by: Yangbo Lu
---
Changes for v2:
- Converted to use imply for PTP_1588_CLOCK.
- Modified commit message.
---
drivers/net/ethernet/freescale/dpaa2/Kconfig |5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ether
1 - 100 of 231 matches
Mail list logo