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

Commit f09af350 authored by Mohammed Javid's avatar Mohammed Javid Committed by cpratapa
Browse files

ipa: Fix to MHI channel state update



Make a change to use the right channel state size when
updating the state info to avoid overwriting other fields
in the MHI context.

Change-Id: Ic0483dedaacfd3d74452f561b4e25953a1e24fb0
Signed-off-by: default avatarChaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: default avatarMohammed Javid <mjavid@codeaurora.org>
parent 3b3e314b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
 */

#include <linux/debugfs.h>
@@ -1601,7 +1601,7 @@ int ipa_mhi_connect_pipe(struct ipa_mhi_connect_params *in, u32 *clnt_hdl)
		res = ipa_mhi_read_write_host(IPA_MHI_DMA_TO_HOST,
			&channel->state, channel->channel_context_addr +
				offsetof(struct ipa_mhi_ch_ctx, chstate),
				sizeof(channel->state));
				sizeof(((struct ipa_mhi_ch_ctx *)0)->chstate));
		if (res) {
			IPA_MHI_ERR("ipa_mhi_read_write_host failed\n");
			return res;