Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185402
b: refs/heads/master
c: 0519792
h: refs/heads/master
v: v3
  • Loading branch information
Edward Shao authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent 621abf8 commit 4e9e147
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cceffe9348f93188d7811bda95924d4bd3040d0f
refs/heads/master: 05197921ff3dad52d99fd1647974c57d9c28d40e
7 changes: 5 additions & 2 deletions trunk/drivers/usb/host/xhci-ext-caps.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,15 @@ static inline int xhci_find_next_cap_offset(void __iomem *base, int ext_offset)

next = readl(base + ext_offset);

if (ext_offset == XHCI_HCC_PARAMS_OFFSET)
if (ext_offset == XHCI_HCC_PARAMS_OFFSET) {
/* Find the first extended capability */
next = XHCI_HCC_EXT_CAPS(next);
else
ext_offset = 0;
} else {
/* Find the next extended capability */
next = XHCI_EXT_CAPS_NEXT(next);
}

if (!next)
return 0;
/*
Expand Down

0 comments on commit 4e9e147

Please sign in to comment.