]> git.ipfire.org Git - thirdparty/linux.git/commit
usb: bdc: fix sleep during atomic
authorJustin Chen <justin.chen@broadcom.com>
Tue, 20 Jan 2026 20:07:54 +0000 (12:07 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jan 2026 16:16:31 +0000 (17:16 +0100)
commitf1195ca3b4bbd001d3f1264dce91f83dec7777f5
treecb8825f830c3a2c678d53e88490de657190ec432
parentdb7fd1955e6825756d0241343add1d172098bb18
usb: bdc: fix sleep during atomic

bdc_run() can be ran during atomic context leading to a sleep during
atomic warning. Fix this by replacing read_poll_timeout() with
read_poll_timeout_atomic().

Fixes: 75ae051efc9b ("usb: gadget: bdc: use readl_poll_timeout() to simplify code")
Signed-off-by: Justin Chen <justin.chen@broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://patch.msgid.link/20260120200754.2488765-1-justin.chen@broadcom.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/bdc/bdc_core.c