Skip to content

Move ARC timer code into drivers/clocksource/

Vineet Gupta linux-snps-arc lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest8 patches 8 repliesIn review
  2. v310 patches 4 repliesSuperseded
  3. v2 posting 2/210 patches 14 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 posting 1/20 of 10 patches1 replySuperseded
v19 patches25 repliesSuperseded

Changes in v4 from the cover letter

- dropped 2 patches.
"rtc: implement read loop in "C" vs. inline asm" was a bug fix which is merged in upstream already
"gfrc: boot print alongside other timers" squashed in final patch

- ARC_TIMERS_64BIT now have explicit dependency on ARC_TIMERS to fix the
build issue when only 64BIT optin is selected [Daniel]

- 0day build reported error with aux header movement patch - problem is in nps irqchip driver, which needs to be fixed before it can start using the new header

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8ARC: timer: gfrc, rtc: deuglify big endian codearch/arc/kernel/time.c+8 -220 replies
2/8ARC: timer: gfrc, rtc: Read BCR to detect whether hardware exists ...arch/arc/kernel/time.c+13 -50 replies
3/8ARC: time: move time_init() out of the driverarch/arc/kernel/setup.c arch/arc/kernel/time.c+11 -90 replies
4/8ARC: timer: Build gfrc, rtc under same option (64-bit timers)arch/arc/Kconfig arch/arc/configs/nsimosci_hs_smp_defconfig arch/arc/configs/vdk_hs38_smp_defconfig +2 more+8 -180 replies
5/8ARC: breakout aux handling into a separate headerarch/arc/include/asm/arcregs.h arch/arc/include/asm/mcip.h include/soc/arc/aux.h+65 -850 replies
6/8ARC: move mcip.h into include/soc and adjust the includesarch/arc/kernel/mcip.c arch/arc/kernel/time.c arch/arc/plat-axs10x/axs10x.c +1 more+5 -90 replies
7/8ARC: breakout timer include code into separate header ...arch/arc/include/asm/arcregs.h arch/arc/kernel/time.c include/soc/arc/timers.h+42 -230 replies
8/8clocksource: import ARC timer driverMAINTAINERS arch/arc/Kconfig arch/arc/kernel/Makefile +3 more+31 -278 replies

Reviews trailers per patch

3 of 8 patches have a Reviewed-by or Acked-by.

PatchDaniel Lezcano
1/8
2/8
3/8A-b
4/8
5/8
6/8A-b
7/8
8/8A-b

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

Read the v4 thread

Cover letter [PATCH v4 0/8] Move ARC timer code into drivers/clocksource/

Hi,

This series addresses the long pending move of ARC timer code into drivers/clocksource/.

Thx,
-Vineet

v3 -> v4

- dropped 2 patches.
"rtc: implement read loop in "C" vs. inline asm" was a bug fix which is merged in upstream already
"gfrc: boot print alongside other timers" squashed in final patch

- ARC_TIMERS_64BIT now have explicit dependency on ARC_TIMERS to fix the
build issue when only 64BIT optin is selected [Daniel]

- 0day build reported error with aux header movement patch - problem is in nps irqchip driver, which needs to be fixed before it can start using the new header

v2 -> v3

- Fixed a bunch of typos in changelogs [Daniel]

- aux.h: stubs for {read,write}_aux_reg() inline functions(vs. macros)
to cleanly avoid warnings in !ARC builds [Daniel]

- Remove __maybe_used in driver given above [Daniel]

- Ran checkpatch and fixed some space/tab issues

v1 -> v2

- Now 10 patches instead of 9 to handle BIG ENDIAN in arch agnostic way

- Moved fix for RTC (v1 2/9) ahead of queue (v2 1/10) to allow for easier stable backport

- Folded the Kconfig items for RTC and GFRC into single ARC_TIMERS_64BIT So no special casing for UP/SMP in Kconfig.
Driver already handles the UP vs. SMP at runtime as needed

- convert WARN() to pr_warn() [Daniel]
- Use of _BITUL() vs. constant 0x8000_0000 [Daniel]
- changelog spellos: [Daniel]
s/depedency/dependency/
s/seperate/separate/

v3: http://lists.infradead.org/pipermail/linux-snps-arc/2016-November/001757.html
v2: http://lists.infradead.org/pipermail/linux-snps-arc/2016-November/001724.html
v1: http://lists.infradead.org/pipermail/linux-snps-arc/2016-October/001676.html

Vineet Gupta (8):
ARC: timer: gfrc, rtc: deuglify big endian code
ARC: timer: gfrc, rtc: Read BCR to detect whether hardware exists ...
ARC: time: move time_init() out of the driver
ARC: timer: Build gfrc, rtc under same option (64-bit timers)
ARC: breakout aux handling into a separate header
ARC: move mcip.h into include/soc and adjust the includes
ARC: breakout timer include code into separate header ...
clocksource: import ARC timer driver

 MAINTAINERS                                        |   1 +
 arch/arc/Kconfig                                   |  13 +--
 arch/arc/configs/nsimosci_hs_smp_defconfig         |   2 +-
 arch/arc/configs/vdk_hs38_smp_defconfig            |   2 +-
 arch/arc/include/asm/arcregs.h                     |  94 +-----------------
 arch/arc/kernel/Makefile                           |   2 +-
 arch/arc/kernel/mcip.c                             |   2 +-
 arch/arc/kernel/setup.c                            |  17 +++-
 arch/arc/plat-axs10x/axs10x.c                      |   2 +-
 drivers/clocksource/Kconfig                        |  20 ++++
 drivers/clocksource/Makefile                       |   1 +
 .../time.c => drivers/clocksource/arc_timer.c      | 110 ++++++---------------
 include/soc/arc/aux.h                              |  63 ++++++++++++
 {arch/arc/include/asm => include/soc/arc}/mcip.h   |  10 +-
 include/soc/arc/timers.h                           |  38 +++++++
 15 files changed, 181 insertions(+), 196 deletions(-)
 rename arch/arc/kernel/time.c => drivers/clocksource/arc_timer.c (73%)
 create mode 100644 include/soc/arc/aux.h
 rename {arch/arc/include/asm => include/soc/arc}/mcip.h (95%)
 create mode 100644 include/soc/arc/timers.h
Signature · 1 line
2.7.4