Skip to content
Snippets Groups Projects
Commit dce54dd6 authored by Bin Meng's avatar Bin Meng Committed by Simon Glass
Browse files

dm: pci: Save devfn without bus number in pci_uclass_child_post_bind()


In pci_uclass_child_post_bind(), bdf is extracted from fdt_pci_addr.
Mask bus number before save it to pplat->devfn.

Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent bc6351eb
No related branches found
No related tags found
No related merge requests found
...@@ -794,8 +794,8 @@ static int pci_uclass_child_post_bind(struct udevice *dev) ...@@ -794,8 +794,8 @@ static int pci_uclass_child_post_bind(struct udevice *dev)
if (ret != -ENOENT) if (ret != -ENOENT)
return -EINVAL; return -EINVAL;
} else { } else {
/* extract the bdf from fdt_pci_addr */ /* extract the devfn from fdt_pci_addr */
pplat->devfn = addr.phys_hi & 0xffff00; pplat->devfn = addr.phys_hi & 0xff00;
} }
return 0; return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment