Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 67e815c6 authored by Girish Mahadevan's avatar Girish Mahadevan
Browse files

spi: spi_qsd: Check device state during set_cs call



If the set_cs() call is made when the device has suspended then don't
try to make the register writes to force cs and return back to the
framework. Also remove the runtime PM calls from set_cs, these should be
done in the prepare/unprepare_transfer_hardware calls from the framework.

Modify the prepare_transfer_hardware_call() to fail if the runtime
framework is not enabled and in addition don't try to call the runtime
suspend callbacks from the system suspend callback as this could race with
an on-going SPI transfer.

Change-Id: Idc714b1024c1f181a4db59d5552d7ab9100c511f
Signed-off-by: default avatarGirish Mahadevan <girishm@codeaurora.org>
parent 3294e91e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment