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

Commit 3ffa80f9 authored by Yaniv Gardi's avatar Yaniv Gardi
Browse files

scsi: ufs: fix inconsistency of power mode when error is injected



There is an inconsistency between the actual power mode of the
UFS controller (and UFS device), to the power mode informed to upper
layers in case an error is injected during ERR_INJECT_PWR_CHANGE
scenario. Meaning, power change error is reported although the power
mode has actually changed successfully in the controller and in the
device. This change fixes this inconsistency.

Also, this change fixes a bug where a pointer to u8 is sent as
a pointer to int, which results undesired behavior.

Also, this change removes unused error injection scenarios:
- ERR_INJECT_HIBERN8_ENTER
- ERR_INJECT_HIBERN8_EXIT

Change-Id: I14116656862e3db8f5d6a93b5c798a1470a6b716
Signed-off-by: default avatarYaniv Gardi <ygardi@codeaurora.org>
parent f738a338
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