Skip to content

Commit 525c112

Browse files
jfischer-nocfriedt
authored andcommitted
drivers: ieee802154_dw1000: use dedicated workqueue
Driver has dedicated workqueue for IRQ processing. Submit work to dedicated workqueue intead of system workqueue. It also fixes driver functionality when NET_TC_TX_COUNT is set to 0. Signed-off-by: Johann Fischer <[email protected]>
1 parent 38bd485 commit 525c112

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ieee802154/ieee802154_dw1000.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ static void dwt_gpio_callback(const struct device *dev,
632632
struct dwt_context *ctx = CONTAINER_OF(cb, struct dwt_context, gpio_cb);
633633

634634
LOG_DBG("IRQ callback triggered %p", ctx);
635-
k_work_submit(&ctx->irq_cb_work);
635+
k_work_submit_to_queue(&dwt_work_queue, &ctx->irq_cb_work);
636636
}
637637

638638
static enum ieee802154_hw_caps dwt_get_capabilities(const struct device *dev)

0 commit comments

Comments
 (0)