PCI: pcie-xilinx-nwl: Fix mask value to disable MSIs
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 22 Mar 2018 16:33:17 +0000 (16:33 +0000)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 23 Mar 2018 11:16:21 +0000 (11:16 +0000)
commit745029187a5465972fa2daf0fa43f1d2edb48de9
tree5dedc70202aa73093ea1a30a9207f73a31783ebe
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2
PCI: pcie-xilinx-nwl: Fix mask value to disable MSIs

Compiling the xilinx-nwl driver with sparse checks result in the
following warning:

drivers/pci/host/pcie-xilinx-nwl.c:633:38: sparse: cast truncates bits
from constant value (ffffffff00000000 becomes 0)

Fix it by explicitly writing 0 to mask interrupts instead of relying
on a bogus cast applied to the mask bitwise complement.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Rob Herring <robh@kernel.org>
Cc: Michal Simek <michal.simek@xilinx.com>
drivers/pci/host/pcie-xilinx-nwl.c