Attention is currently required from: msuraev.
fixeria has posted comments on this change. (
https://gerrit.osmocom.org/c/osmocom-bb/+/30262 )
Change subject: trxcon: implement Ready-to-Receive PHYIF API
......................................................................
Patch Set 2:
(3 comments)
File src/host/trxcon/include/osmocom/bb/l1sched/l1sched.h:
https://gerrit.osmocom.org/c/osmocom-bb/+/30262/comment/d6baeffc_2e355422
PS2, Line 166: #define L1SCHED_PROBE_F_ACTIVE (1 << 0)
That looks odd. […]
I see nothing odd here. This
is the usual way of defining bit-flags. If we ever need more flags, it would be more
convenient to write (1 << N) rather than 1, 2, 4, 8, etc.
File src/host/trxcon/include/osmocom/bb/trxcon/phyif.h:
https://gerrit.osmocom.org/c/osmocom-bb/+/30262/comment/dae2a8d5_3e29bd94
PS2, Line 85: #define TRXCON_PHYIF_RTR_F_ACTIVE (1 << 0)
Same here.
See my answer near the
L1SCHED_PROBE_F_ACTIVE.
File src/host/trxcon/src/sched_trx.c:
https://gerrit.osmocom.org/c/osmocom-bb/+/30262/comment/dbc50b46_4ed388ca
PS2, Line 829: return -ENODEV;
Would be better to use different error code to
distinguish between different errors.
This is not really necessary though. Most of
the times we check if the value is 0 and don't care why exactly some function failed.
If I ever needed distinct self-explanatory error causes, I would rather go for my own
enumerated type rather than using constants from errno.h.
--
To view, visit
https://gerrit.osmocom.org/c/osmocom-bb/+/30262
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I9a71b8a59733f4dd908b760c5e23ea3d624afb1a
Gerrit-Change-Number: 30262
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: msuraev <msuraev(a)sysmocom.de>
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: msuraev <msuraev(a)sysmocom.de>
Gerrit-Comment-Date: Sat, 26 Nov 2022 15:56:20 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: msuraev <msuraev(a)sysmocom.de>
Gerrit-MessageType: comment