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

Commit 5f3c7db0 authored by Bhaumik Bhatt's avatar Bhaumik Bhatt Committed by Gerrit - the friendly Code Review server
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 73c764e3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -756,6 +756,9 @@ static struct mhi_controller *mhi_register_controller(struct pci_dev *pci_dev)
	mhi_cntrl->remote_timer_freq = 19200000;
	mhi_cntrl->local_timer_freq = 19200000;

	/* setup host support for SFR retreival */
	mhi_cntrl->sfr_len = MHI_MAX_SFR_LEN;

	ret = of_register_mhi_controller(mhi_cntrl);
	if (ret)
		goto error_register;
+2 −0
Original line number Diff line number Diff line
@@ -34,6 +34,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])