From f0c8693931e9186e95fab481d5c40c3ee2e6cafc Mon Sep 17 00:00:00 2001 From: Lukas Gehreke Date: Wed, 4 Sep 2024 09:28:40 +0200 Subject: [PATCH] drivers: usb_dc_rpi_pico: Fixed connected handling A connected state was reported as a disconnected state. This led to wrong reports of the connected state to all systems relying on it. Signed-off-by: Lukas Gehreke --- drivers/usb/device/usb_dc_rpi_pico.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/device/usb_dc_rpi_pico.c b/drivers/usb/device/usb_dc_rpi_pico.c index 7a48057d745..ff8f520a28c 100644 --- a/drivers/usb/device/usb_dc_rpi_pico.c +++ b/drivers/usb/device/usb_dc_rpi_pico.c @@ -330,8 +330,8 @@ static void udc_rpi_isr(const void *arg) msg.ep = 0U; msg.ep_event = false; msg.type = usb_hw->sie_status & USB_SIE_STATUS_CONNECTED_BITS ? - USB_DC_DISCONNECTED : - USB_DC_CONNECTED; + USB_DC_CONNECTED : + USB_DC_DISCONNECTED; k_msgq_put(&usb_dc_msgq, &msg, K_NO_WAIT); }