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

Commit 7bdc1fbe authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mhi: cntrl: qcom: schedule boot monitor thread conditionally"

parents aeb9a38a 2a8f5c3f
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -204,6 +204,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);
}

@@ -347,7 +348,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
@@ -54,6 +54,7 @@ struct mhi_dev {
	void *arch_info;
	bool powered_on;
	bool allow_m1;
	bool mdm_state;
	dma_addr_t iova_start;
	dma_addr_t iova_stop;
	enum mhi_suspend_mode suspend_mode;