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: Bojun Pan <bojunp@codeaurora.org>
This commit is contained in:
Bojun Pan 2019-12-27 13:45:00 -08:00
parent 7e5cfaa6da
commit a85378d25d

View File

@ -1383,6 +1383,16 @@ int gsi_read_channel_scratch(unsigned long chan_hdl,
int gsi_read_wdi3_channel_scratch2_reg(unsigned long chan_hdl, int gsi_read_wdi3_channel_scratch2_reg(unsigned long chan_hdl,
union __packed gsi_wdi3_channel_scratch2_reg *val); 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 * gsi_update_mhi_channel_scratch - MHI Peripheral should call this
* function to update the scratch area of the channel context. Updating * 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; 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, static inline int gsi_update_mhi_channel_scratch(unsigned long chan_hdl,
struct __packed gsi_mhi_channel_scratch mscr) struct __packed gsi_mhi_channel_scratch mscr)
{ {