Patrick Rudolph has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/41899 )
Change subject: device/xhci: Add an xhci driver to enumerate capabilities
......................................................................
Patch Set 2: Code-Review+1
(4 comments)
https://review.coreboot.org/c/coreboot/+/41899/2/src/device/xhci.c
File src/device/xhci.c:
https://review.coreboot.org/c/coreboot/+/41899/2/src/device/xhci.c@31
PS2, Line 31: find_resource
Please use probe_resource.
Find_resource will die instead of returning NULL
https://review.coreboot.org/c/coreboot/+/41899/2/src/device/xhci.c@38
PS2, Line 38: res->limit > 0xFFFFFFFF
Should res->base be checked as well?
It should only check res->base. The resource allocator might still allocate below 4GiB even on a 64bit bar.
https://review.coreboot.org/c/coreboot/+/41899/2/src/device/xhci.c@43
PS2, Line 43: base
Use res2mmio
https://review.coreboot.org/c/coreboot/+/41899/2/src/device/xhci.c@67
PS2, Line 67: ext_cap_ptr
Check that you are still within the BAR.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/41899
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I3065c3fffad01b5378a55cfe904f971079b13d0f
Gerrit-Change-Number: 41899
Gerrit-PatchSet: 2
Gerrit-Owner: Raul Rangel
rrangel@chromium.org
Gerrit-Reviewer: Aaron Durbin
adurbin@chromium.org
Gerrit-Reviewer: Duncan Laurie
dlaurie@chromium.org
Gerrit-Reviewer: Felix Held
felix-coreboot@felixheld.de
Gerrit-Reviewer: Furquan Shaikh
furquan@google.com
Gerrit-Reviewer: Julius Werner
jwerner@chromium.org
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: Patrick Rudolph
siro@das-labor.org
Gerrit-Reviewer: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-Comment-Date: Tue, 02 Jun 2020 05:40:28 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Furquan Shaikh
furquan@google.com
Gerrit-MessageType: comment