<p>Patch set 2:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #d4ffd4;">Code-Review +1</span></p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18953">View Change</a></p><p>8 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18953/2/include/osmo-bts/bts_model.h">File include/osmo-bts/bts_model.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://gerrit.osmocom.org/c/osmo-bts/+/18953/2/include/osmo-bts/bts_model.h@34">Patch Set #2, Line 34:</a> <code style="font-family:monospace,monospace">/* Implementation should call bts_model_trx_close_cb when done */</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">(possibly better place the comment in the .c file?)</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18953/2/include/osmo-bts/bts_model.h@67">Patch Set #2, Line 67:</a> <code style="font-family:monospace,monospace">/* BTS model specific implementations are expected to call this functions as a</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">("this function" vs "these functions")</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18953/2/include/osmo-bts/bts_model.h@71">Patch Set #2, Line 71:</a> <code style="font-family:monospace,monospace">void bts_model_trx_close_cb(struct gsm_bts_trx *trx, int rc);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">(maybe "closed_cb" with d)</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18953/2/src/osmo-bts-omldummy/bts_model.c">File src/osmo-bts-omldummy/bts_model.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://gerrit.osmocom.org/c/osmo-bts/+/18953/2/src/osmo-bts-omldummy/bts_model.c@53">Patch Set #2, Line 53:</a> <code style="font-family:monospace,monospace">void bts_model_trx_close(struct gsm_bts_trx *trx)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">separate fix?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18953/2/src/osmo-bts-omldummy/bts_model.c@55">Patch Set #2, Line 55:</a> <code style="font-family:monospace,monospace">   LOGP(DL1C, LOGL_NOTICE, "Unimplemented %s\n", __func__);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">i guess it's implemented now? :)</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18953/2/src/osmo-bts-trx/l1_if.c">File src/osmo-bts-trx/l1_if.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://gerrit.osmocom.org/c/osmo-bts/+/18953/2/src/osmo-bts-trx/l1_if.c@217">Patch Set #2, Line 217:</a> <code style="font-family:monospace,monospace">          if (rc == 0 && plink->state != PHY_LINK_CONNECTED) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">(the cosmetic plink change confused me reading the patch)</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18953/2/src/osmo-bts-trx/l1_if.c@444">Patch Set #2, Line 444:</a> <code style="font-family:monospace,monospace"> } else if (!pinst->phy_link->u.osmotrx.poweronoff_sent) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">this is immediately responding with close_cb() in case it was never powered on? (explain in a comment?)</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18953/2/src/osmo-bts-virtual/bts_model.c">File src/osmo-bts-virtual/bts_model.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://gerrit.osmocom.org/c/osmo-bts/+/18953/2/src/osmo-bts-virtual/bts_model.c@55">Patch Set #2, Line 55:</a> <code style="font-family:monospace,monospace">    LOGP(DL1C, LOGL_NOTICE, "Unimplemented %s\n", __func__);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">(implemented now)</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/18953">change 18953</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.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://gerrit.osmocom.org/c/osmo-bts/+/18953"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bts </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I7d76b600fc06e1114b35bf0c2d08eff5bbd1b69a </div>
<div style="display:none"> Gerrit-Change-Number: 18953 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 22 Jun 2020 18:16:40 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: Yes </div>
<div style="display:none"> Gerrit-MessageType: comment </div>