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

Commit 551e3e65 authored by Talel Shenhar's avatar Talel Shenhar
Browse files

mmc: clk-scaling: fix invalid state handling during cmdq



This change fixes an issue that can happen for clock scaling
sequence during command-queue.

This is the sequence for scaling the clocks in case of
command queuing:

 1) Halt queue
 2) Check if state invalid
 3) Scale clocks
 4) Un-halt scale

In case step 2 fails (e.g. device state is different
than R1_STATE_TRAN), we should avoid scaling the clocks and
un-halt the queue. The issue was that step 4 was not
happening in case of invalid state, this change fixes it.

Change-Id: I308b0d6406631febe364d14de7551eb7f628cb40
Signed-off-by: default avatarTalel Shenhar <tatias@codeaurora.org>
parent 62eb03b5
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