Commit b5b0774b authored by Subhash Jadavani's avatar Subhash Jadavani Committed by Bryan Huntsman
Browse files

mmc: msm_sdcc: call sps_disconnect/sps_connect APIs from non-atomic context



If SDCC driver encounters any errors during the data transfer, it resets
SDCC controller core and along with that it also resets the BAM pipes.
In order to reset BAM pipes, SDCC driver needs to call sps_disconnect()
followed by sps_connect() APIs of SPS driver. But these APIs can
only be called from non-atomic context.

Currently SDCC driver error handling function is always triggered from
atomic context which means driver can't call BAM pipes reset APIs from
this error handling function. So this change defers the BAM pipe reset
operation in thread context when next SDCC request is issued to driver.

Signed-off-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
parent 84e51192
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment