power: qpnp-fg: fix retry transaction in IMA read
When the start and end beat counts do not match during IMA read,
clear IMA_REQ_ACCESS before retrying the transaction again.
Also, as per the hardware documentation, RIF_MEM_ACCESS_REQ
status has to be checked before doing an IMA read/write. Without
doing that, there is a chance of interrupting an ongoing SRAM
access ending up in IMA exception. Fix it.
CRs-Fixed: 950434
Change-Id: Ia899c7c300b01ce56149cfc1d97ed464fedc2724
Signed-off-by:
Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Loading
Please register or sign in to comment