We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e42617b commit f59b86aCopy full SHA for f59b86a
drivers/pci/controller/pcie-rockchip-host.c
@@ -834,10 +834,12 @@ static int rockchip_pcie_cfg_atu(struct rockchip_pcie *rockchip)
834
if (!entry)
835
return -ENODEV;
836
837
+ /* store the register number offset to program RC io outbound ATU */
838
+ offset = size >> 20;
839
+
840
size = resource_size(entry->res);
841
pci_addr = entry->res->start - entry->offset;
842
- offset = size >> 20;
843
for (reg_no = 0; reg_no < (size >> 20); reg_no++) {
844
err = rockchip_pcie_prog_ob_atu(rockchip,
845
reg_no + 1 + offset,
0 commit comments