From: Ingo Molnar <mingo@kernel.org>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>,
"H. Peter Anvin" <hpa@zytor.com>,
x86@kernel.org, Ingo Molnar <mingo@redhat.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1 1/1] x86/platform/intel-mid: Run PWRMU command immediately
Date: Thu, 18 Aug 2016 12:52:10 +0200 [thread overview]
Message-ID: <20160818105209.GB30771@gmail.com> (raw)
In-Reply-To: <1471514875-61798-1-git-send-email-andriy.shevchenko@linux.intel.com>
* Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:
> On some firmwares we have to tell how exactly we want the command to be run.
> The default case for now is to run it immediately.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> arch/x86/platform/intel-mid/pwr.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/arch/x86/platform/intel-mid/pwr.c b/arch/x86/platform/intel-mid/pwr.c
> index c901a34..0548741 100644
> --- a/arch/x86/platform/intel-mid/pwr.c
> +++ b/arch/x86/platform/intel-mid/pwr.c
> @@ -44,6 +44,10 @@
> /* Bits in PM_CMD */
> #define PM_CMD_CMD(x) ((x) << 0)
> #define PM_CMD_IOC (1 << 8)
> +#define PM_CMD_CM_NOP (0 << 9)
> +#define PM_CMD_CM_IMMEDIATE (1 << 9)
> +#define PM_CMD_CM_DELAY (2 << 9)
> +#define PM_CMD_CM_TRIGGER (3 << 9)
> #define PM_CMD_D3cold (1 << 21)
>
> /* List of commands */
> @@ -137,7 +141,7 @@ static int mid_pwr_wait(struct mid_pwr *pwr)
>
> static int mid_pwr_wait_for_cmd(struct mid_pwr *pwr, u8 cmd)
> {
> - writel(PM_CMD_CMD(cmd), pwr->regs + PM_CMD);
> + writel(PM_CMD_CMD(cmd) | PM_CMD_CM_IMMEDIATE, pwr->regs + PM_CMD);
> return mid_pwr_wait(pwr);
> }
Does this fix a bug? If yes then please also add that to the changelog: what are
the symptoms of the bug - how does a user notice, etc.
Thanks,
Ingo
next prev parent reply other threads:[~2016-08-18 10:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-18 10:07 [PATCH v1 1/1] x86/platform/intel-mid: Run PWRMU command immediately Andy Shevchenko
2016-08-18 10:52 ` Ingo Molnar [this message]
2016-08-18 11:19 ` Andy Shevchenko
2016-08-18 13:35 ` Ingo Molnar
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=20160818105209.GB30771@gmail.com \
--to=mingo@kernel.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=x86@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