Skip to content

net: ethernet: ti: cpts: update and fixes

Grygorii Strashko linux-devicetree linux-omap lkml netdev 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest13 patches 2 repliesIn review
  2. v413 patches 5 repliesSuperseded
  3. v313 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v213 patches16 repliesSuperseded
v19 patches27 repliesSuperseded

Changes in v5 from the cover letter

- fixed copy paste error in cpts_release
- reworked cc.mult/shift and cc_mult initialization

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13net: ethernet: ti: cpts: switch to readl/writel_relaxed()drivers/net/ethernet/ti/cpts.c+2 -20 replies
2/13net: ethernet: ti: allow cpts to be built separatelydrivers/net/ethernet/ti/Kconfig drivers/net/ethernet/ti/Makefile drivers/net/ethernet/ti/cpsw.c +2 more+42 -190 replies
3/13net: ethernet: ti: cpsw: minimize direct access to struct cptsdrivers/net/ethernet/ti/cpsw.c drivers/net/ethernet/ti/cpts.h+54 -130 replies
4/13net: ethernet: ti: cpts: fix unbalanced clk api usage in cpts_register/unregisterdrivers/net/ethernet/ti/cpts.c+8 -60 replies
5/13net: ethernet: ti: cpts: fix registration orderdrivers/net/ethernet/ti/cpts.c+14 -100 replies
6/13net: ethernet: ti: cpts: disable cpts when unregistereddrivers/net/ethernet/ti/cpts.c+4 -00 replies
7/13net: ethernet: ti: cpts: clean up event list if event pool is emptydrivers/net/ethernet/ti/cpts.c+24 -20 replies
8/13net: ethernet: ti: cpts: drop excessive writes to CTRL and INT_EN regsdrivers/net/ethernet/ti/cpts.c+0 -20 replies
9/13net: ethernet: ti: cpts: rework initialization/deinitializationdrivers/net/ethernet/ti/cpsw.c drivers/net/ethernet/ti/cpts.c drivers/net/ethernet/ti/cpts.h+92 -570 replies
10/13net: ethernet: ti: cpts: move dt props parsing to cpts driverdrivers/net/ethernet/ti/cpsw.c drivers/net/ethernet/ti/cpsw.h drivers/net/ethernet/ti/cpts.c +1 more+34 -230 replies
11/13clocksource: export the clocks_calc_mult_shift to use by timestamp codekernel/time/clocksource.c+1 -00 replies
12/13net: ethernet: ti: cpts: calc mult and shift from refclk freqDocumentation/devicetree/bindings/net/cpsw.txt drivers/net/ethernet/ti/cpts.c+48 -100 replies
13/13net: ethernet: ti: cpts: fix overflow check perioddrivers/net/ethernet/ti/cpts.c drivers/net/ethernet/ti/cpts.h+8 -60 replies

Reviews trailers per patch

7 of 13 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRichard CochranThomas Gleixner
SeriesA-b
1/13A-b
2/13
3/13
4/13A-b
5/13A-b
6/13A-b
7/13
8/13A-b
9/13
10/13
11/13A-b
12/13
13/13A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 00/13] net: ethernet: ti: cpts: update and fixes

It is preparation series intended to clean up and optimize TI CPTS driver to facilitate further integration with other TI's SoCs like Keystone 2.

Changes in v5:
- fixed copy paste error in cpts_release
- reworked cc.mult/shift and cc_mult initialization

Changes in v4:
- fixed build error in patch
"net: ethernet: ti: cpts: clean up event list if event pool is empty"
- rebased on top of net-next

Changes in v3:
- patches reordered: fixes and small updates moved first
- added comments in code about cpts->cc_mult
- conversation range (maxsec) limited to 10sec

Changes in v2:
- patch "net: ethernet: ti: cpts: rework initialization/deinitialization" was split on 4 patches
- applied comments from Richard Cochran
- dropped patch
"net: ethernet: ti: cpts: add return value to tx and rx timestamp funcitons"
- new patches added:
"net: ethernet: ti: cpts: drop excessive writes to CTRL and INT_EN regs" and "clocksource: export the clocks_calc_mult_shift to use by timestamp code"

Links on prev versions:
v4: https://lkml.org/lkml/2016/12/6/496
v3: https://www.spinics.net/lists/devicetree/msg153474.html
v2: http://www.mail-archive.com/[email protected]/msg1282034.html
v1: http://www.spinics.net/lists/linux-omap/msg131925.html

Grygorii Strashko (11):
net: ethernet: ti: cpts: switch to readl/writel_relaxed()
net: ethernet: ti: allow cpts to be built separately
net: ethernet: ti: cpsw: minimize direct access to struct cpts
net: ethernet: ti: cpts: fix unbalanced clk api usage in cpts_register/unregister
net: ethernet: ti: cpts: fix registration order
net: ethernet: ti: cpts: disable cpts when unregistered
net: ethernet: ti: cpts: drop excessive writes to CTRL and INT_EN regs
net: ethernet: ti: cpts: rework initialization/deinitialization
net: ethernet: ti: cpts: move dt props parsing to cpts driver
net: ethernet: ti: cpts: calc mult and shift from refclk freq
net: ethernet: ti: cpts: fix overflow check period

Murali Karicheri (1):
clocksource: export the clocks_calc_mult_shift to use by timestamp code

WingMan Kwok (1):
net: ethernet: ti: cpts: clean up event list if event pool is empty

 Documentation/devicetree/bindings/net/cpsw.txt |   8 +-
 drivers/net/ethernet/ti/Kconfig                |   2 +-
 drivers/net/ethernet/ti/Makefile               |   3 +-
 drivers/net/ethernet/ti/cpsw.c                 |  84 ++++-----
 drivers/net/ethernet/ti/cpsw.h                 |   2 -
 drivers/net/ethernet/ti/cpts.c                 | 233 ++++++++++++++++++-------
 drivers/net/ethernet/ti/cpts.h                 |  80 ++++++++-
 kernel/time/clocksource.c                      |   1 +
 8 files changed, 297 insertions(+), 116 deletions(-)
Signature · 1 line
2.10.1