diff options
author | Alex Elder <elder@linaro.org> | 2020-09-28 18:04:42 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-28 18:34:56 -0700 |
commit | d61bb7166d246241451644c2f7a730f743c8bbfa (patch) | |
tree | 45f2f7c9fd872fec6bc6ebdd4d5eb392d1ad7135 /drivers/net/ipa/gsi.c | |
parent | e6580d0eb7f479473c9fdc1da0a2ac37ccf00d6e (diff) | |
download | linux-d61bb7166d246241451644c2f7a730f743c8bbfa.tar.bz2 |
net: ipa: share field mask values for GSI global interrupt
The GSI global interrupt is managed by three registers: enable;
status; and clear. The three registers have same set of field bits
at the same locations. Use a common set of field masks for all
three registers to avoid duplication.
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipa/gsi.c')
-rw-r--r-- | drivers/net/ipa/gsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ipa/gsi.c b/drivers/net/ipa/gsi.c index 745717477cad..203d079c481c 100644 --- a/drivers/net/ipa/gsi.c +++ b/drivers/net/ipa/gsi.c @@ -1074,8 +1074,8 @@ static void gsi_isr_glob_ee(struct gsi *gsi) val &= ~ERROR_INT_FMASK; - if (val & EN_GP_INT1_FMASK) { - val ^= EN_GP_INT1_FMASK; + if (val & GP_INT1_FMASK) { + val ^= GP_INT1_FMASK; gsi_isr_gp_int1(gsi); } |