[BUG] driver/staging/android/timed_gpio.c - very long gpio on if CPU suspends

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

 



timed_gpio.c uses hrtimer to switch off the gpio.

However, hrtimer does not get fired after the CPU suspends. Hence, if
the CPU suspends before the timer gets fired, the gpio stays
on until the next time when CPU wakes up causing unnecessary
battery drain (which can be as long as 15 minutes).

IMHO, we should replace hrtimer by android alarm timer to make sure that
CPU wakes up at the right time and gpio gets turned off.

Thanks
Abhilash
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux