]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: dc2114x: Pass PCI BDF into phys_to_bus()
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Wed, 8 Jul 2020 04:50:41 +0000 (06:50 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Sat, 25 Jul 2020 09:24:02 +0000 (11:24 +0200)
commit8a5c6f158d68dd30bec672b141bf882296bff7e3
tree17a12466abddb92de54161660f8ba5e3b1e580ba
parentfcd6217813661c07f707e804a46886c56d48d0e8
net: dc2114x: Pass PCI BDF into phys_to_bus()

This is a trick in preparation for adding DM support. By passing in
the PCI BDF into the phys_to_bus() macros and calling that dev, we
can substitute dev with udevice when DM support lands and do minor
adjustment to the macros to support both DM and non-DM operation.
No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Ramon Fried <rfried.dev@gmail.com>
drivers/net/dc2114x.c