Werner Zeh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36062 )
Change subject: soc/intel/fsp_baytrail: use designware I2C driver
......................................................................
Patch Set 5:
(2 comments)
https://review.coreboot.org/c/coreboot/+/36062/5/src/soc/intel/fsp_baytrail/...
File src/soc/intel/fsp_baytrail/i2c.c:
https://review.coreboot.org/c/coreboot/+/36062/5/src/soc/intel/fsp_baytrail/...
PS5, Line 83: if (!tree_dev || !tree_dev->enabled) {
I would change the logic here to && otherwise you can end up dereferencing a NULL pointer for "tree_ […]
Ups, my bad. You can keep it as it is because if tree_dev is 0 "!tree_dev" will evaluate to "non-zero" and the second part of the OR will even not be checked.
https://review.coreboot.org/c/coreboot/+/36062/5/src/soc/intel/fsp_baytrail/...
PS5, Line 90: !config || !config->early_init
Same here
Here as well.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/36062
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I3b87bd7c27e4c1afcce7cd4225cca02599f43c60
Gerrit-Change-Number: 36062
Gerrit-PatchSet: 5
Gerrit-Owner: uwe taz
uwe.poeche@siemens.com
Gerrit-Reviewer: Huang Jin
huang.jin@intel.com
Gerrit-Reviewer: Mario Scheithauer
mario.scheithauer@siemens.com
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Nico Huber
nico.h@gmx.de
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: Philipp Deppenwiese
zaolin.daisuki@gmail.com
Gerrit-Reviewer: Werner Zeh
werner.zeh@siemens.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-Reviewer: uwe taz
uwe.poeche@siemens.com
Gerrit-Comment-Date: Wed, 23 Oct 2019 07:23:23 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Werner Zeh
werner.zeh@siemens.com
Gerrit-MessageType: comment