[L] Change in dahdi-linux[master]: dahdi-base: add software clock correction of the coretimer
Attention is currently required from: Hoernchen, ale-leehrtz, tnt. laforge has posted comments on this change by ale-leehrtz. ( https://gerrit.osmocom.org/c/dahdi-linux/+/44234?usp=email ) Change subject: dahdi-base: add software clock correction of the coretimer ...................................................................... Patch Set 1: (5 comments) Patchset: PS1: Thanks for the contribution! beside the in-line comments below, I also think it would be a good idea to have a #ifdef around this code so that people who don't need it can simply disable it by not defining that define durign build time File drivers/dahdi/dahdi-base.c: https://gerrit.osmocom.org/c/dahdi-linux/+/44234/comment/e6601aae_92ff5c43?u... : PS1, Line 216: int32_t target_fudge; you could nest those into a sub-structure to make it more obvious that these fields are specific to the sd-ri-pll. like ``` struct sd_ri_pll { int32_t curent_fudge; ktime_t raw_time_offset; ... } ``` https://gerrit.osmocom.org/c/dahdi-linux/+/44234/comment/44f36a68_71b68ca5?u... : PS1, Line 10143: typedef uint32_t ui32_t; why those custom typedefs and not use the C standard [u]int32_t types directly? Also, if creating shorthands, why not use the shorthands the kernel does provide anyway (linux/types.h: s32/u32)? https://gerrit.osmocom.org/c/dahdi-linux/+/44234/comment/4bb9d990_dcc201a7?u... : PS1, Line 10148: ui32_t h; doesn't appear to be using kernel coding style (at leaset no tab indent). Please use a coding style consistent with the surrounding code of the file, and the project (both dahdi, kernel) in general. https://gerrit.osmocom.org/c/dahdi-linux/+/44234/comment/ba44d3a3_b5bfbe79?u... : PS1, Line 10487: *ql = qc; as this is a lot of very isolated/self-contained code, it might be better put in a separate file. You could use a C file and link to the only used function compute_fudged_now? Or in the worst case all the it might also instead be folded into a header file, but I don't see the benefit over a .c file with a signle non-static function used by the code here in this file. -- To view, visit https://gerrit.osmocom.org/c/dahdi-linux/+/44234?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: dahdi-linux Gerrit-Branch: master Gerrit-Change-Id: I93243a48566b337b3bb8f728d0ccf4b756755e4d Gerrit-Change-Number: 44234 Gerrit-PatchSet: 1 Gerrit-Owner: ale-leehrtz <alejandra.carreon@ale-leehrtz.org> Gerrit-Reviewer: Hoernchen <ewild@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge@osmocom.org> Gerrit-Reviewer: tnt <tnt@246tNt.com> Gerrit-Attention: ale-leehrtz <alejandra.carreon@ale-leehrtz.org> Gerrit-Attention: tnt <tnt@246tNt.com> Gerrit-Attention: Hoernchen <ewild@sysmocom.de> Gerrit-Comment-Date: Fri, 04 Dec 2026 08:12:10 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No
participants (1)
-
laforge