Re: In Embedded system the dev_pm_info.power_state is useful

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

 



On Fri, 23 May 2008, Francesco VIRLINZI wrote:

> Hi all
> I'm Francesco Virlinzi and I work in STMicroelectronics, I'm a 
> developers of STLinux (www.stlinux.com) an
>   embedded Linux distribution for ST Set Top Box.
> 
> I read in the pm mail list that you are going to remove in the kernel the
>  dev_pm_info.power_state field in the dev_pm_info struct replaced by 
> bus-specific field.
> 
> My request is: don't do that.
> In embedded system it' s really useful because there are a lot of 
> generic IP on a single bus (the pltaform bus)
>   and the only way to check the power state of each IP is based on  
> 'dev_pm_info.power_state'
>   without this filed we will have our IP (platform_device) with no power 
> state concept...

That isn't the only way to check the power state.  You should have a 
private data structure associated with each of the devices you care 
about.  The address of the private data structure is what you store in 
platform_set_drvdata().  In the private data structure you can have a 
field to indicate the device's power state.

If the platform-bus IP really is generic then you can't possibly know
what its dev_pm_info.power_state value means, anyway.

Alan Stern

_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/linux-pm

[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux