From: nsekhar@ti.com (Sekhar Nori)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 1/3] ARM: davinci: PM: rework init, support DT platforms
Date: Wed, 16 Nov 2016 14:33:16 +0530 [thread overview]
Message-ID: <59f6af1d-d36a-c68c-59fc-024042fd79e0@ti.com> (raw)
In-Reply-To: <20161115195421.19983-2-khilman@baylibre.com>
On Wednesday 16 November 2016 01:24 AM, Kevin Hilman wrote:
> Remove fake platform device used for PM init. Move pdata values which
> are common across all current platforms into pm.c.
>
> Also, since PM is only used on da8xx, remove davinci_pm_init() from
> common init code, and only use in da850/omapl138 board files that are
> currently creating the fake platform_device.
>
> Suggested-by: Sekhar Nori <nsekhar@ti.com>
> Signed-off-by: Kevin Hilman <khilman@baylibre.com>
> diff --git a/arch/arm/mach-davinci/pm.c b/arch/arm/mach-davinci/pm.c
> index 8929569b1f8a..3f1fb191c03f 100644
> --- a/arch/arm/mach-davinci/pm.c
> +++ b/arch/arm/mach-davinci/pm.c
> @@ -21,15 +21,23 @@
>
> #include <mach/common.h>
> #include <mach/da8xx.h>
> -#include "sram.h"
> +#include <mach/mux.h>
> #include <mach/pm.h>
>
> #include "clock.h"
> +#include "psc.h"
> +#include "sram.h"
>
> +#define DA850_PLL1_BASE 0x01e1a000
> #define DEEPSLEEP_SLEEPCOUNT_MASK 0xFFFF
> +#define DEEPSLEEP_SLEEPCOUNT 128
>
> static void (*davinci_sram_suspend) (struct davinci_pm_config *);
> -static struct davinci_pm_config *pdata;
> +static struct davinci_pm_config pm_config = {
> + .sleepcount = DEEPSLEEP_SLEEPCOUNT,
> + .ddrpsc_num = DA8XX_LPSC1_EMIF3C,
> +};
I added an empty line here while applying. This was pointed to by
checkpatch --strict
> +static struct davinci_pm_config *pdata = &pm_config;
And also adjusted the subject line since there is no DT support being
added in this patch anymore. New subject line:
ARM: davinci: PM: rework init, remove platform device
Applied to v4.10/cleanup
Thanks,
Sekhar
next prev parent reply other threads:[~2016-11-16 9:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-15 19:54 [PATCH v2 0/3] ARM: davinci: PM: cleanup init, add DT support Kevin Hilman
2016-11-15 19:54 ` [PATCH v2 1/3] ARM: davinci: PM: rework init, support DT platforms Kevin Hilman
2016-11-16 9:03 ` Sekhar Nori [this message]
2016-11-15 19:54 ` [PATCH v2 2/3] ARM: davinci: PM: cleanup: remove references to pdata Kevin Hilman
2016-11-16 9:09 ` Sekhar Nori
2016-11-15 19:54 ` [PATCH v2 3/3] ARM: davinci: PM: support da8xx DT platforms Kevin Hilman
2016-11-16 9:16 ` Sekhar Nori
[not found] ` <c0f1cfa2-4086-72fc-783b-d0d8c837cb08@ti.com>
2016-11-16 16:24 ` [PATCH v2 0/3] ARM: davinci: PM: cleanup init, add DT support Kevin Hilman
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=59f6af1d-d36a-c68c-59fc-024042fd79e0@ti.com \
--to=nsekhar@ti.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