Skip to content

Commit 91f95b4

Browse files
jfischer-nonika-nordic
authored andcommitted
[nrf fromtree] 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]> (cherry picked from commit a05fd62)
1 parent f9f7b16 commit 91f95b4

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
@@ -817,7 +817,6 @@ static int udc_nrf_init(const struct device *dev)
817817
IRQ_CONNECT(USBREGULATOR_IRQn,
818818
DT_IRQ(DT_INST(0, nordic_nrf_clock), priority),
819819
nrfx_isr, nrfx_usbreg_irq_handler, 0);
820-
irq_enable(USBREGULATOR_IRQn);
821820
#endif
822821

823822
IRQ_CONNECT(DT_INST_IRQN(0), DT_INST_IRQ(0, priority),
@@ -838,9 +837,6 @@ static int udc_nrf_shutdown(const struct device *dev)
838837

839838
nrfx_power_usbevt_disable();
840839
nrfx_power_usbevt_uninit();
841-
#ifdef CONFIG_HAS_HW_NRF_USBREG
842-
irq_disable(USBREGULATOR_IRQn);
843-
#endif
844840

845841
return 0;
846842
}

0 commit comments

Comments
 (0)