[v3, 1/6] net: dpaa2: move DPAA2 PTP driver out of staging/

2018-10-08 Thread Yangbo Lu
This patch is to move DPAA2 PTP driver out of staging/ since the dpaa2-eth had been moved out. Signed-off-by: Yangbo Lu --- Changes for v2: - Renamed files rtc.* as dpaa2-ptp.*. Changes for v3: - Added more help info for config FSL_DPAA2_ETH. --- drivers/net/ethernet/freescale

[v3, 5/6] net: dpaa2: remove unused code for dprtc

2018-10-08 Thread Yangbo Lu
This patch is to removed unused code for dprtc. This code will be re-added along with more features of dpaa2-ptp added. Signed-off-by: Yangbo Lu --- Changes for v2: - Added this patch. Changes for v3: - None. --- drivers/net/ethernet/freescale/dpaa2/dprtc-cmd.h | 97

[v3, 6/6] net: dpaa2: fix and improve dpaa2-ptp driver

2018-10-08 Thread Yangbo Lu
This patch is to fix and improve dpaa2-ptp driver in some places. - Fixed the return for some functions. - Replaced kzalloc with devm_kzalloc. - Removed dev_set_drvdata(dev, NULL). - Made ptp_dpaa2_caps const. Signed-off-by: Yangbo Lu --- Changes for v2: - Added this patch. Changes for

[v3, 3/6] net: dpaa2: fix dependency of config FSL_DPAA2_ETH

2018-10-08 Thread Yangbo Lu
The NETDEVICES dependency and ETHERNET dependency hadn't been required since dpaa2-eth was moved out of staging. Also allowed COMPILE_TEST for dpaa2-eth. Signed-off-by: Yangbo Lu --- Changes for v3: - Added this patch. --- drivers/net/ethernet/freescale/dpaa2/Kconfig |2 +- 1

[v3, 2/6] MAINTAINERS: update files maintained under DPAA2 PTP/ETHERNET

2018-10-08 Thread Yangbo Lu
The files maintained under DPAA2 PTP/ETHERNET needs to be updated since dpaa2 ptp driver had been moved into drivers/net/ethernet/freescale/dpaa2/. Signed-off-by: Yangbo Lu --- Changes for v2: - Updated files rtc* as dpaa2-ptp*. Changes for v3: - Fixed typo dpaa-ptp*. Should be

[v3, 4/6] net: dpaa2: rename rtc as ptp in dpaa2-ptp driver

2018-10-08 Thread Yangbo Lu
In dpaa2-ptp driver, it's odd to use rtc in names of some functions and structures except these dprtc APIs. This patch is to use ptp instead of rtc in names. Signed-off-by: Yangbo Lu --- Changes for v2: - Added this patch. Changes for v3: - Modified commit message. --- dr

[v2, 4/5] net: dpaa2: remove unused code for dprtc

2018-09-29 Thread Yangbo Lu
This patch is to removed unused code for dprtc. This code will be re-added along with more features of dpaa2-ptp added. Signed-off-by: Yangbo Lu --- Changes for v2: - Added this patch. --- drivers/net/ethernet/freescale/dpaa2/dprtc-cmd.h | 97 drivers/net/ethernet/freescale/dpaa2

[v2, 5/5] net: dpaa2: fix and improve dpaa2-ptp driver

2018-09-29 Thread Yangbo Lu
This patch is to fix and improve dpaa2-ptp driver in some places. - Fixed the return for some functions. - Replaced kzalloc with devm_kzalloc. - Removed dev_set_drvdata(dev, NULL). - Made ptp_dpaa2_caps const. Signed-off-by: Yangbo Lu --- Changes for v2: - Added this patch. --- drivers

[v2, 3/5] net: dpaa2: rename rtc as ptp in dpaa2-ptp driver

2018-09-29 Thread Yangbo Lu
In dpaa2-ptp driver, it's odd to use rtc in names of some functions and structures except for these dprtc APIs. This patch is to use ptp instead of rtc in names. Signed-off-by: Yangbo Lu --- Changes for v2: - Added this patch. --- drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c |

[v2, 1/5] net: dpaa2: move DPAA2 PTP driver out of staging/

2018-09-29 Thread Yangbo Lu
This patch is to move DPAA2 PTP driver out of staging/ since the dpaa2-eth had been moved out. Signed-off-by: Yangbo Lu --- Changes for v2: - Renamed files rtc.* as dpaa2-ptp.*. --- drivers/net/ethernet/freescale/Kconfig |9 + drivers/net/ethernet/freescale/dpaa2

[v2, 2/5] MAINTAINERS: update files maintained under DPAA2 PTP/ETHERNET

2018-09-29 Thread Yangbo Lu
The files maintained under DPAA2 PTP/ETHERNET needs to be updated since dpaa2 ptp driver had been moved into drivers/net/ethernet/freescale/dpaa2/. Signed-off-by: Yangbo Lu --- Changes for v2: - Updated files rtc* as dpaa2-ptp*. --- MAINTAINERS | 11 --- 1 files changed, 8

