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

Commit e2f22cc4 authored by David Dai's avatar David Dai Committed by Gerrit - the friendly Code Review server
Browse files

msm: msm_bus: Ignore -EBUSY from disp rsc when sending AMC cmds



Excess logging may occur when benign errors are returned when AMC
requests are sent to the display RSC when it's in solver mode.

Change-Id: I7089699a351e3e6c34dafd752120d8e4d198cdd9
Signed-off-by: default avatarDavid Dai <daidavid1@codeaurora.org>
parent 8b7fffb4
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@
#include <soc/qcom/rpmh.h>
#include <soc/qcom/tcs.h>
#include <trace/events/trace_msm_bus.h>
#include <dt-bindings/msm/msm-bus-ids.h>
#include "msm_bus_core.h"
#include "msm_bus_rpmh.h"
#include "msm_bus_noc.h"
@@ -621,12 +622,12 @@ int msm_bus_commit_data(struct list_head *clist)
		MSM_BUS_ERR("%s: Error invalidating mbox: %d\n",
						__func__, ret);

	if (cur_rsc->rscdev->req_state == RPMH_AWAKE_STATE) {
		ret = rpmh_write(cur_mbox, cur_rsc->rscdev->req_state,
						cmdlist_active, cnt_active);
	if (cur_rsc->node_info->id == MSM_BUS_RSC_DISP) {
		ret = rpmh_write_batch(cur_mbox, cur_rsc->rscdev->req_state,
						cmdlist_active, n_active);
		/*
		 * Ignore -EBUSY from rpmh_write if it's an AWAKE_STATE
		 * request since AWAKE requests are invalid when
		 * Ignore -EBUSY from rpmh_write if it's an AMC
		 * request to Display RSC which are invalid when
		 * the display RSC is in solver mode and the bus driver
		 * does not know the current state of the display RSC.
		 */