Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

usb: ehci-brcm: fix sleep during atomic

echi_brcm_wait_for_sof() gets called after disabling interrupts
in ehci_brcm_hub_control(). Use the atomic version of poll_timeout
to fix the warning.

Fixes: 9df231511bd6 ("usb: ehci: Add new EHCI driver for Broadcom STB SoC's")
Cc: stable <stable@kernel.org>
Signed-off-by: Justin Chen <justin.chen@broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://patch.msgid.link/20260318185707.2588431-1-justin.chen@broadcom.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Justin Chen and committed by
Greg Kroah-Hartman
679b771e f50200dd

+2 -2
+2 -2
drivers/usb/host/ehci-brcm.c
··· 31 31 int res; 32 32 33 33 /* Wait for next microframe (every 125 usecs) */ 34 - res = readl_relaxed_poll_timeout(&ehci->regs->frame_index, val, 35 - val != frame_idx, 1, 130); 34 + res = readl_relaxed_poll_timeout_atomic(&ehci->regs->frame_index, 35 + val, val != frame_idx, 1, 130); 36 36 if (res) 37 37 ehci_err(ehci, "Error waiting for SOF\n"); 38 38 udelay(delay);