* [PATCH 0/7] Switch to generic syscon regmap based drivers
@ 2015-10-19 6:03 Alim Akhtar
2015-10-19 6:03 ` [PATCH 1/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos3250 SoCs Alim Akhtar
` (10 more replies)
0 siblings, 11 replies; 38+ messages in thread
From: Alim Akhtar @ 2015-10-19 6:03 UTC (permalink / raw)
To: linux-samsung-soc
Cc: kgene, k.kozlowski, javier, devicetree, linux-arm-kernel
Alim Akhtar (7):
arm: dts: Add syscon-{reboot, poweroff} nodes for exynos3250 SoCs
arm: dts: Add syscon-{reboot, poweroff} nodes for exynos4
arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5
arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5410 SoC
ARM: exynos_defconfig: Normalize exynos defconfig
ARM: exynos_defconfig: Enable generic syscon-{reboot, poweroff}
drivers
ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs
arch/arm/boot/dts/exynos3250.dtsi | 14 ++++++++++++
arch/arm/boot/dts/exynos4.dtsi | 14 ++++++++++++
arch/arm/boot/dts/exynos5.dtsi | 14 ++++++++++++
arch/arm/boot/dts/exynos5410.dtsi | 14 ++++++++++++
arch/arm/configs/exynos_defconfig | 11 +++++-----
arch/arm/mach-exynos/pmu.c | 43 -------------------------------------
6 files changed, 61 insertions(+), 49 deletions(-)
--
1.7.10.4
^ permalink raw reply [flat|nested] 38+ messages in thread
* [PATCH 1/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos3250 SoCs
2015-10-19 6:03 [PATCH 0/7] Switch to generic syscon regmap based drivers Alim Akhtar
@ 2015-10-19 6:03 ` Alim Akhtar
2015-10-19 8:43 ` [1/7] " Pankaj Dubey
2015-10-19 13:03 ` [PATCH 1/7] " Javier Martinez Canillas
2015-10-19 6:03 ` [PATCH 2/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos4 Alim Akhtar
` (9 subsequent siblings)
10 siblings, 2 replies; 38+ messages in thread
From: Alim Akhtar @ 2015-10-19 6:03 UTC (permalink / raw)
To: linux-samsung-soc
Cc: kgene, k.kozlowski, javier, devicetree, linux-arm-kernel
This patch adds syscon-{reboot, poweroff} nodes to allow the
generic syscon-{reboot, poweroff} driver to reset/poweroff exynos3250 SoC.
Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
---
arch/arm/boot/dts/exynos3250.dtsi | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm/boot/dts/exynos3250.dtsi b/arch/arm/boot/dts/exynos3250.dtsi
index 033def482fc3..af5d9ad4c7b7 100644
--- a/arch/arm/boot/dts/exynos3250.dtsi
+++ b/arch/arm/boot/dts/exynos3250.dtsi
@@ -152,6 +152,20 @@
interrupt-parent = <&gic>;
};
+ poweroff: syscon-poweroff {
+ compatible = "syscon-poweroff";
+ regmap = <&pmu_system_controller>;
+ offset = <0x330C>;
+ mask = <0x5200>;
+ };
+
+ reboot: syscon-reboot {
+ compatible = "syscon-reboot";
+ regmap = <&pmu_system_controller>;
+ offset = <0x0400>;
+ mask = <0x1>;
+ };
+
mipi_phy: video-phy@10020710 {
compatible = "samsung,s5pv210-mipi-video-phy";
#phy-cells = <1>;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 38+ messages in thread
* [PATCH 2/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos4
2015-10-19 6:03 [PATCH 0/7] Switch to generic syscon regmap based drivers Alim Akhtar
2015-10-19 6:03 ` [PATCH 1/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos3250 SoCs Alim Akhtar
@ 2015-10-19 6:03 ` Alim Akhtar
2015-10-19 8:45 ` [2/7] " Pankaj Dubey
2015-10-19 13:08 ` [PATCH 2/7] " Javier Martinez Canillas
2015-10-19 6:03 ` [PATCH 3/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5 Alim Akhtar
` (8 subsequent siblings)
10 siblings, 2 replies; 38+ messages in thread
From: Alim Akhtar @ 2015-10-19 6:03 UTC (permalink / raw)
To: linux-samsung-soc
Cc: kgene, k.kozlowski, javier, devicetree, linux-arm-kernel
This patch adds syscon-{reboot, poweroff} nodes to allow the
generic syscon-{reboot, poweroff} driver to reset/poweroff exynos4 SoC.
Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
---
arch/arm/boot/dts/exynos4.dtsi | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi
index 98c0a368b777..79015320cdb6 100644
--- a/arch/arm/boot/dts/exynos4.dtsi
+++ b/arch/arm/boot/dts/exynos4.dtsi
@@ -158,6 +158,20 @@
interrupt-parent = <&gic>;
};
+ poweroff: syscon-poweroff {
+ compatible = "syscon-poweroff";
+ regmap = <&pmu_system_controller>;
+ offset = <0x330C>;
+ mask = <0x5200>;
+ };
+
+ reboot: syscon-reboot {
+ compatible = "syscon-reboot";
+ regmap = <&pmu_system_controller>;
+ offset = <0x0400>;
+ mask = <0x1>;
+ };
+
dsi_0: dsi@11C80000 {
compatible = "samsung,exynos4210-mipi-dsi";
reg = <0x11C80000 0x10000>;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 38+ messages in thread
* [PATCH 3/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5
2015-10-19 6:03 [PATCH 0/7] Switch to generic syscon regmap based drivers Alim Akhtar
2015-10-19 6:03 ` [PATCH 1/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos3250 SoCs Alim Akhtar
2015-10-19 6:03 ` [PATCH 2/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos4 Alim Akhtar
@ 2015-10-19 6:03 ` Alim Akhtar
2015-10-19 8:47 ` [3/7] " Pankaj Dubey
2015-10-19 13:09 ` [PATCH 3/7] " Javier Martinez Canillas
2015-10-19 6:03 ` [PATCH 4/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5410 SoC Alim Akhtar
` (7 subsequent siblings)
10 siblings, 2 replies; 38+ messages in thread
From: Alim Akhtar @ 2015-10-19 6:03 UTC (permalink / raw)
To: linux-samsung-soc
Cc: kgene, k.kozlowski, javier, devicetree, linux-arm-kernel
This patch adds syscon-{reboot, poweroff} nodes to allow the
generic syscon-{reboot, poweroff} driver to reset/poweroff exynos5 SoCs.
Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
---
arch/arm/boot/dts/exynos5.dtsi | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm/boot/dts/exynos5.dtsi b/arch/arm/boot/dts/exynos5.dtsi
index 110dbd4fb884..1313777618b7 100644
--- a/arch/arm/boot/dts/exynos5.dtsi
+++ b/arch/arm/boot/dts/exynos5.dtsi
@@ -88,6 +88,20 @@
status = "disabled";
};
+ poweroff: syscon-poweroff {
+ compatible = "syscon-poweroff";
+ regmap = <&pmu_system_controller>;
+ offset = <0x330C>;
+ mask = <0x5200>;
+ };
+
+ reboot: syscon-reboot {
+ compatible = "syscon-reboot";
+ regmap = <&pmu_system_controller>;
+ offset = <0x0400>;
+ mask = <0x1>;
+ };
+
fimd: fimd@14400000 {
compatible = "samsung,exynos5250-fimd";
interrupt-parent = <&combiner>;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 38+ messages in thread
* [PATCH 4/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5410 SoC
2015-10-19 6:03 [PATCH 0/7] Switch to generic syscon regmap based drivers Alim Akhtar
` (2 preceding siblings ...)
2015-10-19 6:03 ` [PATCH 3/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5 Alim Akhtar
@ 2015-10-19 6:03 ` Alim Akhtar
2015-10-19 8:56 ` [4/7] " Pankaj Dubey
2015-10-19 13:10 ` [PATCH 4/7] " Javier Martinez Canillas
2015-10-19 6:03 ` [PATCH 5/7] ARM: exynos_defconfig: Normalize exynos defconfig Alim Akhtar
` (6 subsequent siblings)
10 siblings, 2 replies; 38+ messages in thread
From: Alim Akhtar @ 2015-10-19 6:03 UTC (permalink / raw)
To: linux-samsung-soc
Cc: javier, k.kozlowski, kgene, linux-arm-kernel, devicetree
This patch adds syscon-{reboot, poweroff} nodes to allow the
generic syscon-{reboot, poweroff} driver to reset/poweroff exynos5410 SoC.
Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
---
arch/arm/boot/dts/exynos5410.dtsi | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm/boot/dts/exynos5410.dtsi b/arch/arm/boot/dts/exynos5410.dtsi
index 731eefd23fa9..b9bef8b5ffc9 100644
--- a/arch/arm/boot/dts/exynos5410.dtsi
+++ b/arch/arm/boot/dts/exynos5410.dtsi
@@ -102,6 +102,20 @@
reg = <0x10040000 0x5000>;
};
+ poweroff: syscon-poweroff {
+ compatible = "syscon-poweroff";
+ regmap = <&pmu_system_controller>;
+ offset = <0x330C>;
+ mask = <0x5200>;
+ };
+
+ reboot: syscon-reboot {
+ compatible = "syscon-reboot";
+ regmap = <&pmu_system_controller>;
+ offset = <0x0400>;
+ mask = <0x1>;
+ };
+
mct: mct@101C0000 {
compatible = "samsung,exynos4210-mct";
reg = <0x101C0000 0xB00>;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 38+ messages in thread
* [PATCH 5/7] ARM: exynos_defconfig: Normalize exynos defconfig
2015-10-19 6:03 [PATCH 0/7] Switch to generic syscon regmap based drivers Alim Akhtar
` (3 preceding siblings ...)
2015-10-19 6:03 ` [PATCH 4/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5410 SoC Alim Akhtar
@ 2015-10-19 6:03 ` Alim Akhtar
2015-10-19 13:25 ` Javier Martinez Canillas
2015-10-19 6:03 ` [PATCH 6/7] ARM: exynos_defconfig: Enable generic syscon-{reboot, poweroff} drivers Alim Akhtar
` (5 subsequent siblings)
10 siblings, 1 reply; 38+ messages in thread
From: Alim Akhtar @ 2015-10-19 6:03 UTC (permalink / raw)
To: linux-samsung-soc
Cc: kgene, k.kozlowski, javier, devicetree, linux-arm-kernel
make savedefconfig result in some difference, lets normalize the
defconfig.
Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
---
arch/arm/configs/exynos_defconfig | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/arch/arm/configs/exynos_defconfig b/arch/arm/configs/exynos_defconfig
index 1ff2bfa2e183..3349713e6c63 100644
--- a/arch/arm/configs/exynos_defconfig
+++ b/arch/arm/configs/exynos_defconfig
@@ -99,10 +99,8 @@ CONFIG_SENSORS_LM90=y
CONFIG_SENSORS_NTC_THERMISTOR=y
CONFIG_SENSORS_PWM_FAN=y
CONFIG_SENSORS_INA2XX=y
-CONFIG_THERMAL=y
CONFIG_CPU_THERMAL=y
CONFIG_THERMAL_EMULATION=y
-CONFIG_EXYNOS_THERMAL=y
CONFIG_WATCHDOG=y
CONFIG_S3C2410_WATCHDOG=y
CONFIG_MFD_CROS_EC=y
@@ -127,14 +125,14 @@ CONFIG_REGULATOR_S2MPS11=y
CONFIG_REGULATOR_S5M8767=y
CONFIG_REGULATOR_TPS65090=y
CONFIG_DRM=y
-CONFIG_DRM_NXP_PTN3460=y
-CONFIG_DRM_PARADE_PS8622=y
CONFIG_DRM_EXYNOS=y
CONFIG_DRM_EXYNOS_FIMD=y
CONFIG_DRM_EXYNOS_DSI=y
CONFIG_DRM_EXYNOS_HDMI=y
CONFIG_DRM_PANEL_SIMPLE=y
CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0=y
+CONFIG_DRM_NXP_PTN3460=y
+CONFIG_DRM_PARADE_PS8622=y
CONFIG_FB_SIMPLE=y
CONFIG_EXYNOS_VIDEO=y
CONFIG_EXYNOS_MIPI_DSI=y
@@ -175,7 +173,6 @@ CONFIG_RTC_DRV_S5M=y
CONFIG_RTC_DRV_S3C=y
CONFIG_DMADEVICES=y
CONFIG_PL330_DMA=y
-CONFIG_CHROME_PLATFORMS=y
CONFIG_CROS_EC_CHARDEV=y
CONFIG_COMMON_CLK_MAX77686=y
CONFIG_COMMON_CLK_MAX77802=y
@@ -190,7 +187,6 @@ CONFIG_PWM_SAMSUNG=y
CONFIG_PHY_EXYNOS5250_SATA=y
CONFIG_EXT2_FS=y
CONFIG_EXT3_FS=y
-CONFIG_EXT4_FS=y
CONFIG_MSDOS_FS=y
CONFIG_VFAT_FS=y
CONFIG_TMPFS=y
--
1.7.10.4
^ permalink raw reply related [flat|nested] 38+ messages in thread
* [PATCH 6/7] ARM: exynos_defconfig: Enable generic syscon-{reboot, poweroff} drivers
2015-10-19 6:03 [PATCH 0/7] Switch to generic syscon regmap based drivers Alim Akhtar
` (4 preceding siblings ...)
2015-10-19 6:03 ` [PATCH 5/7] ARM: exynos_defconfig: Normalize exynos defconfig Alim Akhtar
@ 2015-10-19 6:03 ` Alim Akhtar
2015-10-19 6:03 ` [PATCH 7/7] ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs Alim Akhtar
` (4 subsequent siblings)
10 siblings, 0 replies; 38+ messages in thread
From: Alim Akhtar @ 2015-10-19 6:03 UTC (permalink / raw)
To: linux-samsung-soc
Cc: kgene, k.kozlowski, javier, devicetree, linux-arm-kernel
Enable CONFIG_POWER_RESET_SYSCON and CONFIG_POWER_RESET_SYSCON_POWEROFF
to allow exynos SoC to make use of generic syscon based reboot/poweroff
drivers.
Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
---
arch/arm/configs/exynos_defconfig | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm/configs/exynos_defconfig b/arch/arm/configs/exynos_defconfig
index 3349713e6c63..cbc2e96b76a3 100644
--- a/arch/arm/configs/exynos_defconfig
+++ b/arch/arm/configs/exynos_defconfig
@@ -95,6 +95,9 @@ CONFIG_BATTERY_MAX17042=y
CONFIG_CHARGER_MAX14577=y
CONFIG_CHARGER_MAX77693=y
CONFIG_CHARGER_TPS65090=y
+CONFIG_POWER_RESET=y
+CONFIG_POWER_RESET_SYSCON=y
+CONFIG_POWER_RESET_SYSCON_POWEROFF=y
CONFIG_SENSORS_LM90=y
CONFIG_SENSORS_NTC_THERMISTOR=y
CONFIG_SENSORS_PWM_FAN=y
--
1.7.10.4
^ permalink raw reply related [flat|nested] 38+ messages in thread
* [PATCH 7/7] ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs
2015-10-19 6:03 [PATCH 0/7] Switch to generic syscon regmap based drivers Alim Akhtar
` (5 preceding siblings ...)
2015-10-19 6:03 ` [PATCH 6/7] ARM: exynos_defconfig: Enable generic syscon-{reboot, poweroff} drivers Alim Akhtar
@ 2015-10-19 6:03 ` Alim Akhtar
2015-10-19 7:00 ` Krzysztof Kozlowski
2015-10-19 6:54 ` [PATCH 0/7] Switch to generic syscon regmap based drivers Krzysztof Kozlowski
` (3 subsequent siblings)
10 siblings, 1 reply; 38+ messages in thread
From: Alim Akhtar @ 2015-10-19 6:03 UTC (permalink / raw)
To: linux-samsung-soc
Cc: kgene, k.kozlowski, javier, devicetree, linux-arm-kernel
Now we can use the generic syscon-{reboot/poweroff} drivers,
so we don't need special handling for reboot/poweroff in
exynos pmu driver. This patch remove the same.
Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
---
arch/arm/mach-exynos/pmu.c | 43 -------------------------------------------
1 file changed, 43 deletions(-)
diff --git a/arch/arm/mach-exynos/pmu.c b/arch/arm/mach-exynos/pmu.c
index de68938ee6aa..393c04aa727e 100644
--- a/arch/arm/mach-exynos/pmu.c
+++ b/arch/arm/mach-exynos/pmu.c
@@ -14,9 +14,6 @@
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/delay.h>
-#include <linux/notifier.h>
-#include <linux/reboot.h>
-
#include "exynos-pmu.h"
#include "regs-pmu.h"
@@ -681,23 +678,6 @@ static unsigned int const exynos5420_list_disable_pmu_reg[] = {
EXYNOS5420_CMU_RESET_FSYS_SYS_PWR_REG,
};
-static void exynos_power_off(void)
-{
- unsigned int tmp;
-
- pr_info("Power down.\n");
- tmp = pmu_raw_readl(EXYNOS_PS_HOLD_CONTROL);
- tmp ^= (1 << 8);
- pmu_raw_writel(tmp, EXYNOS_PS_HOLD_CONTROL);
-
- /* Wait a little so we don't give a false warning below */
- mdelay(100);
-
- pr_err("Power down failed, please power off system manually.\n");
- while (1)
- ;
-}
-
static void exynos5420_powerdown_conf(enum sys_powerdown mode)
{
u32 this_cluster;
@@ -875,14 +855,6 @@ static void exynos5420_pmu_init(void)
pr_info("EXYNOS5420 PMU initialized\n");
}
-static int pmu_restart_notify(struct notifier_block *this,
- unsigned long code, void *unused)
-{
- pmu_raw_writel(0x1, EXYNOS_SWRESET);
-
- return NOTIFY_DONE;
-}
-
static const struct exynos_pmu_data exynos3250_pmu_data = {
.pmu_config = exynos3250_pmu_config,
.pmu_init = exynos3250_pmu_init,
@@ -940,20 +912,11 @@ static const struct of_device_id exynos_pmu_of_device_ids[] = {
{ /*sentinel*/ },
};
-/*
- * Exynos PMU restart notifier, handles restart functionality
- */
-static struct notifier_block pmu_restart_handler = {
- .notifier_call = pmu_restart_notify,
- .priority = 128,
-};
-
static int exynos_pmu_probe(struct platform_device *pdev)
{
const struct of_device_id *match;
struct device *dev = &pdev->dev;
struct resource *res;
- int ret;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
pmu_base_addr = devm_ioremap_resource(dev, res);
@@ -978,12 +941,6 @@ static int exynos_pmu_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, pmu_context);
- ret = register_restart_handler(&pmu_restart_handler);
- if (ret)
- dev_warn(dev, "can't register restart handler err=%d\n", ret);
-
- pm_power_off = exynos_power_off;
-
dev_dbg(dev, "Exynos PMU Driver probe done\n");
return 0;
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 38+ messages in thread
* Re: [PATCH 0/7] Switch to generic syscon regmap based drivers
2015-10-19 6:03 [PATCH 0/7] Switch to generic syscon regmap based drivers Alim Akhtar
` (6 preceding siblings ...)
2015-10-19 6:03 ` [PATCH 7/7] ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs Alim Akhtar
@ 2015-10-19 6:54 ` Krzysztof Kozlowski
2015-10-19 7:40 ` Alim Akhtar
2015-10-19 16:08 ` Tobias Jakobi
` (2 subsequent siblings)
10 siblings, 1 reply; 38+ messages in thread
From: Krzysztof Kozlowski @ 2015-10-19 6:54 UTC (permalink / raw)
To: Alim Akhtar, linux-samsung-soc
Cc: kgene, javier, devicetree, linux-arm-kernel
On 19.10.2015 15:03, Alim Akhtar wrote:
...
Hi,
I am happy to see more contributions from your side! Keep it up. :)
However this empty space in your cover letter is the place for
description of the patchset. What do you want to achieve here? What kind
of problem are you solving? What features are you adding? Any dependencies?
Best regards,
Krzysztof
> Alim Akhtar (7):
> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos3250 SoCs
> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos4
> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5
> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5410 SoC
> ARM: exynos_defconfig: Normalize exynos defconfig
> ARM: exynos_defconfig: Enable generic syscon-{reboot, poweroff}
> drivers
> ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs
>
> arch/arm/boot/dts/exynos3250.dtsi | 14 ++++++++++++
> arch/arm/boot/dts/exynos4.dtsi | 14 ++++++++++++
> arch/arm/boot/dts/exynos5.dtsi | 14 ++++++++++++
> arch/arm/boot/dts/exynos5410.dtsi | 14 ++++++++++++
> arch/arm/configs/exynos_defconfig | 11 +++++-----
> arch/arm/mach-exynos/pmu.c | 43 -------------------------------------
> 6 files changed, 61 insertions(+), 49 deletions(-)
>
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 7/7] ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs
2015-10-19 6:03 ` [PATCH 7/7] ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs Alim Akhtar
@ 2015-10-19 7:00 ` Krzysztof Kozlowski
2015-10-19 8:27 ` Alim Akhtar
2015-10-19 9:56 ` Javier Martinez Canillas
0 siblings, 2 replies; 38+ messages in thread
From: Krzysztof Kozlowski @ 2015-10-19 7:00 UTC (permalink / raw)
To: Alim Akhtar, linux-samsung-soc
Cc: kgene, javier, devicetree, linux-arm-kernel
On 19.10.2015 15:03, Alim Akhtar wrote:
> Now we can use the generic syscon-{reboot/poweroff} drivers,
> so we don't need special handling for reboot/poweroff in
> exynos pmu driver. This patch remove the same.
>
> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
> ---
> arch/arm/mach-exynos/pmu.c | 43 -------------------------------------------
> 1 file changed, 43 deletions(-)
I think that removal of this stuff will effectively remove the
restart/poweroff handlers from:
1. Other defconfigs, like multi_v7
2. Custom configs.
Previously this code was always compiled in for ARCH_EXYNOS. Now it is
not so I am thinking about selecting necessary drivers from main exynos
Kconfig symbol. That could be tricky though, because "select" should be
used only for non-visible symbols.
Any ideas how to solve that?
Best regards,
Krzysztof
>
> diff --git a/arch/arm/mach-exynos/pmu.c b/arch/arm/mach-exynos/pmu.c
> index de68938ee6aa..393c04aa727e 100644
> --- a/arch/arm/mach-exynos/pmu.c
> +++ b/arch/arm/mach-exynos/pmu.c
> @@ -14,9 +14,6 @@
> #include <linux/of_address.h>
> #include <linux/platform_device.h>
> #include <linux/delay.h>
> -#include <linux/notifier.h>
> -#include <linux/reboot.h>
> -
>
> #include "exynos-pmu.h"
> #include "regs-pmu.h"
> @@ -681,23 +678,6 @@ static unsigned int const exynos5420_list_disable_pmu_reg[] = {
> EXYNOS5420_CMU_RESET_FSYS_SYS_PWR_REG,
> };
>
> -static void exynos_power_off(void)
> -{
> - unsigned int tmp;
> -
> - pr_info("Power down.\n");
> - tmp = pmu_raw_readl(EXYNOS_PS_HOLD_CONTROL);
> - tmp ^= (1 << 8);
> - pmu_raw_writel(tmp, EXYNOS_PS_HOLD_CONTROL);
> -
> - /* Wait a little so we don't give a false warning below */
> - mdelay(100);
> -
> - pr_err("Power down failed, please power off system manually.\n");
> - while (1)
> - ;
> -}
> -
> static void exynos5420_powerdown_conf(enum sys_powerdown mode)
> {
> u32 this_cluster;
> @@ -875,14 +855,6 @@ static void exynos5420_pmu_init(void)
> pr_info("EXYNOS5420 PMU initialized\n");
> }
>
> -static int pmu_restart_notify(struct notifier_block *this,
> - unsigned long code, void *unused)
> -{
> - pmu_raw_writel(0x1, EXYNOS_SWRESET);
> -
> - return NOTIFY_DONE;
> -}
> -
> static const struct exynos_pmu_data exynos3250_pmu_data = {
> .pmu_config = exynos3250_pmu_config,
> .pmu_init = exynos3250_pmu_init,
> @@ -940,20 +912,11 @@ static const struct of_device_id exynos_pmu_of_device_ids[] = {
> { /*sentinel*/ },
> };
>
> -/*
> - * Exynos PMU restart notifier, handles restart functionality
> - */
> -static struct notifier_block pmu_restart_handler = {
> - .notifier_call = pmu_restart_notify,
> - .priority = 128,
> -};
> -
> static int exynos_pmu_probe(struct platform_device *pdev)
> {
> const struct of_device_id *match;
> struct device *dev = &pdev->dev;
> struct resource *res;
> - int ret;
>
> res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> pmu_base_addr = devm_ioremap_resource(dev, res);
> @@ -978,12 +941,6 @@ static int exynos_pmu_probe(struct platform_device *pdev)
>
> platform_set_drvdata(pdev, pmu_context);
>
> - ret = register_restart_handler(&pmu_restart_handler);
> - if (ret)
> - dev_warn(dev, "can't register restart handler err=%d\n", ret);
> -
> - pm_power_off = exynos_power_off;
> -
> dev_dbg(dev, "Exynos PMU Driver probe done\n");
> return 0;
> }
>
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 0/7] Switch to generic syscon regmap based drivers
2015-10-19 6:54 ` [PATCH 0/7] Switch to generic syscon regmap based drivers Krzysztof Kozlowski
@ 2015-10-19 7:40 ` Alim Akhtar
0 siblings, 0 replies; 38+ messages in thread
From: Alim Akhtar @ 2015-10-19 7:40 UTC (permalink / raw)
To: Krzysztof Kozlowski, linux-samsung-soc
Cc: kgene, javier, devicetree, linux-arm-kernel
On 10/19/2015 12:24 PM, Krzysztof Kozlowski wrote:
> On 19.10.2015 15:03, Alim Akhtar wrote:
> ...
>
> Hi,
>
> I am happy to see more contributions from your side! Keep it up. :)
>
Thank you! will keep finding time and doing it.
> However this empty space in your cover letter is the place for
> description of the patchset. What do you want to achieve here? What kind
> of problem are you solving? What features are you adding? Any dependencies?
>
Ah, my bad, I used --compose option with git-send-email and did composed
the message, somehow it got missed. Will take care.
The motivation came when I tried to used reboot/poweroff on exynos7, and
since exynos7 has not added/enabled PMU and does not have access to
arch/arm/mach-exynos, so option are to have a reboot/restart driver or
we move pmu.c out of mach-exynos. I know there where some effort in past
to move pmu.c to drivers, but I feel that is still WIP.
And then I came across this generic syscon regmap based driver which are
already in place, so just used it.
Hope that helps.
> Best regards,
> Krzysztof
>
>> Alim Akhtar (7):
>> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos3250 SoCs
>> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos4
>> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5
>> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5410 SoC
>> ARM: exynos_defconfig: Normalize exynos defconfig
>> ARM: exynos_defconfig: Enable generic syscon-{reboot, poweroff}
>> drivers
>> ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs
>>
>> arch/arm/boot/dts/exynos3250.dtsi | 14 ++++++++++++
>> arch/arm/boot/dts/exynos4.dtsi | 14 ++++++++++++
>> arch/arm/boot/dts/exynos5.dtsi | 14 ++++++++++++
>> arch/arm/boot/dts/exynos5410.dtsi | 14 ++++++++++++
>> arch/arm/configs/exynos_defconfig | 11 +++++-----
>> arch/arm/mach-exynos/pmu.c | 43 -------------------------------------
>> 6 files changed, 61 insertions(+), 49 deletions(-)
>>
>
>
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 7/7] ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs
2015-10-19 7:00 ` Krzysztof Kozlowski
@ 2015-10-19 8:27 ` Alim Akhtar
2015-10-19 9:56 ` Javier Martinez Canillas
1 sibling, 0 replies; 38+ messages in thread
From: Alim Akhtar @ 2015-10-19 8:27 UTC (permalink / raw)
To: Krzysztof Kozlowski, linux-samsung-soc
Cc: kgene, javier, devicetree, linux-arm-kernel
Hello Krzysztof,
On 10/19/2015 12:30 PM, Krzysztof Kozlowski wrote:
> On 19.10.2015 15:03, Alim Akhtar wrote:
>> Now we can use the generic syscon-{reboot/poweroff} drivers,
>> so we don't need special handling for reboot/poweroff in
>> exynos pmu driver. This patch remove the same.
>>
>> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
>> ---
>> arch/arm/mach-exynos/pmu.c | 43 -------------------------------------------
>> 1 file changed, 43 deletions(-)
>
> I think that removal of this stuff will effectively remove the
> restart/poweroff handlers from:
> 1. Other defconfigs, like multi_v7
> 2. Custom configs.
>
Well, I did have a plan to enable it on multi_v7
Not sure about other custom configs, if there are some, they should also
enable it I feel.
> Previously this code was always compiled in for ARCH_EXYNOS. Now it is
> not so I am thinking about selecting necessary drivers from main exynos
> Kconfig symbol. That could be tricky though, because "select" should be
> used only for non-visible symbols.
>
Probably adding these to mach-exynos/Kconfig as a "select" will do.
> Any ideas how to solve that?
>
> Best regards,
> Krzysztof
>
>>
>> diff --git a/arch/arm/mach-exynos/pmu.c b/arch/arm/mach-exynos/pmu.c
>> index de68938ee6aa..393c04aa727e 100644
>> --- a/arch/arm/mach-exynos/pmu.c
>> +++ b/arch/arm/mach-exynos/pmu.c
>> @@ -14,9 +14,6 @@
>> #include <linux/of_address.h>
>> #include <linux/platform_device.h>
>> #include <linux/delay.h>
>> -#include <linux/notifier.h>
>> -#include <linux/reboot.h>
>> -
>>
>> #include "exynos-pmu.h"
>> #include "regs-pmu.h"
>> @@ -681,23 +678,6 @@ static unsigned int const exynos5420_list_disable_pmu_reg[] = {
>> EXYNOS5420_CMU_RESET_FSYS_SYS_PWR_REG,
>> };
>>
>> -static void exynos_power_off(void)
>> -{
>> - unsigned int tmp;
>> -
>> - pr_info("Power down.\n");
>> - tmp = pmu_raw_readl(EXYNOS_PS_HOLD_CONTROL);
>> - tmp ^= (1 << 8);
>> - pmu_raw_writel(tmp, EXYNOS_PS_HOLD_CONTROL);
>> -
>> - /* Wait a little so we don't give a false warning below */
>> - mdelay(100);
>> -
>> - pr_err("Power down failed, please power off system manually.\n");
>> - while (1)
>> - ;
>> -}
>> -
>> static void exynos5420_powerdown_conf(enum sys_powerdown mode)
>> {
>> u32 this_cluster;
>> @@ -875,14 +855,6 @@ static void exynos5420_pmu_init(void)
>> pr_info("EXYNOS5420 PMU initialized\n");
>> }
>>
>> -static int pmu_restart_notify(struct notifier_block *this,
>> - unsigned long code, void *unused)
>> -{
>> - pmu_raw_writel(0x1, EXYNOS_SWRESET);
>> -
>> - return NOTIFY_DONE;
>> -}
>> -
>> static const struct exynos_pmu_data exynos3250_pmu_data = {
>> .pmu_config = exynos3250_pmu_config,
>> .pmu_init = exynos3250_pmu_init,
>> @@ -940,20 +912,11 @@ static const struct of_device_id exynos_pmu_of_device_ids[] = {
>> { /*sentinel*/ },
>> };
>>
>> -/*
>> - * Exynos PMU restart notifier, handles restart functionality
>> - */
>> -static struct notifier_block pmu_restart_handler = {
>> - .notifier_call = pmu_restart_notify,
>> - .priority = 128,
>> -};
>> -
>> static int exynos_pmu_probe(struct platform_device *pdev)
>> {
>> const struct of_device_id *match;
>> struct device *dev = &pdev->dev;
>> struct resource *res;
>> - int ret;
>>
>> res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
>> pmu_base_addr = devm_ioremap_resource(dev, res);
>> @@ -978,12 +941,6 @@ static int exynos_pmu_probe(struct platform_device *pdev)
>>
>> platform_set_drvdata(pdev, pmu_context);
>>
>> - ret = register_restart_handler(&pmu_restart_handler);
>> - if (ret)
>> - dev_warn(dev, "can't register restart handler err=%d\n", ret);
>> -
>> - pm_power_off = exynos_power_off;
>> -
>> dev_dbg(dev, "Exynos PMU Driver probe done\n");
>> return 0;
>> }
>>
>
>
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [1/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos3250 SoCs
2015-10-19 6:03 ` [PATCH 1/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos3250 SoCs Alim Akhtar
@ 2015-10-19 8:43 ` Pankaj Dubey
2015-10-19 13:03 ` [PATCH 1/7] " Javier Martinez Canillas
1 sibling, 0 replies; 38+ messages in thread
From: Pankaj Dubey @ 2015-10-19 8:43 UTC (permalink / raw)
To: Alim Akhtar, linux-samsung-soc
Cc: kgene, k.kozlowski, javier, devicetree, linux-arm-kernel
On Monday 19 October 2015 11:33 AM, Alim Akhtar wrote:
> This patch adds syscon-{reboot, poweroff} nodes to allow the
> generic syscon-{reboot, poweroff} driver to reset/poweroff exynos3250 SoC.
>
> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
>
> ---
> arch/arm/boot/dts/exynos3250.dtsi | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
Reviewed-by: Pankaj Dubey <pankaj.dubey@samsung.com>
Thanks,
Pankaj Dubey
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [2/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos4
2015-10-19 6:03 ` [PATCH 2/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos4 Alim Akhtar
@ 2015-10-19 8:45 ` Pankaj Dubey
2015-10-19 13:08 ` [PATCH 2/7] " Javier Martinez Canillas
1 sibling, 0 replies; 38+ messages in thread
From: Pankaj Dubey @ 2015-10-19 8:45 UTC (permalink / raw)
To: Alim Akhtar, linux-samsung-soc
Cc: kgene, k.kozlowski, javier, devicetree, linux-arm-kernel
On Monday 19 October 2015 11:33 AM, Alim Akhtar wrote:
> This patch adds syscon-{reboot, poweroff} nodes to allow the
> generic syscon-{reboot, poweroff} driver to reset/poweroff exynos4 SoC.
>
> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
>
> ---
> arch/arm/boot/dts/exynos4.dtsi | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
Reviewed-by: Pankaj Dubey <pankaj.dubey@samsung.com>
Thanks,
Pankaj Dubey
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [3/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5
2015-10-19 6:03 ` [PATCH 3/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5 Alim Akhtar
@ 2015-10-19 8:47 ` Pankaj Dubey
2015-10-19 13:09 ` [PATCH 3/7] " Javier Martinez Canillas
1 sibling, 0 replies; 38+ messages in thread
From: Pankaj Dubey @ 2015-10-19 8:47 UTC (permalink / raw)
To: Alim Akhtar, linux-samsung-soc
Cc: kgene, k.kozlowski, javier, devicetree, linux-arm-kernel
On Monday 19 October 2015 11:33 AM, Alim Akhtar wrote:
> This patch adds syscon-{reboot, poweroff} nodes to allow the
> generic syscon-{reboot, poweroff} driver to reset/poweroff exynos5 SoCs.
>
> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
>
> ---
> arch/arm/boot/dts/exynos5.dtsi | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
Reviewed-by: Pankaj Dubey <pankaj.dubey@samsung.com>
Thanks,
Pankaj Dubey
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [4/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5410 SoC
2015-10-19 6:03 ` [PATCH 4/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5410 SoC Alim Akhtar
@ 2015-10-19 8:56 ` Pankaj Dubey
2015-10-19 13:10 ` [PATCH 4/7] " Javier Martinez Canillas
1 sibling, 0 replies; 38+ messages in thread
From: Pankaj Dubey @ 2015-10-19 8:56 UTC (permalink / raw)
To: Alim Akhtar, linux-samsung-soc
Cc: kgene, k.kozlowski, javier, devicetree, linux-arm-kernel
On Monday 19 October 2015 11:33 AM, Alim Akhtar wrote:
> This patch adds syscon-{reboot, poweroff} nodes to allow the
> generic syscon-{reboot, poweroff} driver to reset/poweroff exynos5410 SoC.
>
> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
>
> ---
> arch/arm/boot/dts/exynos5410.dtsi | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
Reviewed-by: Pankaj Dubey <pankaj.dubey@samsung.com>
Thanks,
Pankaj Dubey
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 7/7] ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs
2015-10-19 7:00 ` Krzysztof Kozlowski
2015-10-19 8:27 ` Alim Akhtar
@ 2015-10-19 9:56 ` Javier Martinez Canillas
2015-10-19 10:23 ` Alim Akhtar
2015-10-19 13:28 ` Krzysztof Kozlowski
1 sibling, 2 replies; 38+ messages in thread
From: Javier Martinez Canillas @ 2015-10-19 9:56 UTC (permalink / raw)
To: Krzysztof Kozlowski, Alim Akhtar, linux-samsung-soc
Cc: kgene, devicetree, linux-arm-kernel
Hello,
On 10/19/2015 09:00 AM, Krzysztof Kozlowski wrote:
> On 19.10.2015 15:03, Alim Akhtar wrote:
>> Now we can use the generic syscon-{reboot/poweroff} drivers,
>> so we don't need special handling for reboot/poweroff in
>> exynos pmu driver. This patch remove the same.
>>
>> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
>> ---
>> arch/arm/mach-exynos/pmu.c | 43 -------------------------------------------
>> 1 file changed, 43 deletions(-)
>
> I think that removal of this stuff will effectively remove the
> restart/poweroff handlers from:
> 1. Other defconfigs, like multi_v7
> 2. Custom configs.
>
This will also break old DTBs that don't have a "syscon-poweroff" device
node that contains the necessary PMU regmap, offset and mask information.
> Previously this code was always compiled in for ARCH_EXYNOS. Now it is
> not so I am thinking about selecting necessary drivers from main exynos
> Kconfig symbol. That could be tricky though, because "select" should be
> used only for non-visible symbols.
>
> Any ideas how to solve that?
>
Is true that select should only be used for non-visible symbols but there
are others user visible symbols that are selected by ARCH_EXYNOS such as
EXYNOS_THERMAL. So I think selecting the regmap syscon reset stuff there
is a sensible option.
> Best regards,
> Krzysztof
>
Best regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 7/7] ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs
2015-10-19 9:56 ` Javier Martinez Canillas
@ 2015-10-19 10:23 ` Alim Akhtar
2015-10-19 13:28 ` Krzysztof Kozlowski
1 sibling, 0 replies; 38+ messages in thread
From: Alim Akhtar @ 2015-10-19 10:23 UTC (permalink / raw)
To: Javier Martinez Canillas, Krzysztof Kozlowski, linux-samsung-soc
Cc: kgene, devicetree, linux-arm-kernel
On 10/19/2015 03:26 PM, Javier Martinez Canillas wrote:
> Hello,
>
> On 10/19/2015 09:00 AM, Krzysztof Kozlowski wrote:
>> On 19.10.2015 15:03, Alim Akhtar wrote:
>>> Now we can use the generic syscon-{reboot/poweroff} drivers,
>>> so we don't need special handling for reboot/poweroff in
>>> exynos pmu driver. This patch remove the same.
>>>
>>> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
>>> ---
>>> arch/arm/mach-exynos/pmu.c | 43 -------------------------------------------
>>> 1 file changed, 43 deletions(-)
>>
>> I think that removal of this stuff will effectively remove the
>> restart/poweroff handlers from:
>> 1. Other defconfigs, like multi_v7
>> 2. Custom configs.
>>
>
> This will also break old DTBs that don't have a "syscon-poweroff" device
> node that contains the necessary PMU regmap, offset and mask information.
>
>> Previously this code was always compiled in for ARCH_EXYNOS. Now it is
>> not so I am thinking about selecting necessary drivers from main exynos
>> Kconfig symbol. That could be tricky though, because "select" should be
>> used only for non-visible symbols.
>>
>> Any ideas how to solve that?
>>
>
> Is true that select should only be used for non-visible symbols but there
> are others user visible symbols that are selected by ARCH_EXYNOS such as
> EXYNOS_THERMAL. So I think selecting the regmap syscon reset stuff there
> is a sensible option.
>
Yes, another example is MFD_SYSYCON which is selected from Kconfig.
Also CONFIG_POWER_RESET_SYSCON is enable in arch/arm64/config/defconfig.
So both approaches are taken here.
will go with maintainer suggestion here.
>> Best regards,
>> Krzysztof
>>
>
> Best regards,
>
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 1/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos3250 SoCs
2015-10-19 6:03 ` [PATCH 1/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos3250 SoCs Alim Akhtar
2015-10-19 8:43 ` [1/7] " Pankaj Dubey
@ 2015-10-19 13:03 ` Javier Martinez Canillas
2015-10-20 9:00 ` Alim Akhtar
1 sibling, 1 reply; 38+ messages in thread
From: Javier Martinez Canillas @ 2015-10-19 13:03 UTC (permalink / raw)
To: Alim Akhtar, linux-samsung-soc
Cc: kgene, k.kozlowski, devicetree, linux-arm-kernel
Hello Alim,
On 10/19/2015 08:03 AM, Alim Akhtar wrote:
> This patch adds syscon-{reboot, poweroff} nodes to allow the
> generic syscon-{reboot, poweroff} driver to reset/poweroff exynos3250 SoC.
>
> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
> ---
> arch/arm/boot/dts/exynos3250.dtsi | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/arch/arm/boot/dts/exynos3250.dtsi b/arch/arm/boot/dts/exynos3250.dtsi
> index 033def482fc3..af5d9ad4c7b7 100644
> --- a/arch/arm/boot/dts/exynos3250.dtsi
> +++ b/arch/arm/boot/dts/exynos3250.dtsi
> @@ -152,6 +152,20 @@
> interrupt-parent = <&gic>;
> };
>
> + poweroff: syscon-poweroff {
> + compatible = "syscon-poweroff";
> + regmap = <&pmu_system_controller>;
> + offset = <0x330C>;
> + mask = <0x5200>;
> + };
> +
> + reboot: syscon-reboot {
> + compatible = "syscon-reboot";
> + regmap = <&pmu_system_controller>;
> + offset = <0x0400>;
> + mask = <0x1>;
> + };
> +
I don't have a Exynos3250 manual but I guess 0x330C is also named
PS_HOLD_CONTROL and 0x400 is SWRESET as the other Exynos SoCs.
I wonder if a macro could be used instead of magic numbers or at
least have a comment next to the offset field.
The patch looks good to me though and a comment can be added as
a follow up so:
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Best regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 2/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos4
2015-10-19 6:03 ` [PATCH 2/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos4 Alim Akhtar
2015-10-19 8:45 ` [2/7] " Pankaj Dubey
@ 2015-10-19 13:08 ` Javier Martinez Canillas
1 sibling, 0 replies; 38+ messages in thread
From: Javier Martinez Canillas @ 2015-10-19 13:08 UTC (permalink / raw)
To: Alim Akhtar, linux-samsung-soc
Cc: kgene, k.kozlowski, devicetree, linux-arm-kernel
Hello Alim,
On 10/19/2015 08:03 AM, Alim Akhtar wrote:
> This patch adds syscon-{reboot, poweroff} nodes to allow the
> generic syscon-{reboot, poweroff} driver to reset/poweroff exynos4 SoC.
>
> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
> ---
> arch/arm/boot/dts/exynos4.dtsi | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi
> index 98c0a368b777..79015320cdb6 100644
> --- a/arch/arm/boot/dts/exynos4.dtsi
> +++ b/arch/arm/boot/dts/exynos4.dtsi
> @@ -158,6 +158,20 @@
> interrupt-parent = <&gic>;
> };
>
> + poweroff: syscon-poweroff {
> + compatible = "syscon-poweroff";
> + regmap = <&pmu_system_controller>;
> + offset = <0x330C>;
> + mask = <0x5200>;
> + };
> +
> + reboot: syscon-reboot {
> + compatible = "syscon-reboot";
> + regmap = <&pmu_system_controller>;
> + offset = <0x0400>;
> + mask = <0x1>;
> + };
> +
The same comment of patch 1/7 applies to the other
DTS changes. I would prefer if the the offset value
is documented but as I said it could be a follow up.
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Best regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 3/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5
2015-10-19 6:03 ` [PATCH 3/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5 Alim Akhtar
2015-10-19 8:47 ` [3/7] " Pankaj Dubey
@ 2015-10-19 13:09 ` Javier Martinez Canillas
1 sibling, 0 replies; 38+ messages in thread
From: Javier Martinez Canillas @ 2015-10-19 13:09 UTC (permalink / raw)
To: Alim Akhtar, linux-samsung-soc
Cc: kgene, k.kozlowski, devicetree, linux-arm-kernel
Hello Alim,
On 10/19/2015 08:03 AM, Alim Akhtar wrote:
> This patch adds syscon-{reboot, poweroff} nodes to allow the
> generic syscon-{reboot, poweroff} driver to reset/poweroff exynos5 SoCs.
>
> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
> ---
> arch/arm/boot/dts/exynos5.dtsi | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/arch/arm/boot/dts/exynos5.dtsi b/arch/arm/boot/dts/exynos5.dtsi
> index 110dbd4fb884..1313777618b7 100644
> --- a/arch/arm/boot/dts/exynos5.dtsi
> +++ b/arch/arm/boot/dts/exynos5.dtsi
> @@ -88,6 +88,20 @@
> status = "disabled";
> };
>
> + poweroff: syscon-poweroff {
> + compatible = "syscon-poweroff";
> + regmap = <&pmu_system_controller>;
> + offset = <0x330C>;
> + mask = <0x5200>;
> + };
> +
> + reboot: syscon-reboot {
> + compatible = "syscon-reboot";
> + regmap = <&pmu_system_controller>;
> + offset = <0x0400>;
> + mask = <0x1>;
> + };
> +
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Best regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 4/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5410 SoC
2015-10-19 6:03 ` [PATCH 4/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5410 SoC Alim Akhtar
2015-10-19 8:56 ` [4/7] " Pankaj Dubey
@ 2015-10-19 13:10 ` Javier Martinez Canillas
1 sibling, 0 replies; 38+ messages in thread
From: Javier Martinez Canillas @ 2015-10-19 13:10 UTC (permalink / raw)
To: Alim Akhtar, linux-samsung-soc
Cc: kgene, k.kozlowski, devicetree, linux-arm-kernel
Hello Alim,
On 10/19/2015 08:03 AM, Alim Akhtar wrote:
> This patch adds syscon-{reboot, poweroff} nodes to allow the
> generic syscon-{reboot, poweroff} driver to reset/poweroff exynos5410 SoC.
>
> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
> ---
> arch/arm/boot/dts/exynos5410.dtsi | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/arch/arm/boot/dts/exynos5410.dtsi b/arch/arm/boot/dts/exynos5410.dtsi
> index 731eefd23fa9..b9bef8b5ffc9 100644
> --- a/arch/arm/boot/dts/exynos5410.dtsi
> +++ b/arch/arm/boot/dts/exynos5410.dtsi
> @@ -102,6 +102,20 @@
> reg = <0x10040000 0x5000>;
> };
>
> + poweroff: syscon-poweroff {
> + compatible = "syscon-poweroff";
> + regmap = <&pmu_system_controller>;
> + offset = <0x330C>;
> + mask = <0x5200>;
> + };
> +
> + reboot: syscon-reboot {
> + compatible = "syscon-reboot";
> + regmap = <&pmu_system_controller>;
> + offset = <0x0400>;
> + mask = <0x1>;
> + };
> +
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Best regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 5/7] ARM: exynos_defconfig: Normalize exynos defconfig
2015-10-19 6:03 ` [PATCH 5/7] ARM: exynos_defconfig: Normalize exynos defconfig Alim Akhtar
@ 2015-10-19 13:25 ` Javier Martinez Canillas
2015-10-19 15:58 ` Alim Akhtar
0 siblings, 1 reply; 38+ messages in thread
From: Javier Martinez Canillas @ 2015-10-19 13:25 UTC (permalink / raw)
To: Alim Akhtar, linux-samsung-soc
Cc: kgene, k.kozlowski, devicetree, linux-arm-kernel
Hello Alim,
On 10/19/2015 08:03 AM, Alim Akhtar wrote:
> make savedefconfig result in some difference, lets normalize the
> defconfig.
>
> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
> ---
Did you make savedefconfig against v4.3-rc6 or tot linux-next?
I remember we had issues in the past due savedefconfig made against
linux-next but then some of the patches in linux-next not making it
to the next release. So I think it should be good to mention what's
the base used for this patch.
> arch/arm/configs/exynos_defconfig | 8 ++------
> 1 file changed, 2 insertions(+), 6 deletions(-)
>
> diff --git a/arch/arm/configs/exynos_defconfig b/arch/arm/configs/exynos_defconfig
> index 1ff2bfa2e183..3349713e6c63 100644
> --- a/arch/arm/configs/exynos_defconfig
> +++ b/arch/arm/configs/exynos_defconfig
> @@ -99,10 +99,8 @@ CONFIG_SENSORS_LM90=y
> CONFIG_SENSORS_NTC_THERMISTOR=y
> CONFIG_SENSORS_PWM_FAN=y
> CONFIG_SENSORS_INA2XX=y
> -CONFIG_THERMAL=y
> CONFIG_CPU_THERMAL=y
> CONFIG_THERMAL_EMULATION=y
> -CONFIG_EXYNOS_THERMAL=y
I would prefer to split all the changes that removes symbols into a
separate patch explaining why these are not needed anymore (i.e: it
is selected now by symbol $foo).
> CONFIG_WATCHDOG=y
> CONFIG_S3C2410_WATCHDOG=y
> CONFIG_MFD_CROS_EC=y
> @@ -127,14 +125,14 @@ CONFIG_REGULATOR_S2MPS11=y
> CONFIG_REGULATOR_S5M8767=y
> CONFIG_REGULATOR_TPS65090=y
> CONFIG_DRM=y
> -CONFIG_DRM_NXP_PTN3460=y
> -CONFIG_DRM_PARADE_PS8622=y
> CONFIG_DRM_EXYNOS=y
> CONFIG_DRM_EXYNOS_FIMD=y
> CONFIG_DRM_EXYNOS_DSI=y
> CONFIG_DRM_EXYNOS_HDMI=y
> CONFIG_DRM_PANEL_SIMPLE=y
> CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0=y
> +CONFIG_DRM_NXP_PTN3460=y
> +CONFIG_DRM_PARADE_PS8622=y
Moving these DRM bridge symbols to match savedefconfig is ok IMHO.
> CONFIG_FB_SIMPLE=y
> CONFIG_EXYNOS_VIDEO=y
> CONFIG_EXYNOS_MIPI_DSI=y
> @@ -175,7 +173,6 @@ CONFIG_RTC_DRV_S5M=y
> CONFIG_RTC_DRV_S3C=y
> CONFIG_DMADEVICES=y
> CONFIG_PL330_DMA=y
> -CONFIG_CHROME_PLATFORMS=y
> CONFIG_CROS_EC_CHARDEV=y
> CONFIG_COMMON_CLK_MAX77686=y
> CONFIG_COMMON_CLK_MAX77802=y
> @@ -190,7 +187,6 @@ CONFIG_PWM_SAMSUNG=y
> CONFIG_PHY_EXYNOS5250_SATA=y
> CONFIG_EXT2_FS=y
> CONFIG_EXT3_FS=y
> -CONFIG_EXT4_FS=y
> CONFIG_MSDOS_FS=y
> CONFIG_VFAT_FS=y
> CONFIG_TMPFS=y
>
Same comment than above, I would prefer these to be split.
Best regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 7/7] ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs
2015-10-19 9:56 ` Javier Martinez Canillas
2015-10-19 10:23 ` Alim Akhtar
@ 2015-10-19 13:28 ` Krzysztof Kozlowski
2015-10-19 14:07 ` Javier Martinez Canillas
2015-10-19 16:06 ` Alim Akhtar
1 sibling, 2 replies; 38+ messages in thread
From: Krzysztof Kozlowski @ 2015-10-19 13:28 UTC (permalink / raw)
To: Javier Martinez Canillas
Cc: Krzysztof Kozlowski, Alim Akhtar, linux-samsung-soc, kgene,
devicetree, linux-arm-kernel
2015-10-19 18:56 GMT+09:00 Javier Martinez Canillas <javier@osg.samsung.com>:
> Hello,
>
> On 10/19/2015 09:00 AM, Krzysztof Kozlowski wrote:
>> On 19.10.2015 15:03, Alim Akhtar wrote:
>>> Now we can use the generic syscon-{reboot/poweroff} drivers,
>>> so we don't need special handling for reboot/poweroff in
>>> exynos pmu driver. This patch remove the same.
>>>
>>> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
>>> ---
>>> arch/arm/mach-exynos/pmu.c | 43 -------------------------------------------
>>> 1 file changed, 43 deletions(-)
>>
>> I think that removal of this stuff will effectively remove the
>> restart/poweroff handlers from:
>> 1. Other defconfigs, like multi_v7
>> 2. Custom configs.
>>
>
> This will also break old DTBs that don't have a "syscon-poweroff" device
> node that contains the necessary PMU regmap, offset and mask information.
I am not sure whether this is ABI break issue. There was no compatible
mentioning that "reset works" which now would be replaced. The
existing PMU compatible (like samsung,exynos4412-pmu) does not mention
"reset" as a feature coming with this compatible.
So no ABI break.
>
>> Previously this code was always compiled in for ARCH_EXYNOS. Now it is
>> not so I am thinking about selecting necessary drivers from main exynos
>> Kconfig symbol. That could be tricky though, because "select" should be
>> used only for non-visible symbols.
>>
>> Any ideas how to solve that?
>>
>
> Is true that select should only be used for non-visible symbols but there
> are others user visible symbols that are selected by ARCH_EXYNOS such as
> EXYNOS_THERMAL. So I think selecting the regmap syscon reset stuff there
> is a sensible option.
Selecting from defconfig is not sufficient... since I do not have
other idea than selecting then ovak, but Alim please check it whether
it does not create circular dependencies on various configs.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 7/7] ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs
2015-10-19 13:28 ` Krzysztof Kozlowski
@ 2015-10-19 14:07 ` Javier Martinez Canillas
2015-10-19 16:13 ` Alim Akhtar
2015-10-19 16:06 ` Alim Akhtar
1 sibling, 1 reply; 38+ messages in thread
From: Javier Martinez Canillas @ 2015-10-19 14:07 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Alim Akhtar, linux-samsung-soc, kgene, devicetree,
linux-arm-kernel
Hello Krzysztof,
On 10/19/2015 03:28 PM, Krzysztof Kozlowski wrote:
> 2015-10-19 18:56 GMT+09:00 Javier Martinez Canillas <javier@osg.samsung.com>:
>> Hello,
>>
>> On 10/19/2015 09:00 AM, Krzysztof Kozlowski wrote:
>>> On 19.10.2015 15:03, Alim Akhtar wrote:
>>>> Now we can use the generic syscon-{reboot/poweroff} drivers,
>>>> so we don't need special handling for reboot/poweroff in
>>>> exynos pmu driver. This patch remove the same.
>>>>
>>>> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
>>>> ---
>>>> arch/arm/mach-exynos/pmu.c | 43 -------------------------------------------
>>>> 1 file changed, 43 deletions(-)
>>>
>>> I think that removal of this stuff will effectively remove the
>>> restart/poweroff handlers from:
>>> 1. Other defconfigs, like multi_v7
>>> 2. Custom configs.
>>>
>>
>> This will also break old DTBs that don't have a "syscon-poweroff" device
>> node that contains the necessary PMU regmap, offset and mask information.
>
> I am not sure whether this is ABI break issue. There was no compatible
> mentioning that "reset works" which now would be replaced. The
> existing PMU compatible (like samsung,exynos4412-pmu) does not mention
> "reset" as a feature coming with this compatible.
>
> So no ABI break.
>
>
I deliberately didn't use the "DT ABI break" expression since as you said is
not part of the documented DT bindings. But what I said is that this change
will break old DTBs with newer kernels since reboot and power off will stop
working after $SUBJECT.
I'm not a particular fan of the stable DT idea since in practice it seems to
do more harm than good but since that was decided, the expectation for users
is that booting a new kernel with an old DT should not cause any regression.
So I think that at least a comment in the commit message is needed so if
there are people really using old DTs with newer kernels on Exynos boards,
they can know that the commit causes such an issue instead of having to
figure it out themselves.
>>
>>> Previously this code was always compiled in for ARCH_EXYNOS. Now it is
>>> not so I am thinking about selecting necessary drivers from main exynos
>>> Kconfig symbol. That could be tricky though, because "select" should be
>>> used only for non-visible symbols.
>>>
>>> Any ideas how to solve that?
>>>
>>
>> Is true that select should only be used for non-visible symbols but there
>> are others user visible symbols that are selected by ARCH_EXYNOS such as
>> EXYNOS_THERMAL. So I think selecting the regmap syscon reset stuff there
>> is a sensible option.
>
> Selecting from defconfig is not sufficient... since I do not have
> other idea than selecting then ovak, but Alim please check it whether
> it does not create circular dependencies on various configs.
>
Agreed, Kconfig circular dependencies is the reason why select is avoided.
Fortunately now the 0-day bot analyzes even posted patches so it's possible
that such an issue could be found even before these patches are merged.
> Best regards,
> Krzysztof
>
Best regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 5/7] ARM: exynos_defconfig: Normalize exynos defconfig
2015-10-19 13:25 ` Javier Martinez Canillas
@ 2015-10-19 15:58 ` Alim Akhtar
2015-10-19 16:38 ` Javier Martinez Canillas
0 siblings, 1 reply; 38+ messages in thread
From: Alim Akhtar @ 2015-10-19 15:58 UTC (permalink / raw)
To: Javier Martinez Canillas
Cc: Alim Akhtar, linux-samsung-soc@vger.kernel.org, kgene,
Krzysztof Kozłowski, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Hi Javier,
On Mon, Oct 19, 2015 at 6:55 PM, Javier Martinez Canillas
<javier@osg.samsung.com> wrote:
> Hello Alim,
>
> On 10/19/2015 08:03 AM, Alim Akhtar wrote:
>> make savedefconfig result in some difference, lets normalize the
>> defconfig.
>>
>> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
>> ---
>
> Did you make savedefconfig against v4.3-rc6 or tot linux-next?
>
These are based on v4.3-rc5.
> I remember we had issues in the past due savedefconfig made against
> linux-next but then some of the patches in linux-next not making it
> to the next release. So I think it should be good to mention what's
> the base used for this patch.
>
Ah, ok I didn't follow that, will check again on Linux-next as well as
on 4.3-rc5
>> arch/arm/configs/exynos_defconfig | 8 ++------
>> 1 file changed, 2 insertions(+), 6 deletions(-)
>>
>> diff --git a/arch/arm/configs/exynos_defconfig b/arch/arm/configs/exynos_defconfig
>> index 1ff2bfa2e183..3349713e6c63 100644
>> --- a/arch/arm/configs/exynos_defconfig
>> +++ b/arch/arm/configs/exynos_defconfig
>> @@ -99,10 +99,8 @@ CONFIG_SENSORS_LM90=y
>> CONFIG_SENSORS_NTC_THERMISTOR=y
>> CONFIG_SENSORS_PWM_FAN=y
>> CONFIG_SENSORS_INA2XX=y
>> -CONFIG_THERMAL=y
>> CONFIG_CPU_THERMAL=y
>> CONFIG_THERMAL_EMULATION=y
>> -CONFIG_EXYNOS_THERMAL=y
>
> I would prefer to split all the changes that removes symbols into a
> separate patch explaining why these are not needed anymore (i.e: it
> is selected now by symbol $foo).
>
Ok ..let me rebase my patches and check these config changes again....
>> CONFIG_WATCHDOG=y
>> CONFIG_S3C2410_WATCHDOG=y
>> CONFIG_MFD_CROS_EC=y
>> @@ -127,14 +125,14 @@ CONFIG_REGULATOR_S2MPS11=y
>> CONFIG_REGULATOR_S5M8767=y
>> CONFIG_REGULATOR_TPS65090=y
>> CONFIG_DRM=y
>> -CONFIG_DRM_NXP_PTN3460=y
>> -CONFIG_DRM_PARADE_PS8622=y
>> CONFIG_DRM_EXYNOS=y
>> CONFIG_DRM_EXYNOS_FIMD=y
>> CONFIG_DRM_EXYNOS_DSI=y
>> CONFIG_DRM_EXYNOS_HDMI=y
>> CONFIG_DRM_PANEL_SIMPLE=y
>> CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0=y
>> +CONFIG_DRM_NXP_PTN3460=y
>> +CONFIG_DRM_PARADE_PS8622=y
>
> Moving these DRM bridge symbols to match savedefconfig is ok IMHO.
>
>> CONFIG_FB_SIMPLE=y
>> CONFIG_EXYNOS_VIDEO=y
>> CONFIG_EXYNOS_MIPI_DSI=y
>> @@ -175,7 +173,6 @@ CONFIG_RTC_DRV_S5M=y
>> CONFIG_RTC_DRV_S3C=y
>> CONFIG_DMADEVICES=y
>> CONFIG_PL330_DMA=y
>> -CONFIG_CHROME_PLATFORMS=y
>> CONFIG_CROS_EC_CHARDEV=y
>> CONFIG_COMMON_CLK_MAX77686=y
>> CONFIG_COMMON_CLK_MAX77802=y
>> @@ -190,7 +187,6 @@ CONFIG_PWM_SAMSUNG=y
>> CONFIG_PHY_EXYNOS5250_SATA=y
>> CONFIG_EXT2_FS=y
>> CONFIG_EXT3_FS=y
>> -CONFIG_EXT4_FS=y
>> CONFIG_MSDOS_FS=y
>> CONFIG_VFAT_FS=y
>> CONFIG_TMPFS=y
>>
>
> Same comment than above, I would prefer these to be split.
>
> Best regards,
> --
> Javier Martinez Canillas
> Open Source Group
> Samsung Research America
> --
> To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Regards,
Alim
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 7/7] ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs
2015-10-19 13:28 ` Krzysztof Kozlowski
2015-10-19 14:07 ` Javier Martinez Canillas
@ 2015-10-19 16:06 ` Alim Akhtar
2015-10-20 0:20 ` Krzysztof Kozlowski
1 sibling, 1 reply; 38+ messages in thread
From: Alim Akhtar @ 2015-10-19 16:06 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Javier Martinez Canillas, Alim Akhtar,
linux-samsung-soc@vger.kernel.org, kgene,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Hi krzysztof,
On Mon, Oct 19, 2015 at 6:58 PM, Krzysztof Kozlowski
<k.kozlowski@samsung.com> wrote:
> 2015-10-19 18:56 GMT+09:00 Javier Martinez Canillas <javier@osg.samsung.com>:
>> Hello,
>>
>> On 10/19/2015 09:00 AM, Krzysztof Kozlowski wrote:
>>> On 19.10.2015 15:03, Alim Akhtar wrote:
>>>> Now we can use the generic syscon-{reboot/poweroff} drivers,
>>>> so we don't need special handling for reboot/poweroff in
>>>> exynos pmu driver. This patch remove the same.
>>>>
>>>> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
>>>> ---
>>>> arch/arm/mach-exynos/pmu.c | 43 -------------------------------------------
>>>> 1 file changed, 43 deletions(-)
>>>
>>> I think that removal of this stuff will effectively remove the
>>> restart/poweroff handlers from:
>>> 1. Other defconfigs, like multi_v7
>>> 2. Custom configs.
>>>
>>
>> This will also break old DTBs that don't have a "syscon-poweroff" device
>> node that contains the necessary PMU regmap, offset and mask information.
>
> I am not sure whether this is ABI break issue. There was no compatible
> mentioning that "reset works" which now would be replaced. The
> existing PMU compatible (like samsung,exynos4412-pmu) does not mention
> "reset" as a feature coming with this compatible.
>
> So no ABI break.
>
You are right, there is no DT ABI break here.
>
>>
>>> Previously this code was always compiled in for ARCH_EXYNOS. Now it is
>>> not so I am thinking about selecting necessary drivers from main exynos
>>> Kconfig symbol. That could be tricky though, because "select" should be
>>> used only for non-visible symbols.
>>>
>>> Any ideas how to solve that?
>>>
>>
>> Is true that select should only be used for non-visible symbols but there
>> are others user visible symbols that are selected by ARCH_EXYNOS such as
>> EXYNOS_THERMAL. So I think selecting the regmap syscon reset stuff there
>> is a sensible option.
>
> Selecting from defconfig is not sufficient... since I do not have
> other idea than selecting then ovak, but Alim please check it whether
> it does not create circular dependencies on various configs.
>
I checked in multi_v7_defconfig SYSCON_RESET is already enabled by
default. so I doubt we are going to run into any circular
dependencies, will check again..thanks.
> Best regards,
> Krzysztof
> --
> To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Regards,
Alim
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 0/7] Switch to generic syscon regmap based drivers
2015-10-19 6:03 [PATCH 0/7] Switch to generic syscon regmap based drivers Alim Akhtar
` (7 preceding siblings ...)
2015-10-19 6:54 ` [PATCH 0/7] Switch to generic syscon regmap based drivers Krzysztof Kozlowski
@ 2015-10-19 16:08 ` Tobias Jakobi
2015-10-19 16:36 ` Alim Akhtar
2015-10-19 21:18 ` Moritz Fischer
2015-10-20 13:43 ` Markus Reichl
10 siblings, 1 reply; 38+ messages in thread
From: Tobias Jakobi @ 2015-10-19 16:08 UTC (permalink / raw)
To: Alim Akhtar, linux-samsung-soc
Cc: kgene, k.kozlowski, javier, devicetree, linux-arm-kernel
Hello Alim,
I tested the Exynos4 bits on a Odroid-X2 and I can confirm that
poweroff/reboot (still) work.
With best wishes,
Tobias
Alim Akhtar wrote:
> Alim Akhtar (7):
> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos3250 SoCs
> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos4
> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5
> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5410 SoC
> ARM: exynos_defconfig: Normalize exynos defconfig
> ARM: exynos_defconfig: Enable generic syscon-{reboot, poweroff}
> drivers
> ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs
>
> arch/arm/boot/dts/exynos3250.dtsi | 14 ++++++++++++
> arch/arm/boot/dts/exynos4.dtsi | 14 ++++++++++++
> arch/arm/boot/dts/exynos5.dtsi | 14 ++++++++++++
> arch/arm/boot/dts/exynos5410.dtsi | 14 ++++++++++++
> arch/arm/configs/exynos_defconfig | 11 +++++-----
> arch/arm/mach-exynos/pmu.c | 43 -------------------------------------
> 6 files changed, 61 insertions(+), 49 deletions(-)
>
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 7/7] ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs
2015-10-19 14:07 ` Javier Martinez Canillas
@ 2015-10-19 16:13 ` Alim Akhtar
2015-10-19 16:42 ` Javier Martinez Canillas
0 siblings, 1 reply; 38+ messages in thread
From: Alim Akhtar @ 2015-10-19 16:13 UTC (permalink / raw)
To: Javier Martinez Canillas
Cc: Krzysztof Kozlowski, Alim Akhtar,
linux-samsung-soc@vger.kernel.org, kgene,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Hi Javier,
On Mon, Oct 19, 2015 at 7:37 PM, Javier Martinez Canillas
<javier@osg.samsung.com> wrote:
> Hello Krzysztof,
>
> On 10/19/2015 03:28 PM, Krzysztof Kozlowski wrote:
>> 2015-10-19 18:56 GMT+09:00 Javier Martinez Canillas <javier@osg.samsung.com>:
>>> Hello,
>>>
>>> On 10/19/2015 09:00 AM, Krzysztof Kozlowski wrote:
>>>> On 19.10.2015 15:03, Alim Akhtar wrote:
>>>>> Now we can use the generic syscon-{reboot/poweroff} drivers,
>>>>> so we don't need special handling for reboot/poweroff in
>>>>> exynos pmu driver. This patch remove the same.
>>>>>
>>>>> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
>>>>> ---
>>>>> arch/arm/mach-exynos/pmu.c | 43 -------------------------------------------
>>>>> 1 file changed, 43 deletions(-)
>>>>
>>>> I think that removal of this stuff will effectively remove the
>>>> restart/poweroff handlers from:
>>>> 1. Other defconfigs, like multi_v7
>>>> 2. Custom configs.
>>>>
>>>
>>> This will also break old DTBs that don't have a "syscon-poweroff" device
>>> node that contains the necessary PMU regmap, offset and mask information.
>>
>> I am not sure whether this is ABI break issue. There was no compatible
>> mentioning that "reset works" which now would be replaced. The
>> existing PMU compatible (like samsung,exynos4412-pmu) does not mention
>> "reset" as a feature coming with this compatible.
>>
>> So no ABI break.
>>
>>
>
> I deliberately didn't use the "DT ABI break" expression since as you said is
> not part of the documented DT bindings. But what I said is that this change
> will break old DTBs with newer kernels since reboot and power off will stop
> working after $SUBJECT.
>
> I'm not a particular fan of the stable DT idea since in practice it seems to
> do more harm than good but since that was decided, the expectation for users
> is that booting a new kernel with an old DT should not cause any regression.
>
> So I think that at least a comment in the commit message is needed so if
> there are people really using old DTs with newer kernels on Exynos boards,
> they can know that the commit causes such an issue instead of having to
> figure it out themselves.
>
Agree, will add a comment about this in commit message.
>>>
>>>> Previously this code was always compiled in for ARCH_EXYNOS. Now it is
>>>> not so I am thinking about selecting necessary drivers from main exynos
>>>> Kconfig symbol. That could be tricky though, because "select" should be
>>>> used only for non-visible symbols.
>>>>
>>>> Any ideas how to solve that?
>>>>
>>>
>>> Is true that select should only be used for non-visible symbols but there
>>> are others user visible symbols that are selected by ARCH_EXYNOS such as
>>> EXYNOS_THERMAL. So I think selecting the regmap syscon reset stuff there
>>> is a sensible option.
>>
>> Selecting from defconfig is not sufficient... since I do not have
>> other idea than selecting then ovak, but Alim please check it whether
>> it does not create circular dependencies on various configs.
>>
>
> Agreed, Kconfig circular dependencies is the reason why select is avoided.
> Fortunately now the 0-day bot analyzes even posted patches so it's possible
> that such an issue could be found even before these patches are merged.
>
ok..will select it from mach-exynos/Kconfig.
Thanks.
>> Best regards,
>> Krzysztof
>>
>
> Best regards,
> --
> Javier Martinez Canillas
> Open Source Group
> Samsung Research America
> --
> To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Regards,
Alim
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 0/7] Switch to generic syscon regmap based drivers
2015-10-19 16:08 ` Tobias Jakobi
@ 2015-10-19 16:36 ` Alim Akhtar
0 siblings, 0 replies; 38+ messages in thread
From: Alim Akhtar @ 2015-10-19 16:36 UTC (permalink / raw)
To: Tobias Jakobi
Cc: Alim Akhtar, linux-samsung-soc@vger.kernel.org, kgene,
Krzysztof Kozłowski, Javier Martinez Canillas,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Hi Tobias,
On Mon, Oct 19, 2015 at 9:38 PM, Tobias Jakobi
<tjakobi@math.uni-bielefeld.de> wrote:
> Hello Alim,
>
> I tested the Exynos4 bits on a Odroid-X2 and I can confirm that
> poweroff/reboot (still) work.
>
Thanks for helping out in testing, will add your Tested-by of patch 2/7.
> With best wishes,
> Tobias
>
>
> Alim Akhtar wrote:
>> Alim Akhtar (7):
>> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos3250 SoCs
>> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos4
>> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5
>> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5410 SoC
>> ARM: exynos_defconfig: Normalize exynos defconfig
>> ARM: exynos_defconfig: Enable generic syscon-{reboot, poweroff}
>> drivers
>> ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs
>>
>> arch/arm/boot/dts/exynos3250.dtsi | 14 ++++++++++++
>> arch/arm/boot/dts/exynos4.dtsi | 14 ++++++++++++
>> arch/arm/boot/dts/exynos5.dtsi | 14 ++++++++++++
>> arch/arm/boot/dts/exynos5410.dtsi | 14 ++++++++++++
>> arch/arm/configs/exynos_defconfig | 11 +++++-----
>> arch/arm/mach-exynos/pmu.c | 43 -------------------------------------
>> 6 files changed, 61 insertions(+), 49 deletions(-)
>>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Regards,
Alim
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 5/7] ARM: exynos_defconfig: Normalize exynos defconfig
2015-10-19 15:58 ` Alim Akhtar
@ 2015-10-19 16:38 ` Javier Martinez Canillas
0 siblings, 0 replies; 38+ messages in thread
From: Javier Martinez Canillas @ 2015-10-19 16:38 UTC (permalink / raw)
To: Alim Akhtar
Cc: Alim Akhtar, linux-samsung-soc@vger.kernel.org, kgene,
Krzysztof Kozłowski, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Hello Alim,
On 10/19/2015 05:58 PM, Alim Akhtar wrote:
> Hi Javier,
>
> On Mon, Oct 19, 2015 at 6:55 PM, Javier Martinez Canillas
> <javier@osg.samsung.com> wrote:
>> Hello Alim,
>>
>> On 10/19/2015 08:03 AM, Alim Akhtar wrote:
>>> make savedefconfig result in some difference, lets normalize the
>>> defconfig.
>>>
>>> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
>>> ---
>>
>> Did you make savedefconfig against v4.3-rc6 or tot linux-next?
>>
> These are based on v4.3-rc5.
>
>> I remember we had issues in the past due savedefconfig made against
>> linux-next but then some of the patches in linux-next not making it
>> to the next release. So I think it should be good to mention what's
>> the base used for this patch.
>>
> Ah, ok I didn't follow that, will check again on Linux-next as well as
IIRC the problem was in that case that a patch was adding a new select
that made the symbol not necessary in the defconfig. So a patch against
linux-next was posted removing the unneeded symbol but at the end the
select patch didn't make it to the release but the one removing the
symbol did.
> on 4.3-rc5
>
OK, using 4.3-rcX should be safe AFAICT.
>>> arch/arm/configs/exynos_defconfig | 8 ++------
>>> 1 file changed, 2 insertions(+), 6 deletions(-)
>>>
>>> diff --git a/arch/arm/configs/exynos_defconfig b/arch/arm/configs/exynos_defconfig
>>> index 1ff2bfa2e183..3349713e6c63 100644
>>> --- a/arch/arm/configs/exynos_defconfig
>>> +++ b/arch/arm/configs/exynos_defconfig
>>> @@ -99,10 +99,8 @@ CONFIG_SENSORS_LM90=y
>>> CONFIG_SENSORS_NTC_THERMISTOR=y
>>> CONFIG_SENSORS_PWM_FAN=y
>>> CONFIG_SENSORS_INA2XX=y
>>> -CONFIG_THERMAL=y
>>> CONFIG_CPU_THERMAL=y
>>> CONFIG_THERMAL_EMULATION=y
>>> -CONFIG_EXYNOS_THERMAL=y
>>
>> I would prefer to split all the changes that removes symbols into a
>> separate patch explaining why these are not needed anymore (i.e: it
>> is selected now by symbol $foo).
>>
> Ok ..let me rebase my patches and check these config changes again....
Thanks, the changes looks good to me though so please feel free
to add my Reviewed-by tag if you re-spin and split the changes.
Best regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 7/7] ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs
2015-10-19 16:13 ` Alim Akhtar
@ 2015-10-19 16:42 ` Javier Martinez Canillas
0 siblings, 0 replies; 38+ messages in thread
From: Javier Martinez Canillas @ 2015-10-19 16:42 UTC (permalink / raw)
To: Alim Akhtar
Cc: Krzysztof Kozlowski, Alim Akhtar,
linux-samsung-soc@vger.kernel.org, kgene,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Hello Alim,
On 10/19/2015 06:13 PM, Alim Akhtar wrote:
> Hi Javier,
>
> On Mon, Oct 19, 2015 at 7:37 PM, Javier Martinez Canillas
> <javier@osg.samsung.com> wrote:
>> Hello Krzysztof,
>>
>> On 10/19/2015 03:28 PM, Krzysztof Kozlowski wrote:
>>> 2015-10-19 18:56 GMT+09:00 Javier Martinez Canillas <javier@osg.samsung.com>:
>>>> Hello,
>>>>
>>>> On 10/19/2015 09:00 AM, Krzysztof Kozlowski wrote:
>>>>> On 19.10.2015 15:03, Alim Akhtar wrote:
>>>>>> Now we can use the generic syscon-{reboot/poweroff} drivers,
>>>>>> so we don't need special handling for reboot/poweroff in
>>>>>> exynos pmu driver. This patch remove the same.
>>>>>>
>>>>>> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
>>>>>> ---
>>>>>> arch/arm/mach-exynos/pmu.c | 43 -------------------------------------------
>>>>>> 1 file changed, 43 deletions(-)
>>>>>
>>>>> I think that removal of this stuff will effectively remove the
>>>>> restart/poweroff handlers from:
>>>>> 1. Other defconfigs, like multi_v7
>>>>> 2. Custom configs.
>>>>>
>>>>
>>>> This will also break old DTBs that don't have a "syscon-poweroff" device
>>>> node that contains the necessary PMU regmap, offset and mask information.
>>>
>>> I am not sure whether this is ABI break issue. There was no compatible
>>> mentioning that "reset works" which now would be replaced. The
>>> existing PMU compatible (like samsung,exynos4412-pmu) does not mention
>>> "reset" as a feature coming with this compatible.
>>>
>>> So no ABI break.
>>>
>>>
>>
>> I deliberately didn't use the "DT ABI break" expression since as you said is
>> not part of the documented DT bindings. But what I said is that this change
>> will break old DTBs with newer kernels since reboot and power off will stop
>> working after $SUBJECT.
>>
>> I'm not a particular fan of the stable DT idea since in practice it seems to
>> do more harm than good but since that was decided, the expectation for users
>> is that booting a new kernel with an old DT should not cause any regression.
>>
>> So I think that at least a comment in the commit message is needed so if
>> there are people really using old DTs with newer kernels on Exynos boards,
>> they can know that the commit causes such an issue instead of having to
>> figure it out themselves.
>>
> Agree, will add a comment about this in commit message.
>
Thanks, with that comment in the commit message, feel free
to add my Reviewed-by tag to this patch as well.
>>>>
>>>>> Previously this code was always compiled in for ARCH_EXYNOS. Now it is
>>>>> not so I am thinking about selecting necessary drivers from main exynos
>>>>> Kconfig symbol. That could be tricky though, because "select" should be
>>>>> used only for non-visible symbols.
>>>>>
>>>>> Any ideas how to solve that?
>>>>>
>>>>
>>>> Is true that select should only be used for non-visible symbols but there
>>>> are others user visible symbols that are selected by ARCH_EXYNOS such as
>>>> EXYNOS_THERMAL. So I think selecting the regmap syscon reset stuff there
>>>> is a sensible option.
>>>
>>> Selecting from defconfig is not sufficient... since I do not have
>>> other idea than selecting then ovak, but Alim please check it whether
>>> it does not create circular dependencies on various configs.
>>>
>>
>> Agreed, Kconfig circular dependencies is the reason why select is avoided.
>> Fortunately now the 0-day bot analyzes even posted patches so it's possible
>> that such an issue could be found even before these patches are merged.
>>
> ok..will select it from mach-exynos/Kconfig.
> Thanks.
>
Ok, great.
Best regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 0/7] Switch to generic syscon regmap based drivers
2015-10-19 6:03 [PATCH 0/7] Switch to generic syscon regmap based drivers Alim Akhtar
` (8 preceding siblings ...)
2015-10-19 16:08 ` Tobias Jakobi
@ 2015-10-19 21:18 ` Moritz Fischer
2015-10-20 8:56 ` Alim Akhtar
2015-10-20 13:43 ` Markus Reichl
10 siblings, 1 reply; 38+ messages in thread
From: Moritz Fischer @ 2015-10-19 21:18 UTC (permalink / raw)
To: Alim Akhtar
Cc: linux-samsung-soc, kgene, k.kozlowski, javier, devicetree,
linux-arm-kernel
On Sun, Oct 18, 2015 at 11:03 PM, Alim Akhtar <alim.akhtar@samsung.com> wrote:
> Alim Akhtar (7):
> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos3250 SoCs
> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos4
> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5
> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5410 SoC
> ARM: exynos_defconfig: Normalize exynos defconfig
> ARM: exynos_defconfig: Enable generic syscon-{reboot, poweroff}
> drivers
> ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs
>
> arch/arm/boot/dts/exynos3250.dtsi | 14 ++++++++++++
> arch/arm/boot/dts/exynos4.dtsi | 14 ++++++++++++
> arch/arm/boot/dts/exynos5.dtsi | 14 ++++++++++++
> arch/arm/boot/dts/exynos5410.dtsi | 14 ++++++++++++
> arch/arm/configs/exynos_defconfig | 11 +++++-----
> arch/arm/mach-exynos/pmu.c | 43 -------------------------------------
> 6 files changed, 61 insertions(+), 49 deletions(-)
>
> --
> 1.7.10.4
> --
> To unsubscribe from this list: send the line "unsubscribe devicetree" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
Feel free to add Acked-By: Moritz Fischer <moritz.fischer@ettus.com>
to the patches in your series
Moritz
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 7/7] ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs
2015-10-19 16:06 ` Alim Akhtar
@ 2015-10-20 0:20 ` Krzysztof Kozlowski
0 siblings, 0 replies; 38+ messages in thread
From: Krzysztof Kozlowski @ 2015-10-20 0:20 UTC (permalink / raw)
To: Alim Akhtar
Cc: Javier Martinez Canillas, Alim Akhtar,
linux-samsung-soc@vger.kernel.org, kgene,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org
On 20.10.2015 01:06, Alim Akhtar wrote:
>>>
>>>> Previously this code was always compiled in for ARCH_EXYNOS. Now it is
>>>> not so I am thinking about selecting necessary drivers from main exynos
>>>> Kconfig symbol. That could be tricky though, because "select" should be
>>>> used only for non-visible symbols.
>>>>
>>>> Any ideas how to solve that?
>>>>
>>>
>>> Is true that select should only be used for non-visible symbols but there
>>> are others user visible symbols that are selected by ARCH_EXYNOS such as
>>> EXYNOS_THERMAL. So I think selecting the regmap syscon reset stuff there
>>> is a sensible option.
>>
>> Selecting from defconfig is not sufficient... since I do not have
>> other idea than selecting then ovak, but Alim please check it whether
>> it does not create circular dependencies on various configs.
>>
> I checked in multi_v7_defconfig SYSCON_RESET is already enabled by
> default. so I doubt we are going to run into any circular
> dependencies, will check again..thanks.
The circular dependency does not happen when some defconfig selects it.
Instead it could happen when some other Kconfig symbol selects such (and
there are more dependencies).
So what I am saying here, after adding "select SYSCON_RESET" in
mach-exynos/Kconfig, please build configs:
1. allyes
2. allmod,
3. multi_v7,
4. (and of course) exynos.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 0/7] Switch to generic syscon regmap based drivers
2015-10-19 21:18 ` Moritz Fischer
@ 2015-10-20 8:56 ` Alim Akhtar
0 siblings, 0 replies; 38+ messages in thread
From: Alim Akhtar @ 2015-10-20 8:56 UTC (permalink / raw)
To: Moritz Fischer
Cc: linux-samsung-soc, kgene, k.kozlowski, javier, devicetree,
linux-arm-kernel
Hi Moritz,
On 10/20/2015 02:48 AM, Moritz Fischer wrote:
> On Sun, Oct 18, 2015 at 11:03 PM, Alim Akhtar <alim.akhtar@samsung.com> wrote:
>> Alim Akhtar (7):
>> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos3250 SoCs
>> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos4
>> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5
>> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5410 SoC
>> ARM: exynos_defconfig: Normalize exynos defconfig
>> ARM: exynos_defconfig: Enable generic syscon-{reboot, poweroff}
>> drivers
>> ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs
>>
>> arch/arm/boot/dts/exynos3250.dtsi | 14 ++++++++++++
>> arch/arm/boot/dts/exynos4.dtsi | 14 ++++++++++++
>> arch/arm/boot/dts/exynos5.dtsi | 14 ++++++++++++
>> arch/arm/boot/dts/exynos5410.dtsi | 14 ++++++++++++
>> arch/arm/configs/exynos_defconfig | 11 +++++-----
>> arch/arm/mach-exynos/pmu.c | 43 -------------------------------------
>> 6 files changed, 61 insertions(+), 49 deletions(-)
>>
>> --
>> 1.7.10.4
>> --
>> To unsubscribe from this list: send the line "unsubscribe devicetree" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
> Feel free to add Acked-By: Moritz Fischer <moritz.fischer@ettus.com>
> to the patches in your series
>
Thanks!
> Moritz
>
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 1/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos3250 SoCs
2015-10-19 13:03 ` [PATCH 1/7] " Javier Martinez Canillas
@ 2015-10-20 9:00 ` Alim Akhtar
0 siblings, 0 replies; 38+ messages in thread
From: Alim Akhtar @ 2015-10-20 9:00 UTC (permalink / raw)
To: Javier Martinez Canillas, linux-samsung-soc
Cc: kgene, k.kozlowski, devicetree, linux-arm-kernel
Hi Javier,
On 10/19/2015 06:33 PM, Javier Martinez Canillas wrote:
> Hello Alim,
>
> On 10/19/2015 08:03 AM, Alim Akhtar wrote:
>> This patch adds syscon-{reboot, poweroff} nodes to allow the
>> generic syscon-{reboot, poweroff} driver to reset/poweroff exynos3250 SoC.
>>
>> Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com>
>> ---
>> arch/arm/boot/dts/exynos3250.dtsi | 14 ++++++++++++++
>> 1 file changed, 14 insertions(+)
>>
>> diff --git a/arch/arm/boot/dts/exynos3250.dtsi b/arch/arm/boot/dts/exynos3250.dtsi
>> index 033def482fc3..af5d9ad4c7b7 100644
>> --- a/arch/arm/boot/dts/exynos3250.dtsi
>> +++ b/arch/arm/boot/dts/exynos3250.dtsi
>> @@ -152,6 +152,20 @@
>> interrupt-parent = <&gic>;
>> };
>>
>> + poweroff: syscon-poweroff {
>> + compatible = "syscon-poweroff";
>> + regmap = <&pmu_system_controller>;
>> + offset = <0x330C>;
>> + mask = <0x5200>;
>> + };
>> +
>> + reboot: syscon-reboot {
>> + compatible = "syscon-reboot";
>> + regmap = <&pmu_system_controller>;
>> + offset = <0x0400>;
>> + mask = <0x1>;
>> + };
>> +
>
> I don't have a Exynos3250 manual but I guess 0x330C is also named
> PS_HOLD_CONTROL and 0x400 is SWRESET as the other Exynos SoCs.
>
> I wonder if a macro could be used instead of magic numbers or at
> least have a comment next to the offset field.
>
> The patch looks good to me though and a comment can be added as
> a follow up so:
>
Will add a comment about register offset next to it.
> Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
>
Thanks!
> Best regards,
>
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 0/7] Switch to generic syscon regmap based drivers
2015-10-19 6:03 [PATCH 0/7] Switch to generic syscon regmap based drivers Alim Akhtar
` (9 preceding siblings ...)
2015-10-19 21:18 ` Moritz Fischer
@ 2015-10-20 13:43 ` Markus Reichl
2015-10-20 13:56 ` Krzysztof Kozlowski
10 siblings, 1 reply; 38+ messages in thread
From: Markus Reichl @ 2015-10-20 13:43 UTC (permalink / raw)
To: Alim Akhtar, linux-samsung-soc
Cc: devicetree, k.kozlowski, javier, Tobias Jakobi, kgene,
linux-arm-kernel
Am 19.10.2015 um 08:03 schrieb Alim Akhtar:
> Alim Akhtar (7):
> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos3250 SoCs
> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos4
> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5
> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5410 SoC
> ARM: exynos_defconfig: Normalize exynos defconfig
> ARM: exynos_defconfig: Enable generic syscon-{reboot, poweroff}
> drivers
> ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs
>
> arch/arm/boot/dts/exynos3250.dtsi | 14 ++++++++++++
> arch/arm/boot/dts/exynos4.dtsi | 14 ++++++++++++
> arch/arm/boot/dts/exynos5.dtsi | 14 ++++++++++++
> arch/arm/boot/dts/exynos5410.dtsi | 14 ++++++++++++
> arch/arm/configs/exynos_defconfig | 11 +++++-----
> arch/arm/mach-exynos/pmu.c | 43 -------------------------------------
> 6 files changed, 61 insertions(+), 49 deletions(-)
>
Hi,
I have tested this patch on my Odroid U3 and U3+ using 4.3.0-rc6 from
Tobias' repo at https://github.com/tobiasjakobi/linux-odroid/tree/odroid-4.3.y
and his debug config:
https://raw.githubusercontent.com/tobiasjakobi/odroid-environment/master/sourcecode/system/vanilla-4.3-debug.conf
halt -p works (power goes down to 0W)
reboot does not work, stuck at 0.5W, right after
"systemd-shutdown[1]: rebooting".
reboot did work with 4.3.0-rc3 from above repo (without Alim's patch).
Thanks,
--
Markus Reichl
^ permalink raw reply [flat|nested] 38+ messages in thread
* Re: [PATCH 0/7] Switch to generic syscon regmap based drivers
2015-10-20 13:43 ` Markus Reichl
@ 2015-10-20 13:56 ` Krzysztof Kozlowski
0 siblings, 0 replies; 38+ messages in thread
From: Krzysztof Kozlowski @ 2015-10-20 13:56 UTC (permalink / raw)
To: Markus Reichl
Cc: Alim Akhtar, linux-samsung-soc, devicetree, Krzysztof Kozlowski,
Javier Martinez Canillas, Tobias Jakobi, kgene, linux-arm-kernel
2015-10-20 22:43 GMT+09:00 Markus Reichl <m.reichl@fivetechno.de>:
> Am 19.10.2015 um 08:03 schrieb Alim Akhtar:
>> Alim Akhtar (7):
>> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos3250 SoCs
>> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos4
>> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5
>> arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5410 SoC
>> ARM: exynos_defconfig: Normalize exynos defconfig
>> ARM: exynos_defconfig: Enable generic syscon-{reboot, poweroff}
>> drivers
>> ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs
>>
>> arch/arm/boot/dts/exynos3250.dtsi | 14 ++++++++++++
>> arch/arm/boot/dts/exynos4.dtsi | 14 ++++++++++++
>> arch/arm/boot/dts/exynos5.dtsi | 14 ++++++++++++
>> arch/arm/boot/dts/exynos5410.dtsi | 14 ++++++++++++
>> arch/arm/configs/exynos_defconfig | 11 +++++-----
>> arch/arm/mach-exynos/pmu.c | 43 -------------------------------------
>> 6 files changed, 61 insertions(+), 49 deletions(-)
>>
> Hi,
>
> I have tested this patch on my Odroid U3 and U3+ using 4.3.0-rc6 from
> Tobias' repo at https://github.com/tobiasjakobi/linux-odroid/tree/odroid-4.3.y
>
> and his debug config:
> https://raw.githubusercontent.com/tobiasjakobi/odroid-environment/master/sourcecode/system/vanilla-4.3-debug.conf
>
> halt -p works (power goes down to 0W)
>
> reboot does not work, stuck at 0.5W, right after
> "systemd-shutdown[1]: rebooting".
>
> reboot did work with 4.3.0-rc3 from above repo (without Alim's patch).
Hi Markus,
You replied to v1 so I assume you tested v1. Please test latest version: v2.
Mentioned Tobias' repo does not look like vanilla 4.3.0-rc6. Because
of that it may contain additional patches which can fix something...
or break something (like the reboot).
Please test it on latest mainline release or some recent linux-next.
In my case I tested it on linux-next on Oroid XU3 and tomorrow I will
give it a try on Trats2.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 38+ messages in thread
end of thread, other threads:[~2015-10-20 13:56 UTC | newest]
Thread overview: 38+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-19 6:03 [PATCH 0/7] Switch to generic syscon regmap based drivers Alim Akhtar
2015-10-19 6:03 ` [PATCH 1/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos3250 SoCs Alim Akhtar
2015-10-19 8:43 ` [1/7] " Pankaj Dubey
2015-10-19 13:03 ` [PATCH 1/7] " Javier Martinez Canillas
2015-10-20 9:00 ` Alim Akhtar
2015-10-19 6:03 ` [PATCH 2/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos4 Alim Akhtar
2015-10-19 8:45 ` [2/7] " Pankaj Dubey
2015-10-19 13:08 ` [PATCH 2/7] " Javier Martinez Canillas
2015-10-19 6:03 ` [PATCH 3/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5 Alim Akhtar
2015-10-19 8:47 ` [3/7] " Pankaj Dubey
2015-10-19 13:09 ` [PATCH 3/7] " Javier Martinez Canillas
2015-10-19 6:03 ` [PATCH 4/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos5410 SoC Alim Akhtar
2015-10-19 8:56 ` [4/7] " Pankaj Dubey
2015-10-19 13:10 ` [PATCH 4/7] " Javier Martinez Canillas
2015-10-19 6:03 ` [PATCH 5/7] ARM: exynos_defconfig: Normalize exynos defconfig Alim Akhtar
2015-10-19 13:25 ` Javier Martinez Canillas
2015-10-19 15:58 ` Alim Akhtar
2015-10-19 16:38 ` Javier Martinez Canillas
2015-10-19 6:03 ` [PATCH 6/7] ARM: exynos_defconfig: Enable generic syscon-{reboot, poweroff} drivers Alim Akhtar
2015-10-19 6:03 ` [PATCH 7/7] ARM: EXYNOS: Remove code for restart and poweroff for exynos SoCs Alim Akhtar
2015-10-19 7:00 ` Krzysztof Kozlowski
2015-10-19 8:27 ` Alim Akhtar
2015-10-19 9:56 ` Javier Martinez Canillas
2015-10-19 10:23 ` Alim Akhtar
2015-10-19 13:28 ` Krzysztof Kozlowski
2015-10-19 14:07 ` Javier Martinez Canillas
2015-10-19 16:13 ` Alim Akhtar
2015-10-19 16:42 ` Javier Martinez Canillas
2015-10-19 16:06 ` Alim Akhtar
2015-10-20 0:20 ` Krzysztof Kozlowski
2015-10-19 6:54 ` [PATCH 0/7] Switch to generic syscon regmap based drivers Krzysztof Kozlowski
2015-10-19 7:40 ` Alim Akhtar
2015-10-19 16:08 ` Tobias Jakobi
2015-10-19 16:36 ` Alim Akhtar
2015-10-19 21:18 ` Moritz Fischer
2015-10-20 8:56 ` Alim Akhtar
2015-10-20 13:43 ` Markus Reichl
2015-10-20 13:56 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).