From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Lukas Wunner <lukas@wunner.de>, Bjorn Helgaas <bhelgaas@google.com>
Cc: linux-pci@vger.kernel.org, x86@kernel.org
Subject: Re: [PATCH 0/1] x86/platform/intel-mid: Retrofit pci_platform_pm_ops
Date: Fri, 07 Oct 2016 23:55:41 +0300 [thread overview]
Message-ID: <1475873741.11323.325.camel@linux.intel.com> (raw)
In-Reply-To: <cover.1475733022.git.lukas@wunner.de>
On Thu, 2016-10-06 at 08:24 +0200, Lukas Wunner wrote:
> Somehow it went completely under my radar that v4.8 added another
> struct pci_platform_pm_ops for Intel Mobile Internet Devices.
>
> There's a commit queued for v4.9 on Bjorn's pci/pm branch which adds
> a mandatory ->get_power hook to pci_platform_pm_ops and implements
> it for acpi_pci_platform_pm, but not mid_pci_platform_pm.
>
> The following patch fixes that. It's not a build issue, the missing
> hook in mid_pci_platform_pm only becomes a problem at runtime.
>
> @Andy: Could you look over this and provide an ack? I do not have
> an Intel MID so I was only able to compile-test the patch.
Without this I got nothing but constant reboot.
Acked-and-tested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Nevertheless please address my comments.
> The ->get_power hook is currently only called to update a device's
> current_state after resume (both at runtime and after system sleep)
> and after changing its power state using the platform in
> pci_platform_power_transition(). The result of the ->get_power hook
> is ignored unless it's D3cold. Since intel-mid PCI devices can only
> be suspended to D3hot,
Strictly speaking platform supports it, but we don't use these feature.
> the return value is irrelevant on this platform,
> the hook just needs to be present to make pci_set_platform_pm() happy.
>
> If you want to test the patch, you need to apply it either on Bjorn's
> pci/pm branch or linux-next:
> http://git.kernel.org/cgit/linux/kernel/git/helgaas/pci.git/log/?h=pci
> /pm
I'm using linux-next.
>
> Thanks,
>
> Lukas
>
> Lukas Wunner (1):
> x86/platform/intel-mid: Retrofit pci_platform_pm_ops ->get_power
> hook
>
> arch/x86/include/asm/intel-mid.h | 1 +
> arch/x86/platform/intel-mid/pwr.c | 19 +++++++++++++++++++
> drivers/pci/pci-mid.c | 6 ++++++
> 3 files changed, 26 insertions(+)
>
--
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy
prev parent reply other threads:[~2016-10-07 21:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-06 6:24 [PATCH 0/1] x86/platform/intel-mid: Retrofit pci_platform_pm_ops Lukas Wunner
2016-10-06 6:24 ` [PATCH 1/1] x86/platform/intel-mid: Retrofit pci_platform_pm_ops ->get_power hook Lukas Wunner
2016-10-07 20:55 ` Andy Shevchenko
2016-10-08 13:49 ` Lukas Wunner
2016-10-09 12:26 ` Andy Shevchenko
2016-10-09 15:03 ` Lukas Wunner
2016-10-10 10:54 ` Andy Shevchenko
2016-10-09 10:46 ` Lukas Wunner
2016-10-09 11:57 ` Andy Shevchenko
2016-10-09 12:49 ` Lukas Wunner
2016-10-07 20:55 ` Andy Shevchenko [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=1475873741.11323.325.camel@linux.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=bhelgaas@google.com \
--cc=linux-pci@vger.kernel.org \
--cc=lukas@wunner.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 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.