]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: dwc: Fix MSI-X EP framework address calculation bug
authorGustavo Pimentel <gustavo.pimentel@synopsys.com>
Fri, 23 Nov 2018 17:00:21 +0000 (18:00 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 27 Nov 2018 11:23:31 +0000 (11:23 +0000)
commit000100d9a19092f342391970580e3fc9401d856b
tree6c48ae917e48b28cf43279c84ca9161998a9c4f1
parentb84252f04bb0910dc6790ba56abde1cf3f790d72
PCI: dwc: Fix MSI-X EP framework address calculation bug

Fix an error caused by 3-bit right rotation on offset address
calculation of MSI-X table in dw_pcie_ep_raise_msix_irq().

The initial testing code was setting by default the offset address of
MSI-X table to zero, so that even with a 3-bit right rotation the
computed result would still be zero and valid, therefore this bug went
unnoticed.

Fixes: c13633a3f23e ("PCI: dwc: Add MSI-X callbacks handler")
Signed-off-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
[lorenzo.pieralisi@arm.com: updated commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: stable@vger.kernel.org
drivers/pci/controller/dwc/pcie-designware-ep.c