]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: pci: Use the correct hose when configuring devices
authorSimon Glass <sjg@chromium.org>
Sun, 7 Jun 2015 14:50:40 +0000 (08:50 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:29:24 +0000 (13:29 +0200)
commitaca34c04ffea48578094256d07e66e863ebf342b
treee048eacea35ec2b323d5048b142065b3abe6bed5
parentc52ce9bb758e4d8aaf1ce11ec90c1f36e471e758
dm: pci: Use the correct hose when configuring devices

Only the PCI controller has access to the PCI region information. Make sure
to use the controller (rather than any attached bridges) when configuring
devices.

This corrects a failure to scan and configure devices when driver model is
enabled for PCI.

Also add a comment to explain the problem.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/pci/pci-uclass.c
drivers/pci/pci_common.c
include/pci.h