aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bogendoerfer <[email protected]>2019-10-15 14:09:48 +0200
committerPaul Burton <[email protected]>2019-11-23 14:20:18 -0800
commit29b261ff6fd963da2de0e436ce03fff333740f35 (patch)
treef9ca3905b9b8d8e916659a032e4d34bb69702638
parentb02efeb056998076163083a2be3df4a60830335a (diff)
MIPS: PCI: Fix fake subdevice ID for IOC3
Generation of fake subdevice ID had vendor and device ID swapped. Signed-off-by: Thomas Bogendoerfer <[email protected]> Signed-off-by: Paul Burton <[email protected]> Cc: Jakub Kicinski <[email protected]> Cc: Jonathan Corbet <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: Paul Burton <[email protected]> Cc: James Hogan <[email protected]> Cc: Lee Jones <[email protected]> Cc: David S. Miller <[email protected]> Cc: Srinivas Kandagatla <[email protected]> Cc: Alessandro Zummo <[email protected]> Cc: Alexandre Belloni <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Jiri Slaby <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected]
-rw-r--r--arch/mips/pci/pci-xtalk-bridge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/pci/pci-xtalk-bridge.c b/arch/mips/pci/pci-xtalk-bridge.c
index 05753fad70bf..5c1a196be0c5 100644
--- a/arch/mips/pci/pci-xtalk-bridge.c
+++ b/arch/mips/pci/pci-xtalk-bridge.c
@@ -452,7 +452,7 @@ static int bridge_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
return irq;
}
-#define IOC3_SID(sid) (PCI_VENDOR_ID_SGI << 16 | (sid))
+#define IOC3_SID(sid) (PCI_VENDOR_ID_SGI | ((sid) << 16))
static void bridge_setup_ip27_baseio6g(struct bridge_controller *bc)
{