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

Commit 4dca34f3 authored by Raghavendra Rao Ananta's avatar Raghavendra Rao Ananta
Browse files

esoc: Notify mdm-helper about the modem's error fatal



There is no way for the mdm-helper to know that the
modem has crashed to take necessary action.
Hence, added the support that sends a notification to the
user-space, through IOCTL, as and when the modem sends an
error fatal interrupt to the driver.

Change-Id: I0a596763b310641d4c9e93d03690ba96162515ff
Signed-off-by: default avatarRaghavendra Rao Ananta <rananta@codeaurora.org>
parent f41dec67
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -169,6 +169,7 @@ static int mdm_subsys_shutdown(const struct subsys_desc *crashed_subsys,
			 */
			return 0;

		esoc_clink_queue_request(ESOC_REQ_CRASH_SHUTDOWN, esoc_clink);
		esoc_client_link_power_off(esoc_clink, true);

		ret = clink_ops->cmd_exe(ESOC_PREPARE_DEBUG,
+2 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ struct esoc_link_data {
#define ESOC_GET_LINK_ID	_IOWR(ESOC_CODE, 9, struct esoc_link_data)

#define ESOC_REQ_SEND_SHUTDOWN	ESOC_REQ_SEND_SHUTDOWN
#define ESOC_REQ_CRASH_SHUTDOWN ESOC_REQ_CRASH_SHUTDOWN

enum esoc_evt {
	ESOC_RUN_STATE = 0x1,
@@ -67,6 +68,7 @@ enum esoc_req {
	ESOC_REQ_DEBUG,
	ESOC_REQ_SHUTDOWN,
	ESOC_REQ_SEND_SHUTDOWN,
	ESOC_REQ_CRASH_SHUTDOWN,
};

#ifdef __KERNEL__