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

Commit c5f427ba authored by Jeevan Shriram's avatar Jeevan Shriram
Browse files

msm: wb: Ensure iommu reference is available in wb terminate



In static screen case on command mode, when wifi display is
disconnected, buffers don't get free as there is a probability
that iommu is not attached. Ensure that iommu is attached when
wifi display terminate is called.

Change-Id: I3cd92072cc44074b31766a5542a9b59e1a2bdad1
Signed-off-by: default avatarJeevan Shriram <jshriram@codeaurora.org>
parent 38fb8d37
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -757,7 +757,9 @@ int mdss_mdp_wb_ioctl_handler(struct msm_fb_data_type *mfd, u32 cmd,
		}
		break;
	case MSMFB_WRITEBACK_TERMINATE:
		mdss_mdp_clk_ctrl(MDP_BLOCK_POWER_ON, false);
		ret = mdss_mdp_wb_terminate(mfd);
		mdss_mdp_clk_ctrl(MDP_BLOCK_POWER_OFF, false);
		break;
	case MSMFB_WRITEBACK_SET_MIRRORING_HINT:
		if (!copy_from_user(&hint, arg, sizeof(hint))) {