From: kesavan.abhilash@gmail.com (Abhilash Kesavan)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/5] ARM: SAMSUNG: Make the sleep code common for S3C64XX and newer SoCs
Date: Fri, 26 Aug 2011 07:40:31 +0530 [thread overview]
Message-ID: <CAM4voak5ArO4YW-bfLDoUFtMndV58thnr2Z4oCbPhD3fRPS1Cw@mail.gmail.com> (raw)
In-Reply-To: <073501cc6391$31569f70$9403de50$%kim@samsung.com>
Hi Mr Kim,
Thanks for your comments. Please find my reply below:
Regards,
Abhilash
On Fri, Aug 26, 2011 at 7:10 AM, Kukjin Kim <kgene.kim@samsung.com> wrote:
> Abhilash Kesavan wrote:
>>
>> The sleep code for S5PV210 and EXYNOS4 is identical; moreover it is quite
>> similar
>> to that for S3C64XX except for some SoC specific debug logic. S5P64X0 and
>> S5PC100,
>> for which support will be added soon, can also use the same procedure.
> Create a
>> common sleep code in the plat-samsung directory so that it can be re-used.
>>
>> Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
>> ---
>> ?arch/arm/mach-exynos4/Kconfig ?| ? ?1 +
>> ?arch/arm/mach-exynos4/Makefile | ? ?2 +-
>> ?arch/arm/mach-exynos4/sleep.S ?| ? 54 ---------------------------
>> ?arch/arm/mach-s3c64xx/Kconfig ?| ? ?1 +
>> ?arch/arm/mach-s3c64xx/Makefile | ? ?1 -
>> ?arch/arm/mach-s3c64xx/sleep.S ?| ? 72
> ------------------------------------
>> ?arch/arm/mach-s5pv210/Kconfig ?| ? ?1 +
>> ?arch/arm/mach-s5pv210/Makefile | ? ?2 +-
>> ?arch/arm/mach-s5pv210/sleep.S ?| ? 52 --------------------------
>> ?arch/arm/plat-samsung/Kconfig ?| ? ?7 +++
>> ?arch/arm/plat-samsung/Makefile | ? ?1 +
>> ?arch/arm/plat-samsung/sleep.S ?| ? 80
>> ++++++++++++++++++++++++++++++++++++++++
>> ?12 files changed, 93 insertions(+), 181 deletions(-)
>> ?delete mode 100644 arch/arm/mach-exynos4/sleep.S
>> ?delete mode 100644 arch/arm/mach-s3c64xx/sleep.S
>> ?delete mode 100644 arch/arm/mach-s5pv210/sleep.S
>> ?create mode 100644 arch/arm/plat-samsung/sleep.S
>>
>
> (snip)
>
>> +ENTRY(s3c_cpu_resume)
>> +#if defined(CONFIG_S3C_PM_DEBUG_LED_SMDK)
>> +
>
> Hi Abhilash,
>
> Yes, would be nice if each sleep.S can be handled in plat-samsung for
> Samsung SoCs.
>
> Hmm...but the CONFIG_S3C_PM_DEBUG_LED_SMDK can be used on other SoCs for
> same reason even though it is available only on S3C64XX now. I think, we
> need to add SoC detecting here.
Quite right, it is possible to use this for other SoCs. But as of now,
my patch just intends
to move all the sleep code to a common place. The S3C64XX sleep code
has this feature
and I didn't want to disturb it in anyway, hence it has been added to
the common file.
Perhaps, generalizing it for other SoCs can be done later on top of this
>
>> +#undef S3C64XX_VA_GPIO
>> +#define S3C64XX_VA_GPIO (0x0)
>
> Please let me know why this is needed here.
The code is trying to access the registers at a stage where the MMU is
not enabled.
Hence, the VA_GPIO is being re-defined as 0 reducing S3C64XX_GPIOREG(reg) to
reg.
It has been moved as is from the existing s3c64xx sleep code.
>
>
> Thanks.
>
> Best regards,
> Kgene.
> --
> Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
> SW Solution Development Team, Samsung Electronics Co., Ltd.
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>
next prev parent reply other threads:[~2011-08-26 2:10 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-12 10:26 [PATCH 0/5] S5P64X0 PM Support Abhilash Kesavan
2011-08-12 10:26 ` [PATCH 1/5] ARM: S5P: Make the common S5P PM code conditionally compile Abhilash Kesavan
2011-08-12 10:26 ` [PATCH 2/5] ARM: SAMSUNG: Make the sleep code common for S3C64XX and newer SoCs Abhilash Kesavan
2011-08-26 1:40 ` Kukjin Kim
2011-08-26 2:10 ` Abhilash Kesavan [this message]
2011-09-07 6:01 ` Kukjin Kim
2011-09-07 6:34 ` Abhilash Kesavan
2011-09-07 9:55 ` Russell King - ARM Linux
2011-09-07 11:30 ` Abhilash Kesavan
2011-08-12 10:26 ` [PATCH 3/5] ARM: S5P64X0: Add pm save/restore functions for GPIO banks Abhilash Kesavan
2011-09-07 6:01 ` Kukjin Kim
2011-09-07 6:36 ` Abhilash Kesavan
2011-08-12 10:26 ` [PATCH 4/5] ARM: S5P64X0: Fix incorrect serial clock name Abhilash Kesavan
2011-09-07 6:01 ` Kukjin Kim
2011-09-07 6:31 ` Abhilash Kesavan
2011-08-12 10:26 ` [PATCH 5/5] ARM: S5P64X0: Add Power Management support Abhilash Kesavan
2011-09-07 6:01 ` Kukjin Kim
2011-09-07 6:33 ` Abhilash Kesavan
2011-08-19 14:02 ` [PATCH 0/5] S5P64X0 PM Support Kukjin Kim
2011-09-21 12:39 ` Kukjin Kim
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=CAM4voak5ArO4YW-bfLDoUFtMndV58thnr2Z4oCbPhD3fRPS1Cw@mail.gmail.com \
--to=kesavan.abhilash@gmail.com \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).