Android r beta 2 release 0.4
mfd: adnc: added error handling for pm_runtime_get_sync

When the chip crashes in iaxxx_wakeup_chip(), an error will be
returned by iaxxx_wakeup_chip() and fail pm_runtime_get_sync().
The flag dev->power.runtime_error will also be set and block the
following pm_runtime_get_sync() and pm_runtime_put_sync() for firmware
recovery.

When the chip crashes in iaxxx_wakeup_chip(), it will also start
the firmware recovery process. Use pm_runtime_set_active() to
reset runtime_error state and allow the following firmware recovery.

Bug: 158204264
Change-Id: I36c04d33b1033756afb10634ebf58345cedaac2a
Signed-off-by: JJ Lee <leejj@google.com>
1 file changed