bts-sysmo: Delay marking phy_link as connected until L1 reset + got info

Better wait until the DSP is reset and all the information is retrieved
before telling upper layers that the phy is ready. Keep it in CONNECTING
state meanwhile.

Change-Id: Ifdc791336fb8efd42f4428893f687093085af129
This commit is contained in:
Pau Espin 2023-04-11 17:18:55 +02:00
parent cb0c0dfa15
commit be18d2b275
1 changed files with 2 additions and 2 deletions

View File

@ -1515,6 +1515,8 @@ static int info_compl_cb(struct gsm_bts_trx *trx, struct msgb *resp,
msgb_free(resp);
phy_link_state_set(trx->pinst->phy_link, PHY_LINK_CONNECTED);
/* FIXME: clock related */
return 0;
}
@ -1917,7 +1919,5 @@ int bts_model_phy_link_open(struct phy_link *plink)
hdl = pinst->u.sysmobts.hdl;
osmo_strlcpy(bts->sub_model, sysmobts_model(hdl->hw_info.model_nr, hdl->hw_info.trx_nr), sizeof(bts->sub_model));
phy_link_state_set(plink, PHY_LINK_CONNECTED);
return 0;
}