Skip to content

Commit a05fd62

Browse files
jfischer-nofabiobaltieri
authored andcommitted
drivers: usb: do not enabled nRF USBREG interrupt
The drivers still use the USBREG HAL driver which enables/disables the interrupt by itself. Signed-off-by: Johann Fischer <[email protected]>
1 parent f00d42f commit a05fd62

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

drivers/usb/device/usb_dc_nrfx.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1892,7 +1892,6 @@ static int usb_init(void)
18921892
IRQ_CONNECT(USBREGULATOR_IRQn,
18931893
DT_IRQ(DT_INST(0, nordic_nrf_clock), priority),
18941894
nrfx_isr, nrfx_usbreg_irq_handler, 0);
1895-
irq_enable(USBREGULATOR_IRQn);
18961895
#endif
18971896

18981897
static const nrfx_power_config_t power_config = {

drivers/usb/udc/udc_nrf.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,6 @@ static int udc_nrf_init(const struct device *dev)
815815
IRQ_CONNECT(USBREGULATOR_IRQn,
816816
DT_IRQ(DT_INST(0, nordic_nrf_clock), priority),
817817
nrfx_isr, nrfx_usbreg_irq_handler, 0);
818-
irq_enable(USBREGULATOR_IRQn);
819818
#endif
820819

821820
IRQ_CONNECT(DT_INST_IRQN(0), DT_INST_IRQ(0, priority),
@@ -836,9 +835,6 @@ static int udc_nrf_shutdown(const struct device *dev)
836835

837836
nrfx_power_usbevt_disable();
838837
nrfx_power_usbevt_uninit();
839-
#ifdef CONFIG_HAS_HW_NRF_USBREG
840-
irq_disable(USBREGULATOR_IRQn);
841-
#endif
842838

843839
return 0;
844840
}

0 commit comments

Comments
 (0)