[PATCH 2/2] MAINTAINERS: update files maintained under DPAA2 PTP/ETHERNET

2018-09-27 Thread Yangbo Lu
The files maintained under DPAA2 PTP/ETHERNET needs to be updated since dpaa2 ptp driver had been moved into drivers/net/ethernet/freescale/dpaa2/. Signed-off-by: Yangbo Lu --- MAINTAINERS | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS b

[PATCH 1/2] net: dpaa2: move DPAA2 PTP driver out of staging/

2018-09-27 Thread Yangbo Lu
This patch is to move DPAA2 PTP driver out of staging/ since the dpaa2-eth had been moved out. Signed-off-by: Yangbo Lu --- drivers/net/ethernet/freescale/Kconfig |9 + drivers/net/ethernet/freescale/dpaa2/Kconfig | 15 +++ drivers/net/ethernet

[v2, 1/3] staging: fsl-dpaa2/eth: Add support for hardware timestamping

2018-04-26 Thread Yangbo Lu
From: Ioana Radulescu Hardware timestamping is supported both on Rx and Tx paths. On Rx, timestamping is enabled for all frames. On Tx, we only instruct the hardware to timestamp the frames marked accordingly by the stack. Signed-off-by: Ioana Radulescu Signed-off-by: Yangbo Lu --- Changes

[v2, 2/3] staging: fsl-dpaa2/eth: add the get_ts_info interface for ethtool

2018-04-26 Thread Yangbo Lu
Since hardware timestmaping has been supported in driver, this patch is to add the get_ts_info interface for ethtool to show timestamping capability. Signed-off-by: Yangbo Lu --- Changes for v2: - Added this patch. --- drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h |1 + drivers

[v2, 3/3] staging: fsl-dpaa2/rtc: support phc_index of ethtool_ts_info

2018-04-26 Thread Yangbo Lu
This patch is to support phc_index of ethtool_ts_info. Also make the rtc drvier depend on FSL_DPAA2_ETH because this driver is only useful when PTP programs are getting hardware time stamps on the PTP Ethernet packets using the SO_TIMESTAMPING API. Signed-off-by: Yangbo Lu --- Changes for v2

[PATCH] staging: fsl-dpaa2/eth: Add support for hardware timestamping

2018-04-25 Thread Yangbo Lu
From: Ioana Radulescu Hardware timestamping is supported both on Rx and Tx paths. On Rx, timestamping is enabled for all frames. On Tx, we only instruct the hardware to timestamp the frames marked accordingly by the stack. Signed-off-by: Ioana Radulescu Signed-off-by: Yangbo Lu --- drivers

[v3, 2/2] MAINTAINERS: add maintainer for the DPAA2 PTP clock driver

2018-04-22 Thread Yangbo Lu
This patch is to add maintainer for the DPAA2 PTP clock driver. Signed-off-by: Yangbo Lu --- Changes for v2: - None. Changes for v3: - None. --- MAINTAINERS |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 0a1410d

[v3, 1/2] staging: fsl-dpaa2/rtc: add rtc driver

2018-04-22 Thread Yangbo Lu
-stamping - 2 Time-stamp alarms - 3 FIPER pulse generators - Phase adjusted output timer clock Currently this driver only supports basic functions like settime/gettime/adjtime/adjfreq. Signed-off-by: Yangbo Lu --- Changes for v2: - Removed some comments. - Fixed a return value

[v2, 2/2] MAINTAINERS: add maintainer for the DPAA2 PTP clock driver

2018-04-19 Thread Yangbo Lu
This patch is to add maintainer for the DPAA2 PTP clock driver. Signed-off-by: Yangbo Lu --- Changes for v2: - None. --- MAINTAINERS |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 0a1410d..7733efa 100644 --- a/MAINTAINERS

[v2, 1/2] staging: fsl-dpaa2/rtc: add rtc driver

2018-04-19 Thread Yangbo Lu
-stamping - 2 Time-stamp alarms - 3 FIPER pulse generators - Phase adjusted output timer clock Currently this driver only supports basic functions like settime/gettime/adjtime/adjfreq. Signed-off-by: Yangbo Lu --- Changes for v2: - Removed some comments. - Fixed a return value

[PATCH 1/2] staging: fsl-dpaa2/rtc: add rtc driver

2018-04-19 Thread Yangbo Lu
-stamping - 2 Time-stamp alarms - 3 FIPER pulse generators - Phase adjusted output timer clock Currently this driver only supports basic functions like settime/gettime/adjtime/adjfreq. Signed-off-by: Yangbo Lu --- drivers/staging/fsl-dpaa2/Kconfig |8 + drivers/staging/fsl-dpaa2

[PATCH 2/2] MAINTAINERS: add maintainer for the DPAA2 PTP clock driver

2018-04-19 Thread Yangbo Lu
This patch is to add maintainer for the DPAA2 PTP clock driver. Signed-off-by: Yangbo Lu --- MAINTAINERS |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 0a1410d..7733efa 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4395,6 +4395,12