Attention is currently required from: Jes Klinke, Tim Wawrzynczak, Christian Walter, Julius Werner, Jett Rink.
Reka Norman has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/64202 )
Change subject: drivers/i2c/tpm: Work around missing firmware_version in Ti50 < 0.0.15
......................................................................
Patch Set 6:
(1 comment)
Patchset:
PS2:
It's not so much about the version number being guaranteed correct, more just that there is some num […]
If we add more calls to cr50_get_firmware_version() in the future, then presumably it would be because the calling code wants to handle different Ti50 versions differently. In that case, wouldn't silently returning a version which might be completely wrong just be likely to cause problems? I would argue that we do want cr50_get_firmware_version() to fail in this case.
I see your point about encapsulating this inside cr50_get_firmware_version() though. How about returning early from cr50_get_firmware_version() with CB_ERR and printing a log saying the firmware version is unimplemented. That will make sure if more calls are added in the future we'll notice this, and we can figure out how to handle the fact that the firmware version might be unimplemented on a case by case basis.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/64202
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ia30d44ac231c42eba3ffb1cb1e6d83bb6593f926
Gerrit-Change-Number: 64202
Gerrit-PatchSet: 6
Gerrit-Owner: Reka Norman
rekanorman@chromium.org
Gerrit-Reviewer: Angel Pons
th3fanbus@gmail.com
Gerrit-Reviewer: Christian Walter
christian.walter@9elements.com
Gerrit-Reviewer: Eric Lai
eric_lai@quanta.corp-partner.google.com
Gerrit-Reviewer: Jes Klinke
jbk@chromium.org
Gerrit-Reviewer: Jett Rink
jettrink@chromium.org
Gerrit-Reviewer: Kangheui Won
khwon@chromium.org
Gerrit-Reviewer: Tim Wawrzynczak
twawrzynczak@chromium.org
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Julius Werner
jwerner@chromium.org
Gerrit-CC: Reka Norman
rekanorman@google.com
Gerrit-Attention: Jes Klinke
jbk@chromium.org
Gerrit-Attention: Tim Wawrzynczak
twawrzynczak@chromium.org
Gerrit-Attention: Christian Walter
christian.walter@9elements.com
Gerrit-Attention: Julius Werner
jwerner@chromium.org
Gerrit-Attention: Jett Rink
jettrink@chromium.org
Gerrit-Comment-Date: Wed, 11 May 2022 00:18:09 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Reka Norman
rekanorman@chromium.org
Comment-In-Reply-To: Julius Werner
jwerner@chromium.org
Gerrit-MessageType: comment