Re: [PATCH 6/9] PCI PM: call platform helpers properly

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

 



On Tue, 2006-06-06 at 10:31 +1000, Benjamin Herrenschmidt wrote:
> > -	pci_write_config_word(dev, pm->pm_offset + PCI_PM_CTRL, pmcsr);
> > +	/* call platform helpers (e.g. ACPI) before restoring power */
> > +	if (state == PCI_D0 && platform_pci_set_power_state)
> > +		platform_pci_set_power_state(dev, state);
> 
> I think the platform helper need to be able to either return from the
> function directly or at least you should read back the state before
> continuing. The platform helper may call into firmware which might
> handle the complete state transition. Thus, when you come back from it,
> you probably need to check the device-state, or provide return codes for
> the platform helper to affect the code flow of the rest of the function.

Hmm, do you know of any example firmware scenarios that make the entire
state transition?  We might need a separate callback.  I think the
changes in this patch are at least an improvement over the current
behavior, especially for ACPI PM functions.  

Thanks,
Adam


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux