device: Redo pending power request logic
authorAlok Barsode <alok.barsode@linux.intel.com>
Wed, 24 Aug 2011 13:44:09 +0000 (16:44 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 25 Aug 2011 09:14:21 +0000 (11:14 +0200)
commit7abedeb03775038f334e2edf03f73675425579fd
tree43cc2d087abfc933c5190f95044fe381593fc326
parent6c1c909876d619b39f80c198ccbe3db354890ca2
device: Redo pending power request logic

Use 3 values(None/Enable/Disable) for the power_pending.
It helps keep track of the ongoing pending request.
Add a pending timeout. If the daemon handling the device fails
to send a response then we need to reset the power_pending flag.
src/device.c