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

Commit a85378d2 authored by Bojun Pan's avatar Bojun Pan
Browse files

msm: ipa4: capture the unclock gsi IPA register access



Add more protect on the unclock gsi IPA register access.
In case this is a valid access, assert before disabling
the IPA clock.

Change-Id: If2cc5a9942a5e457bbd8badaabde78138f676176
Signed-off-by: default avatarBojun Pan <bojunp@codeaurora.org>
parent 7e5cfaa6
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -1383,6 +1383,16 @@ int gsi_read_channel_scratch(unsigned long chan_hdl,
int gsi_read_wdi3_channel_scratch2_reg(unsigned long chan_hdl,
		union __packed gsi_wdi3_channel_scratch2_reg *val);

/*
 * gsi_pending_irq_type - Peripheral should call this function to
 * check if there is any pending irq
 *
 * This function can sleep
 *
 * @Return gsi_irq_type
 */
int gsi_pending_irq_type(void);

/**
 * gsi_update_mhi_channel_scratch - MHI Peripheral should call this
 * function to update the scratch area of the channel context. Updating
@@ -1857,6 +1867,11 @@ static inline int gsi_read_channel_scratch(unsigned long chan_hdl,
	return -GSI_STATUS_UNSUPPORTED_OP;
}

static inline int gsi_pending_irq_type(void)
{
	return -GSI_STATUS_UNSUPPORTED_OP;
}

static inline int gsi_update_mhi_channel_scratch(unsigned long chan_hdl,
		struct __packed gsi_mhi_channel_scratch mscr)
{