Add SIMPLE_DEV_PM_OPS in LWIS
Add the SIMPLE_DEV_PM_OPS callback into
the lwis_i2c_device. This change is major to
avoid the drivers(Flash) being cutting off while
the device into the suspension mode(deep sleep).
The suspend callback provide that we can just return
the error code, so the devices are in use not into the hibernation.
Device Tree -
Add the following term to peripheral devices for
supporting enable/disable power manamgement hibernation mode.
pm-hibernation = <0>; /* 1 : enable, 0 : disable */
Bug: 178892122
Test: Flashlight, Camera checklist
Signed-off-by:
Nick Chung <nickchung@google.com>
Change-Id: I833f8c60033b876c7dc7593e4111bc80674dd309
Loading
Please sign in to comment