Thomas Gleixner 361fd37397 PCI/MSI: Do not set invalid bits in MSI mask
msi_mask_irq() takes a mask and a flags argument. The mask argument is used
to mask out bits from the cached mask and the flags argument to set bits.

Some places invoke it with a flags argument which sets bits which are not
used by the device, i.e. when the device supports up to 8 vectors a full
unmask in some places sets the mask to 0xFFFFFF00. While devices probably
do not care, it's still bad practice.

Fixes: 7ba1930db02f ("PCI MSI: Unmask MSI if setup failed")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20210729222542.568173099@linutronix.de
2021-08-10 10:59:20 +02:00
..
2021-07-10 09:22:44 -07:00
2021-07-06 10:56:29 -05:00
2021-07-06 10:56:25 -05:00
2021-06-16 17:20:40 -05:00
2021-07-06 10:56:26 -05:00
2021-06-18 13:54:11 -07:00
2021-07-06 10:56:25 -05:00
2021-06-04 09:21:07 -05:00
2021-07-08 12:06:20 -07:00
2021-07-06 10:56:29 -05:00
2021-07-13 13:59:12 -05:00
2021-07-08 12:06:20 -07:00