dexter has uploaded this change for review.

View Change

pcu_l1_if_phy: add new API call l1if_disconnect_pdch

Change-Id: I4cc72f032f0abdd5833cdd3b1fe68c69394d89a4
---
M src/pcu_l1_if.cpp
M src/pcu_l1_if_phy.h
2 files changed, 16 insertions(+), 0 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/38/31438/1
diff --git a/src/pcu_l1_if.cpp b/src/pcu_l1_if.cpp
index 2384600..346d449 100644
--- a/src/pcu_l1_if.cpp
+++ b/src/pcu_l1_if.cpp
@@ -920,6 +920,9 @@
if (pdch->is_enabled()) {
pcu_tx_act_req(bts, pdch, 0);
pdch->disable();
+ if (the_pcu->phy_ops && the_pcu->phy_ops->l1if_disconnect_pdch
+ && (info_ind->flags & PCU_IF_FLAG_SYSMO))
+ the_pcu->phy_ops->l1if_disconnect_pdch(bts->trx[trx_nr].fl1h);
}
}
}
diff --git a/src/pcu_l1_if_phy.h b/src/pcu_l1_if_phy.h
index 4187fbd..02bc158 100644
--- a/src/pcu_l1_if_phy.h
+++ b/src/pcu_l1_if_phy.h
@@ -22,6 +22,10 @@
uint8_t *data, uint8_t len);
int (*l1if_close_pdch)(void *obj);

+ /* Sompe PHYs require to disconnect the PDCH explicitly. This instructs the driver to release the resources
+ * while keeping the context alive until the PDCH is connected again using l1if_connect_pdch(). */
+ int (*l1if_disconnect_pdch)(void *obj);
+
/* PHY initialization: This callback is called once in the early startup phase before the config file is
* parsed. It is intended for preliminary initialization such as adding VTY confg options or calling library
* initialization functions. The callback may be set to NULL in case no initialization is needed. */

To view, visit change 31438. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I4cc72f032f0abdd5833cdd3b1fe68c69394d89a4
Gerrit-Change-Number: 31438
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier@sysmocom.de>
Gerrit-MessageType: newchange