All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/2] Handle reboot for Exynos SoC via restart_handler
@ 2014-11-18 10:47 ` Pankaj Dubey
  0 siblings, 0 replies; 26+ messages in thread
From: Pankaj Dubey @ 2014-11-18 10:47 UTC (permalink / raw)
  To: linux-arm-kernel, linux-samsung-soc
  Cc: kgene.kim, tomasz.figa, linux, thomas.ab, linux, Pankaj Dubey

This patch removes restart hook from machine_desc of Exynos, and moves
respective code into restart_notifiers.
Exynos5440 handles reboot via clock register so let's register a
restart_handler in Exynos5440 clock driver.
For rest Exynos SoC, reboot is handled via PMU SWRESET register so
let's register a restart_handler in PMU driver for handling this.

This patch is inspired and dependent on following patch series[1] from
Geunter Roeck.

[1]: kernel: Add support for kernel restart handler call chain
https://lkml.org/lkml/2014/8/19/652

I have tested reboot functionality on Exynos3250 based board, on
kgene/for-next as well as linux-next's next-20141114 tag.

Patch v3 and related discussion can be found here
http://www.spinics.net/lists/linux-samsung-soc/msg37600.html

Changes since v4:
  - Addressed review comments from Geunter Roeck.
  - Added Geunter Roeck's Acked-by tag.

Changes since v3:
  - As v2 is causing conflict after recent changes in kgene/for-next,
    rebased on top of kgene/for-next dated 2014-11-13.
  - Removed dependency patch list from cover-letter as all dependencies 
    are merged into kgene/for-next.

Changes since v2:
  - Used register_restart_handler instead of register_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.
  - Make reg_base as global in clk-exynos5440.c file, to avoid 
    iomapping it again in reboot_notifier handler.


Pankaj Dubey (2):
  clk: samsung: exynos5440: move restart code into clock driver
  ARM: EXYNOS: PMU: move restart code into pmu driver

 arch/arm/mach-exynos/common.h        |    1 -
 arch/arm/mach-exynos/exynos.c        |   23 -----------------------
 arch/arm/mach-exynos/pmu.c           |   23 +++++++++++++++++++++++
 drivers/clk/samsung/clk-exynos5440.c |   29 ++++++++++++++++++++++++++++-
 4 files changed, 51 insertions(+), 25 deletions(-)

-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2014-11-24  2:16 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-18 10:47 [PATCH v5 0/2] Handle reboot for Exynos SoC via restart_handler Pankaj Dubey
2014-11-18 10:47 ` Pankaj Dubey
2014-11-18 10:47 ` [PATCH v5 1/2] clk: samsung: exynos5440: move restart code into clock driver Pankaj Dubey
2014-11-18 10:47   ` Pankaj Dubey
2014-11-18 15:17   ` Sylwester Nawrocki
2014-11-18 15:17     ` Sylwester Nawrocki
2014-11-19  3:37     ` Pankaj Dubey
2014-11-19  3:37       ` Pankaj Dubey
2014-11-20 17:48       ` Sylwester Nawrocki
2014-11-20 17:48         ` Sylwester Nawrocki
2014-11-21 10:30         ` Pankaj Dubey
2014-11-21 10:30           ` Pankaj Dubey
2014-11-22  2:08           ` Kukjin Kim
2014-11-22  2:08             ` Kukjin Kim
2014-11-24  2:16             ` amit daniel kachhap
2014-11-24  2:16               ` amit daniel kachhap
2014-11-18 10:47 ` [PATCH v5 2/2] ARM: EXYNOS: PMU: move restart code into pmu driver Pankaj Dubey
2014-11-18 10:47   ` Pankaj Dubey
2014-11-18 15:19   ` Sylwester Nawrocki
2014-11-18 15:19     ` Sylwester Nawrocki
2014-11-19  3:16     ` Pankaj Dubey
2014-11-19  3:16       ` Pankaj Dubey
2014-11-19 14:26       ` Sylwester Nawrocki
2014-11-19 14:26         ` Sylwester Nawrocki
2014-11-21  4:28   ` Vivek Gautam
2014-11-21  4:28     ` Vivek Gautam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.