Skip to content

Add module build support for timer driver

Chunyan Zhang lkml 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 2/23 patches 0 repliesNew
  2. v3 posting 1/23 patches 0 repliesSuperseded
  3. v23 patches 9 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches2 repliesSuperseded

Patches in v3 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drivers/clocksource/timer-of: Remove __init markingsdrivers/clocksource/timer-of.c drivers/clocksource/timer-of.h+11 -100 replies
2/3clocksource/drivers/timer-of: Add a boilerplate macro for timer module driverdrivers/clocksource/timer-of.c drivers/clocksource/timer-of.h+28 -00 replies
3/3clocksource/drivers/sprd: Add module support to Unisoc timerdrivers/clocksource/Kconfig drivers/clocksource/timer-sprd.c+14 -60 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchBaolin Wang
1/3
2/3
3/3Original-by

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

Read the v3 thread

Cover letter [RESEND PATCH v3 0/3] Add module build support for timer driver

From: Chunyan Zhang <[email protected]>

This patchset was based on the previous one [1], and add a boilerplate macro for module build purpose according to comments from Thomas Gleixner on the patch [2].

Also switch sprd timer driver to use the help macro to support module build.

* Changes from v2:
- Define one macro TIMER_PLATFORM_DECLEAR() to replace the three ones in the v2;
- Use builtin_platform_driver() to replace module_platform_driver() to make sure unloading timer modules not supported;
- Add more description to explain that unloading is not supported.

* Changes from v1:
- Removed TIMER_OF_DECLARE() from timer-sprd.c, and removed ifdef;
- Rebased on v5.14-rc1.

[1] https://lkml.org/lkml/2020/3/24/72
[2] https://www.spinics.net/lists/arm-kernel/msg826631.html

Chunyan Zhang (2):
clocksource/drivers/timer-of: Add a boilerplate macro for timer module
driver
clocksource/drivers/sprd: Add module support to Unisoc timer

Saravana Kannan (1):
drivers/clocksource/timer-of: Remove __init markings

 drivers/clocksource/Kconfig      |  2 +-
 drivers/clocksource/timer-of.c   | 30 ++++++++++++++++++++++--------
 drivers/clocksource/timer-of.h   | 19 +++++++++++++++++--
 drivers/clocksource/timer-sprd.c | 18 +++++++++++++-----
 4 files changed, 53 insertions(+), 16 deletions(-)
Signature · 1 line
2.25.1