Skip to content

Clock patches for SAMA5D2 backup mode

Romain Izard linux-arm-kernel linux-clk lkml 6 versions – Applied

Status from this message: Applied to clk-next

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest3 patches 6 repliesApplied
  2. v53 patches 0 repliesSuperseded
  3. v48 patches 2 repliesApplied
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v38 patches2 repliesSuperseded
v29 patches15 repliesSuperseded
v110 patches11 repliesSuperseded

Changes in v6 from the cover letter

* rebase on v4.15-rc3

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/3clk: at91: pmc: Wait for clocks when resumingdrivers/clk/at91/pmc.c+16 -82 replies
2/3clk: at91: pmc: Save SCSR during suspenddrivers/clk/at91/pmc.c+2 -22 replies
3/3clk: at91: pmc: Support backup for programmable clocksdrivers/clk/at91/clk-programmable.c drivers/clk/at91/pmc.c drivers/clk/at91/pmc.h+39 -02 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchLudovic DesrochesNicolas FerreAlexandre Belloni
1/3A-b A-b A-b
2/3A-b A-b
3/3A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v6 thread

Cover letter [PATCH v6 0/3] Clock patches for SAMA5D2 backup mode

While the core of the backup mode for SAMA5D2 has been integrated in v4.13, it is far from complete. Individual controllers in the chip have drivers that do not support the reset of the registers during suspend, and they need to be adapted to handle it.

The first patch uses the clock wakeup code from the prototype backup mode instead of the version integrated in the mainline, as the mainline version is not stable. During a test loop with two-second backup suspend, the mainline version will hang in less than one day, whereas the proposed version has been running the same test for more than a month without hanging.

Changes in v2:
* drop the IIO patch duplicating existing code
* determine the number of programmable clocks to save dynamically
* declare a required local variable in the tty/serial patch

Changes in v3:
* drop dev_printk changes for PMECC
* rework the resume code for PMECC
* improve comments on PMC clock handling

Changes in v4:
* fix a bug in the PMECC resume code

Changes in v5:
* drop all patches already taken
* split the patch series by subsystem

Changes in v6:
* rebase on v4.15-rc3

Romain Izard (3):
clk: at91: pmc: Wait for clocks when resuming
clk: at91: pmc: Save SCSR during suspend
clk: at91: pmc: Support backup for programmable clocks

 drivers/clk/at91/clk-programmable.c |  2 ++
 drivers/clk/at91/pmc.c              | 63 +++++++++++++++++++++++++++++++------
 drivers/clk/at91/pmc.h              |  2 ++
 3 files changed, 57 insertions(+), 10 deletions(-)
Signature · 1 line
2.14.1