mhi: core: fix bandwidth scaling initialization failure
An incorrect failure check needs to be fixed in the bandwidth scaling initialization function as the absence of the supported event ring support does not get factored in. Change-Id: If80e5126821bc4c9223fe37c4403935a6b1bf047 Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
This commit is contained in:
parent
f1ae7429fb
commit
6275ce75f6
@ -675,7 +675,7 @@ static int mhi_init_bw_scale(struct mhi_controller *mhi_cntrl)
|
||||
|
||||
/* No ER configured to support BW scale */
|
||||
er_index = mhi_get_er_index(mhi_cntrl, MHI_ER_BW_SCALE_ELEMENT_TYPE);
|
||||
if (ret < 0)
|
||||
if (er_index < 0)
|
||||
return er_index;
|
||||
|
||||
bw_cfg_offset += BW_SCALE_CFG_OFFSET;
|
||||
|
Loading…
Reference in New Issue
Block a user