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

Commit 56e33496 authored by Clarence Ip's avatar Clarence Ip
Browse files

drm/msm: return correct error for rsc state switching



The switch to clk and vid states for rsc should return an
integer type and not a boolean to allow the internal
caller to differentiate between "update not allowed" and
real underlying errors.

CRs-Fixed: 2048128
Change-Id: I16cf17e74556659b9c6946304730ef2f74370529
Signed-off-by: default avatarClarence Ip <cip@codeaurora.org>
parent d6686534
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -442,7 +442,7 @@ static int sde_rsc_switch_to_cmd(struct sde_rsc_priv *rsc,
	return rc;
	return rc;
}
}


static bool sde_rsc_switch_to_clk(struct sde_rsc_priv *rsc)
static int sde_rsc_switch_to_clk(struct sde_rsc_priv *rsc)
{
{
	struct sde_rsc_client *client;
	struct sde_rsc_client *client;
	int rc = STATE_UPDATE_NOT_ALLOWED;
	int rc = STATE_UPDATE_NOT_ALLOWED;
@@ -467,7 +467,7 @@ static bool sde_rsc_switch_to_clk(struct sde_rsc_priv *rsc)
	return rc;
	return rc;
}
}


static bool sde_rsc_switch_to_vid(struct sde_rsc_priv *rsc,
static int sde_rsc_switch_to_vid(struct sde_rsc_priv *rsc,
	struct sde_rsc_cmd_config *config,
	struct sde_rsc_cmd_config *config,
	struct sde_rsc_client *caller_client)
	struct sde_rsc_client *caller_client)
{
{