Handle reboot for Exynos SoC via restart_handler
Get series with b4
b4 am [email protected]Versions newest first
- v3 Latest0 of 2 patches 0 repliesNew
Patches in v3 No applies recorded yet
None of the 2 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/2] Handle reboot for Exynos SoC via restart_handler
Quoted 2 lines · Pankaj Dubey
This patch removes restart hook from
machine_descof Exynos, and moves respective code intoreboot_notifiers.
Nitpick:
s/reboot_notifiers/restart_notifiers/
Guenter
Quoted 46 lines
Exynos5440 handles reboot via clock register so let's register a
restart_handlerin Exynos5440 clock driver.
For rest Exynos SoC, reboot is handled via PMU SWRESET register so let's register arestart_handlerin PMU driver for handling this.This patch is inspired and dependent on following patch series[1] from Geunter Roeck.
Also this patch is dependent on PMU platform driver patch [2] by me, and has been prepared on top of it.
[1]: kernel: Add support for kernel restart handler call chain
https://lkml.org/lkml/2014/8/19/652[2]: ARM: Exynos: Convert PMU implementation into a platform driver
https://lkml.org/lkml/2014/10/6/89I have tested reboot functionality on Exynos3250 based board, on kgene/for-next as well as linux-next's next-20140925 tag.
Patch v2 and related discussion can be found here
http://www.spinics.net/lists/linux-samsung-soc/msg37457.htmlChanges since v2:
- Usedregister_restart_handlerinstead ofregister_reboot_notifier.
- Updated notifier names and commit message accordingly.Changes since v1:
- Addressed review comments from Tomasz Figa. Removed usage of local variables where ever unnecessary.
- Makereg_baseas global inclk-exynos5440.cfile, to avoid iomapping it again inreboot_notifierhandler.Pankaj Dubey (2):
clk: samsung: exynos5440: move restart code into clock driver
ARM: EXYNOS: PMU: move restart code into pmu driverarch/arm/mach-exynos/common.h | 1 - arch/arm/mach-exynos/exynos.c | 23 ----------------------- arch/arm/mach-exynos/pmu.c | 24 ++++++++++++++++++++++++ drivers/clk/samsung/clk-exynos5440.c | 29 ++++++++++++++++++++++++++++- 4 files changed, 52 insertions(+), 25 deletions(-)Signature · 1 line
1.7.9.5