Re: [PATCH] PCI / PM: Update runtime PM documentation for PCI devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 18 Sep 2015, Rafael J. Wysocki wrote:

> From: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
> 
> Section 3.2 "Device Runtime Power Management" of pci.txt has become
> outdated, so update it to correctly reflect the current code flow.
> 
> Also update the comment in local_pci_probe() to document the fact
> that pm_runtime_put_noidle() is not the only runtime PM helper
> function that can be used to decrement the device's runtime PM
> usage counter in .probe().
> 
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
> ---
>  Documentation/power/pci.txt |   51 ++++++++++++++++++++++++++++++++------------
>  drivers/pci/pci-driver.c    |    7 +++---
>  2 files changed, 42 insertions(+), 16 deletions(-)
> 
> Index: linux-pm/Documentation/power/pci.txt
> ===================================================================
> --- linux-pm.orig/Documentation/power/pci.txt
> +++ linux-pm/Documentation/power/pci.txt
> @@ -979,20 +979,45 @@ every time right after the runtime_resum

...

> +It is important to remember that the driver's runtime_suspend() callback
> +may be executed right after the usage counter has been decremented, because
> +user space may already have cuased the pm_runtime_allow() helper function

s/cuased/caused/.  Otherwise,

Acked-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux