From: Kukjin Kim <kgene.kim@samsung.com>
To: 이정석 <jays.lee@samsung.com>
Cc: kgene.kim@samsung.com, linux-samsung-soc@vger.kernel.org
Subject: Re: [PATCH] ARM: EXYNOS: fix software reset logic for EXYNOS5440 SOC
Date: Sat, 25 May 2013 06:42:28 +0900 [thread overview]
Message-ID: <519FDEC4.60909@samsung.com> (raw)
In-Reply-To: <003001ce57af$435c0340$ca1409c0$%lee@samsung.com>
On 05/23/13 21:15, 이정석 wrote:
>
> This patch fixes software reset logic. Software reset applies only to
> powered-on domains in SOC because software reset to all domains causes
> reboot failure.
>
> Signed-off-by: Jungseok Lee<jays.lee@samsung.com>
> ---
> arch/arm/mach-exynos/common.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c
> index 7f431dd..a22615d 100644
> --- a/arch/arm/mach-exynos/common.c
> +++ b/arch/arm/mach-exynos/common.c
> @@ -317,9 +317,13 @@ void exynos5_restart(char mode, const char *cmd)
> val = 0x1;
> addr = EXYNOS_SWRESET;
> } else if (of_machine_is_compatible("samsung,exynos5440")) {
> + u32 status;
> np = of_find_compatible_node(NULL, NULL,
> "samsung,exynos5440-clock");
line wrapped?
> + addr = of_iomap(np, 0) + 0xbc;
> + status = __raw_readl(addr);
> addr = of_iomap(np, 0) + 0xcc;
> - val = (0xfff<< 20) | (0x1<< 16);
> + val = __raw_readl(addr);
> + val = (val& 0xffff0000) | (status& 0xffff);
> } else {
> pr_err("%s: cannot support non-DT\n", __func__);
> return;
Looks good to me, applied after fixing line wrapped.
Thanks.
- Kukjin
prev parent reply other threads:[~2013-05-24 21:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-23 12:15 [PATCH] ARM: EXYNOS: fix software reset logic for EXYNOS5440 SOC 이정석
2013-05-24 21:42 ` Kukjin Kim [this message]
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=519FDEC4.60909@samsung.com \
--to=kgene.kim@samsung.com \
--cc=jays.lee@samsung.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox