spi: spi-msm-geni: Keep device to suspend if PM call fails
If the runtime PM is disabled, call to get_sync() will fail. In this
scenario, keep device to suspend state and return the error with warn
stack. This should help balance the runtime PM count in get_sync()
failed scenario.
In addition, if the runtime PM is found to be disabled, decide to
return an error and let framework retry the transfers.
Change-Id: Id37a49a4d7550c55dffffc915a63c5fe157f5559
Signed-off-by:
Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
Loading
Please register or sign in to comment