<p><a href="https://review.coreboot.org/23801">View Change</a></p><p>3 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://review.coreboot.org/#/c/23801/1/src/ec/google/chromeec/ec.c">File src/ec/google/chromeec/ec.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://review.coreboot.org/#/c/23801/1/src/ec/google/chromeec/ec.c@999">Patch Set #1, Line 999:</a> <code style="font-family:monospace,monospace">      return google_chromeec_command(&cmd) == EC_RES_SUCCESS ? 1 : 0;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Should this also return 1 (true), 0 (false) or -1 (error) for consistency with get_amode()?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://review.coreboot.org/#/c/23801/1/src/ec/google/chromeec/ec.c@1003">Patch Set #1, Line 1003:</a> <code style="font-family:monospace,monospace">other monitor port (e.g. HDMI) is used</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">The second part here doesn't sound great. I think it's fine to let the timeout expire if we have no monitor at all, but if we have HDMI attached it should really not need to wait. Doesn't get_amode() return an SID for HDMI that you could check for so you can abort when you see that?</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://review.coreboot.org/#/c/23801/1/src/ec/google/chromeec/ec_commands.h">File src/ec/google/chromeec/ec_commands.h:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://review.coreboot.org/#/c/23801/1/src/ec/google/chromeec/ec_commands.h@4423">Patch Set #1, Line 4423:</a> <code style="font-family:monospace,monospace">#define EC_CMD_GET_HPD 0x0121</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I do not see this landed in the EC source tree? Again please never touch ec_commands.h directly in a downstream repository like coreboot. Instead, always land the change in the EC repository first, then copy the whole file from the ToT EC repository over to coreboot (preferably as a separate commit).</p></li></ul></li></ul><p>To view, visit <a href="https://review.coreboot.org/23801">change 23801</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/23801"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I07aee3bcca3bca93db66578014500b578402a4de </div>
<div style="display:none"> Gerrit-Change-Number: 23801 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Daisuke Nojiri <dnojiri@chromium.org> </div>
<div style="display:none"> Gerrit-Reviewer: Furquan Shaikh <furquan@google.com> </div>
<div style="display:none"> Gerrit-Reviewer: Julius Werner <jwerner@chromium.org> </div>
<div style="display:none"> Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Sat, 17 Feb 2018 04:26:53 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>