<p><a href="https://review.coreboot.org/22984">View Change</a></p><p>4 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://review.coreboot.org/#/c/22984/1/src/drivers/net/chip.h">File src/drivers/net/chip.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/22984/1/src/drivers/net/chip.h@20">Patch Set #1, Line 20:</a> <code style="font-family:monospace,monospace">/* Indentify device number */</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Can you please add some more details what this device number is used for? Also, specify the set of valid values that are expected for this field.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://review.coreboot.org/#/c/22984/1/src/drivers/net/r8168.c">File src/drivers/net/r8168.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/22984/1/src/drivers/net/r8168.c@94">Patch Set #1, Line 94:</a> <code style="font-family:monospace,monospace">u8</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Why not use the same data type in drivers_net_config?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://review.coreboot.org/#/c/22984/1/src/drivers/net/r8168.c@107">Patch Set #1, Line 107:</a> <code style="font-family:monospace,monospace">key[12] = device_index + 0x30;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">This is going to break all the older devices using key "ethernet_mac". I think we should maintain backward compatibility. e.g.: Treat device_index 0 as special i.e. no index specified by the board and thus use key --> ethernet_mac\0. Else if device_index is 1-9, use key --> ethernet_macX\0 where X is 1-9.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://review.coreboot.org/#/c/22984/1/src/drivers/net/r8168.c@109">Patch Set #1, Line 109:</a> <code style="font-family:monospace,monospace">printk(BIOS_DEBUG, "Requesting %s from VPD.\n", key)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Maybe combine this and the print in L129 to have something like:<br>printk(BIOS_DEBUG, "Locating %s from VPD...", key);</p><p style="white-space: pre-wrap; word-wrap: break-word;">...</p><p style="white-space: pre-wrap; word-wrap: break-word;">printk(BIOS_DEBUG, "Done\n");</p></li></ul></li></ul><p>To view, visit <a href="https://review.coreboot.org/22984">change 22984</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/22984"/><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: I108b9bfba39370c8906a2fa4d2b39b106e884e0c </div>
<div style="display:none"> Gerrit-Change-Number: 22984 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Gaggery Tsai <gaggery.tsai@intel.com> </div>
<div style="display:none"> Gerrit-Reviewer: Furquan Shaikh <furquan@google.com> </div>
<div style="display:none"> Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 26 Dec 2017 13:25:01 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>