Re: [PATCH net-next v13 3/6] net: wwan: t9xx: Add control DMA interface

From
Wu. JackBB (GSM) <hidden>
Date
2026-12-01 03:06:58
Also in
linux-arm-kernel, linux-doc, linux-mediatek, lkml
Reply to
Loic Poulain, 2026-11-30
Hi Loic,

Thanks for taking the time to review this patch.

On Mon, Nov 30, 2026 at 6:51 PM Loic Poulain [off-list ref] wrote:
quoted
+       atomic_t req_budget;
+       /* ring_lock: serializes the producer (TRB service thread) against the
+        * consumer (tx_done_work) over req_budget, wr_idx, free_idx and the
+        * tx_req/GPD slots they index.
+        */
+       spinlock_t ring_lock;
So, If serialized via this lock, is there a reason for having
req_budget as an atomic_t rather than a regular integer?
No, there is none.  Will fix in v14: req_budget becomes a u32, and
mtk_cldma_get_tx_budget(), its only reader outside the lock, reads it
under ring_lock.

Thanks,
Jack
Thread (17 messages) 17 messages, 4 authors, last reply 2d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help