All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alim Akhtar <alim.akhtar@samsung.com>
To: Javier Martinez Canillas <javier@osg.samsung.com>,
	linux-samsung-soc@vger.kernel.org
Cc: kgene@kernel.org, k.kozlowski@samsung.com,
	devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 1/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos3250 SoCs
Date: Tue, 20 Oct 2015 14:30:02 +0530	[thread overview]
Message-ID: <56260292.2040902@samsung.com> (raw)
In-Reply-To: <5624EA26.9030909@osg.samsung.com>

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,
>

WARNING: multiple messages have this Message-ID (diff)
From: alim.akhtar@samsung.com (Alim Akhtar)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/7] arm: dts: Add syscon-{reboot, poweroff} nodes for exynos3250 SoCs
Date: Tue, 20 Oct 2015 14:30:02 +0530	[thread overview]
Message-ID: <56260292.2040902@samsung.com> (raw)
In-Reply-To: <5624EA26.9030909@osg.samsung.com>

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,
>

  reply	other threads:[~2015-10-20  9:00 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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  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:43   ` [1/7] " Pankaj Dubey
2015-10-19  8:43     ` Pankaj Dubey
2015-10-19 13:03   ` [PATCH 1/7] " Javier Martinez Canillas
2015-10-19 13:03     ` Javier Martinez Canillas
2015-10-20  9:00     ` Alim Akhtar [this message]
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  6:03   ` Alim Akhtar
2015-10-19  8:45   ` [2/7] " Pankaj Dubey
2015-10-19  8:45     ` Pankaj Dubey
2015-10-19 13:08   ` [PATCH 2/7] " Javier Martinez Canillas
2015-10-19 13:08     ` 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  6:03   ` Alim Akhtar
2015-10-19  8:47   ` [3/7] " Pankaj Dubey
2015-10-19  8:47     ` Pankaj Dubey
2015-10-19 13:09   ` [PATCH 3/7] " Javier Martinez Canillas
2015-10-19 13:09     ` 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  6:03   ` Alim Akhtar
2015-10-19  8:56   ` [4/7] " Pankaj Dubey
2015-10-19  8:56     ` Pankaj Dubey
2015-10-19 13:10   ` [PATCH 4/7] " Javier Martinez Canillas
2015-10-19 13:10     ` Javier Martinez Canillas
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 13:25   ` Javier Martinez Canillas
2015-10-19 13:25     ` Javier Martinez Canillas
2015-10-19 15:58     ` Alim Akhtar
2015-10-19 15:58       ` Alim Akhtar
2015-10-19 16:38       ` Javier Martinez Canillas
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   ` 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  6:03   ` Alim Akhtar
2015-10-19  7:00   ` Krzysztof Kozlowski
2015-10-19  7:00     ` Krzysztof Kozlowski
2015-10-19  8:27     ` Alim Akhtar
2015-10-19  8:27       ` Alim Akhtar
2015-10-19  9:56     ` Javier Martinez Canillas
2015-10-19  9:56       ` Javier Martinez Canillas
2015-10-19 10:23       ` Alim Akhtar
2015-10-19 10:23         ` Alim Akhtar
2015-10-19 13:28       ` Krzysztof Kozlowski
2015-10-19 13:28         ` Krzysztof Kozlowski
2015-10-19 14:07         ` Javier Martinez Canillas
2015-10-19 14:07           ` Javier Martinez Canillas
2015-10-19 16:13           ` Alim Akhtar
2015-10-19 16:13             ` Alim Akhtar
2015-10-19 16:42             ` Javier Martinez Canillas
2015-10-19 16:42               ` Javier Martinez Canillas
2015-10-19 16:06         ` Alim Akhtar
2015-10-19 16:06           ` Alim Akhtar
2015-10-20  0:20           ` Krzysztof Kozlowski
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  6:54   ` Krzysztof Kozlowski
2015-10-19  7:40   ` Alim Akhtar
2015-10-19  7:40     ` Alim Akhtar
2015-10-19 16:08 ` Tobias Jakobi
2015-10-19 16:08   ` Tobias Jakobi
2015-10-19 16:36   ` Alim Akhtar
2015-10-19 16:36     ` Alim Akhtar
2015-10-19 21:18 ` Moritz Fischer
2015-10-19 21:18   ` Moritz Fischer
2015-10-20  8:56   ` Alim Akhtar
2015-10-20  8:56     ` Alim Akhtar
2015-10-20 13:43 ` Markus Reichl
2015-10-20 13:43   ` Markus Reichl
2015-10-20 13:56   ` Krzysztof Kozlowski
2015-10-20 13:56     ` Krzysztof Kozlowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56260292.2040902@samsung.com \
    --to=alim.akhtar@samsung.com \
    --cc=devicetree@vger.kernel.org \
    --cc=javier@osg.samsung.com \
    --cc=k.kozlowski@samsung.com \
    --cc=kgene@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.