Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/34761 )
Change subject: soc/intel/common/gspi: Check device validity before setting state
......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/34761/1/src/soc/intel/common/block/...
File src/soc/intel/common/block/gspi/gspi.c:
https://review.coreboot.org/c/coreboot/+/34761/1/src/soc/intel/common/block/...
PS1, Line 482: if (device)
Actually, looking at this closer, it's probably safest to put this right after setting device (line 462):
if (!device)
return -1;
because it looks like the rest of the function is configuring the device as though it's enabled (reset, clocks, CS); i.e. it's touching a lot of registers which may not be accessible if it hasn't been assigned resources during PCI enumeration.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/34761
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I792ab1fa6529f5317218896ad05321f8f17cedcd
Gerrit-Change-Number: 34761
Gerrit-PatchSet: 1
Gerrit-Owner: Karthik Ramasubramanian
kramasub@google.com
Gerrit-Reviewer: Furquan Shaikh
furquan@google.com
Gerrit-Reviewer: Justin TerAvest
teravest@google.com
Gerrit-Reviewer: Karthik Ramasubramanian
kramasub@google.com
Gerrit-Reviewer: Patrick Rudolph
siro@das-labor.org
Gerrit-Reviewer: Subrata Banik
subrata.banik@intel.com
Gerrit-Reviewer: Tim Wawrzynczak
twawrzynczak@google.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Tim Wawrzynczak
twawrzynczak@chromium.org
Gerrit-Comment-Date: Tue, 06 Aug 2019 19:46:13 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment