summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2012-02-23 08:18:14 -0800
committerGerrit <chrome-bot@google.com>2012-02-23 09:47:25 -0800
commitc84eb5ea33c628e447134f7f34b9f4cb80c47322 (patch)
treecd97be607f3faa65a01f5c7bb9beb355ec08e263 /drivers
parent77fbe691f3b1607acfb6f84e978f73ad4fd5d6a0 (diff)
ehci: fix PCI controllers lookup
We were not searching on the last PCI bus. Fix the loop to go up to pci_last_busno() included. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BUG=None TEST=run on Link with only one PCI bus active, see we can detect the EHCI controllers. Change-Id: Icdcd19df0c622039f56e7403c2616348b5d8b7d6 Reviewed-on: https://gerrit.chromium.org/gerrit/16481 Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Commit-Ready: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/host/ehci-pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c
index 87f3f24355f..3d66e77f25d 100644
--- a/drivers/usb/host/ehci-pci.c
+++ b/drivers/usb/host/ehci-pci.c
@@ -40,7 +40,7 @@ static pci_dev_t ehci_find_class(int index)
pci_dev_t bdf;
uint32_t class;
- for (bus = 0; bus < pci_last_busno(); bus++)
+ for (bus = 0; bus <= pci_last_busno(); bus++)
{
for (devnum = 0; devnum < PCI_MAX_PCI_DEVICES-1; devnum++)
{