pespin has submitted this change. ( 
https://gerrit.osmocom.org/c/osmocom-bb/+/33906 )

Change subject: layer23: modem: Avoid direct transition 
ST_PACKET_TRANSFER->ST_PACKET_IDLE
......................................................................

layer23: modem: Avoid direct transition ST_PACKET_TRANSFER->ST_PACKET_IDLE

Right now the existing code is switching to state IDLE and hence running
grr_st_packet_idle_onenter() which attempts stuff like starting an attach.
This is all done while the L1CTL RESET + FBSB is still in progress. We
should instead wait to receive confirmation from those.
As an easy implementation for now, simply switch to the
GRR_ST_PACKET_NOT_READY state, which will move to GRR_ST_PACKET_IDLE
once it starts receiving CCCH blocks (aka it will already have gone
through L1CTL RESET + FBSB completely).

Change-Id: Ie797b36701d10c6052500c637a08b061bb1e4bd7
---
M src/host/layer23/src/modem/grr.c
1 file changed, 20 insertions(+), 3 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, but someone else must approve
  pespin: Looks good to me, approved




diff --git a/src/host/layer23/src/modem/grr.c b/src/host/layer23/src/modem/grr.c
index 2047eef..12d7059 100644
--- a/src/host/layer23/src/modem/grr.c
+++ b/src/host/layer23/src/modem/grr.c
@@ -688,7 +688,7 @@
                break;
        case GRR_EV_PDCH_RELEASE_REQ:
                modem_sync_to_cell(ms);
-               osmo_fsm_inst_state_chg(fi, GRR_ST_PACKET_IDLE, 0, 0);
+               osmo_fsm_inst_state_chg(fi, GRR_ST_PACKET_NOT_READY, 0, 0);
                break;
        default:
                OSMO_ASSERT(0);
@@ -717,8 +717,7 @@
        },
        [GRR_ST_PACKET_TRANSFER] = {
                .name = "PACKET_TRANSFER",
-               .out_state_mask = S(GRR_ST_PACKET_NOT_READY)
-                               | S(GRR_ST_PACKET_IDLE),
+               .out_state_mask = S(GRR_ST_PACKET_NOT_READY),
                .in_event_mask  = S(GRR_EV_PDCH_UL_TBF_CFG_REQ)
                                | S(GRR_EV_PDCH_DL_TBF_CFG_REQ)
                                | S(GRR_EV_PDCH_BLOCK_REQ)

--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/33906
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Ie797b36701d10c6052500c637a08b061bb1e4bd7
Gerrit-Change-Number: 33906
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to