Furquan Shaikh 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 […]
Right. In fact, the control should never get here if the device we care about isn't enabled in coreboot. So, there seems to be brokenness at a different layer. Though I agree that we should have the check here and return early with an error print indicating that this condition has occurred.
--
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 20:03:25 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Tim Wawrzynczak
twawrzynczak@chromium.org
Gerrit-MessageType: comment