net: ipa: cache last-saved GSI IRQ enabled type
authorAlex Elder <elder@linaro.org>
Thu, 5 Nov 2020 18:14:00 +0000 (12:14 -0600)
committerJakub Kicinski <kuba@kernel.org>
Sat, 7 Nov 2020 23:39:16 +0000 (15:39 -0800)
commit3ca97ffd984c477e6bba26a71ebba188b99f1a4c
tree47053977312c75032c0fde90a6f273a950e9c181
parent97eb94c8c79059966cedd66312e004c6070033f6
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>
drivers/net/ipa/gsi.c
drivers/net/ipa/gsi.h