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

Commit cbf8e525 authored by Bhaumik Bhatt's avatar Bhaumik Bhatt
Browse files

mhi: cntrl: qcom: schedule boot monitor thread conditionally



Do not schedule the boot monitor thread when booting up to
collect ramdumps.

Change-Id: I65192dc71859e2ea270e2783c86d5ab9c19dcd39
Signed-off-by: default avatarBhaumik Bhatt <bbhatt@codeaurora.org>
parent ba303bb9
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -190,6 +190,7 @@ static int mhi_arch_esoc_ops_power_on(void *priv, unsigned int flags)
		return ret;
	}

	mhi_dev->mdm_state = (flags & ESOC_HOOK_MDM_CRASH);
	return mhi_pci_probe(pci_dev, NULL);
}

@@ -335,7 +336,8 @@ int mhi_arch_power_up(struct mhi_controller *mhi_cntrl)
	struct mhi_dev *mhi_dev = mhi_controller_get_devdata(mhi_cntrl);
	struct arch_info *arch_info = mhi_dev->arch_info;

	/* start a boot monitor */
	/* start a boot monitor if not in crashed state */
	if (!mhi_dev->mdm_state)
		arch_info->cookie = async_schedule(mhi_boot_monitor, mhi_cntrl);

	return 0;
+1 −0
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@ struct mhi_dev {
	int resn;
	void *arch_info;
	bool powered_on;
	bool mdm_state;
	dma_addr_t iova_start;
	dma_addr_t iova_stop;
	enum mhi_suspend_mode suspend_mode;