diff options
author | Alex Elder <elder@linaro.org> | 2020-11-05 19:14:00 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-11-08 00:39:16 +0100 |
commit | 3ca97ffd984c477e6bba26a71ebba188b99f1a4c (patch) | |
tree | 47053977312c75032c0fde90a6f273a950e9c181 /drivers/net/ipa/gsi.h | |
parent | net: ipa: disable all GSI interrupt types initially (diff) | |
download | linux-3ca97ffd984c477e6bba26a71ebba188b99f1a4c.tar.xz linux-3ca97ffd984c477e6bba26a71ebba188b99f1a4c.zip |
net: ipa: cache last-saved GSI IRQ enabled type
Keep track of the set of GSI interrupt types that are currently
enabled by recording the mask value to write (or last written) to
the TYPE_IRQ_MSK register.
Create a new helper function gsi_irq_type_update() to handle
actually writing the register.
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ipa/gsi.h')
-rw-r--r-- | drivers/net/ipa/gsi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ipa/gsi.h b/drivers/net/ipa/gsi.h index fa7e2d35c19c..758125737c8e 100644 --- a/drivers/net/ipa/gsi.h +++ b/drivers/net/ipa/gsi.h @@ -158,6 +158,7 @@ struct gsi { struct gsi_evt_ring evt_ring[GSI_EVT_RING_COUNT_MAX]; u32 event_bitmap; /* allocated event rings */ u32 modem_channel_bitmap; /* modem channels to allocate */ + u32 type_enabled_bitmap; /* GSI IRQ types enabled */ u32 ieob_enabled_bitmap; /* IEOB IRQ enabled (event rings) */ struct completion completion; /* for global EE commands */ struct mutex mutex; /* protects commands, programming */ |