aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ipa/gsi_reg.h
diff options
context:
space:
mode:
authorGravatar Alex Elder <elder@linaro.org> 2020-11-05 12:14:03 -0600
committerGravatar Jakub Kicinski <kuba@kernel.org> 2020-11-07 15:39:17 -0800
commitd6c9e3f506ae8f96727017d1747887aab4e68605 (patch)
treeb2cb31000163d85a81182b95483e8c8ef6e615a5 /drivers/net/ipa/gsi_reg.h
parentnet: ipa: only enable GSI event control IRQs when needed (diff)
downloadlinux-d6c9e3f506ae8f96727017d1747887aab4e68605.tar.gz
linux-d6c9e3f506ae8f96727017d1747887aab4e68605.tar.bz2
linux-d6c9e3f506ae8f96727017d1747887aab4e68605.zip
net: ipa: only enable generic command completion IRQ when needed
The completion of a generic EE GSI command is signaled by a global interrupt of type GP_INT1. The only other used type for a global interrupt is a hardware error report. First, disallow all global interrupt types in gsi_irq_setup(). We want to know about hardware errors, so re-enable the interrupt type in gsi_irq_enable(), to allow hardware errors to be reported. Disable that interrupt type again in gsi_irq_disable(). We only issue generic EE commands one at a time, and there's no reason to keep the completion interrupt enabled when no generic EE command is pending. We furthermore have no need to enable the GP_INT2 or GP_INT3 interrupt types (which aren't used). The change in gsi_irq_enable() makes GSI_CNTXT_GLOB_IRQ_ALL unused, so get rid of it. Have gsi_generic_command() enable the GP_INT1 interrupt type (in addition to the ERROR_INT type) only while a generic command is pending. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ipa/gsi_reg.h')
-rw-r--r--drivers/net/ipa/gsi_reg.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ipa/gsi_reg.h b/drivers/net/ipa/gsi_reg.h
index 1dd81cf0b46a..ae00aff1cfa5 100644
--- a/drivers/net/ipa/gsi_reg.h
+++ b/drivers/net/ipa/gsi_reg.h
@@ -335,7 +335,6 @@ enum gsi_irq_type_id {
#define GP_INT1_FMASK GENMASK(1, 1)
#define GP_INT2_FMASK GENMASK(2, 2)
#define GP_INT3_FMASK GENMASK(3, 3)
-#define GSI_CNTXT_GLOB_IRQ_ALL GENMASK(3, 0)
#define GSI_CNTXT_GSI_IRQ_STTS_OFFSET \
GSI_EE_N_CNTXT_GSI_IRQ_STTS_OFFSET(GSI_EE_AP)