mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
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: 9df231511b ("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f50200dd44
commit
679b771ea0
@@ -31,8 +31,8 @@ static inline void ehci_brcm_wait_for_sof(struct ehci_hcd *ehci, u32 delay)
|
||||
int res;
|
||||
|
||||
/* Wait for next microframe (every 125 usecs) */
|
||||
res = readl_relaxed_poll_timeout(&ehci->regs->frame_index, val,
|
||||
val != frame_idx, 1, 130);
|
||||
res = readl_relaxed_poll_timeout_atomic(&ehci->regs->frame_index,
|
||||
val, val != frame_idx, 1, 130);
|
||||
if (res)
|
||||
ehci_err(ehci, "Error waiting for SOF\n");
|
||||
udelay(delay);
|
||||
|
||||
Reference in New Issue
Block a user