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

Commit f8606b2b authored by Bhaumik Bhatt's avatar Bhaumik Bhatt Committed by Hemant Kumar
Browse files

mhi: cntrl: qcom: add support to retrieve device failure reason



Allow the core driver to send the buffer to device which can be
used to populate the subsytem failure reason upon assert.

Change-Id: Ia93b3a19560c4929bfe9b059f2ba2d821c7bf4f6
Signed-off-by: default avatarBhaumik Bhatt <bbhatt@codeaurora.org>
parent f8c9a32b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -770,6 +770,10 @@ static struct mhi_controller *mhi_register_controller(struct pci_dev *pci_dev)
	mhi_cntrl->iova_start = memblock_start_of_DRAM();
	mhi_cntrl->iova_stop = memblock_end_of_DRAM();

	/* setup host support for SFR retreival */
	if (of_property_read_bool(of_node, "mhi,sfr-support"))
		mhi_cntrl->sfr_len = MHI_MAX_SFR_LEN;

	of_node = of_parse_phandle(mhi_cntrl->of_node, "qcom,iommu-group", 0);
	if (of_node) {
		use_s1 = true;
+2 −0
Original line number Diff line number Diff line
@@ -30,6 +30,8 @@
#define REMOTE_TIME_REMAINDER_US(x) (REMOTE_TICKS_TO_US((x)) % \
					(REMOTE_TICKS_TO_SEC((x)) * 1000000ULL))

#define MHI_MAX_SFR_LEN (256)

extern const char * const mhi_ee_str[MHI_EE_MAX];
#define TO_MHI_EXEC_STR(ee) (ee >= MHI_EE_MAX ? "INVALID_EE" : mhi_ee_str[ee])