mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
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: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
bc6351eb48
commit
dce54dd6c7
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue