Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: mobiveil: Initialize Primary/Secondary/Subordinate bus numbers

The reset value of Primary, Secondary and Subordinate bus numbers is
zero which is a broken setup.

Program a sensible default value for Primary/Secondary/Subordinate
bus numbers.

Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Minghuan Lian <Minghuan.Lian@nxp.com>
Reviewed-by: Subrahmanya Lingappa <l.subrahmanya@mobiveil.co.in>

authored by

Hou Zhiqiang and committed by
Lorenzo Pieralisi
6f3ab451 284441a9

+6
+6
drivers/pci/controller/pcie-mobiveil.c
··· 561 561 u32 value, pab_ctrl, type = 0; 562 562 struct resource_entry *win; 563 563 564 + /* setup bus numbers */ 565 + value = csr_readl(pcie, PCI_PRIMARY_BUS); 566 + value &= 0xff000000; 567 + value |= 0x00ff0100; 568 + csr_writel(pcie, value, PCI_PRIMARY_BUS); 569 + 564 570 /* 565 571 * program Bus Master Enable Bit in Command Register in PAB Config 566 572 * Space