]> git.baikalelectronics.ru Git - uboot.git/commit
net: eepro100: Pass PCI BDF into bus_to_phys()/phys_to_bus()
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sat, 23 May 2020 14:38:41 +0000 (16:38 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Thu, 18 Jun 2020 17:34:40 +0000 (19:34 +0200)
commit632e9741a3158363c6547051301db9cd90aa1eae
tree85aa29e94e9851024108d133a548e2f223992812
parentd0c203ecb929dd33ff9e4b830bedbcc678d2f746
net: eepro100: Pass PCI BDF into bus_to_phys()/phys_to_bus()

This is a trick in preparation for adding DM support. By passing in
the PCI BDF into the bus_to_phys()/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>
drivers/net/eepro100.c