From 38277595fb5402b9c319af13f41e890684cc5ef1 Mon Sep 17 00:00:00 2001 From: Radoslaw Koppel Date: Fri, 22 Dec 2023 14:45:18 +0100 Subject: [PATCH] bluetooth: nordic: lll: Use direct ISR when applicable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit updates nordic lll controller to use IRQ_DIRECT_CONNECT where applicable instead of using IRQ_CONNECT with ISR_FLAG_DIRECT. (cherry picked from commit 8f98b8b574bdce4c930a7b2a2e2c78764940b6dd) Original-Signed-off-by: Radosław Koppel GitOrigin-RevId: 8f98b8b574bdce4c930a7b2a2e2c78764940b6dd Change-Id: I8e9352fa72796d0f91a4b42f93f4e43fa7954ff2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5280230 Reviewed-by: Al Semjonovs Tested-by: Al Semjonovs Tested-by: ChromeOS Prod (Robot) Commit-Queue: Al Semjonovs --- subsys/bluetooth/controller/ll_sw/nordic/lll/lll.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/subsys/bluetooth/controller/ll_sw/nordic/lll/lll.c b/subsys/bluetooth/controller/ll_sw/nordic/lll/lll.c index 30fca6d1e2e..ed459c20d19 100644 --- a/subsys/bluetooth/controller/ll_sw/nordic/lll/lll.c +++ b/subsys/bluetooth/controller/ll_sw/nordic/lll/lll.c @@ -221,8 +221,13 @@ int lll_init(void) radio_nrf5_isr, IRQ_CONNECT_FLAGS); IRQ_CONNECT(RTC0_IRQn, CONFIG_BT_CTLR_ULL_HIGH_PRIO, rtc0_nrf5_isr, NULL, 0); +#if defined(CONFIG_BT_CTLR_ZLI) + IRQ_DIRECT_CONNECT(HAL_SWI_RADIO_IRQ, CONFIG_BT_CTLR_LLL_PRIO, + swi_lll_nrf5_isr, IRQ_CONNECT_FLAGS); +#else IRQ_CONNECT(HAL_SWI_RADIO_IRQ, CONFIG_BT_CTLR_LLL_PRIO, swi_lll_nrf5_isr, NULL, IRQ_CONNECT_FLAGS); +#endif #if defined(CONFIG_BT_CTLR_LOW_LAT) || \ (CONFIG_BT_CTLR_ULL_HIGH_PRIO != CONFIG_BT_CTLR_ULL_LOW_PRIO) IRQ_CONNECT(HAL_SWI_JOB_IRQ, CONFIG_BT_CTLR_ULL_LOW_PRIO,