]> git.baikalelectronics.ru Git - uboot.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)
commitfd4c61295edb2240402ae99569bc9e1adbc08200
tree17a12466abddb92de54161660f8ba5e3b1e580ba
parent92984e6de358b468d28c7aea7f0d376204670ccf
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