mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
usb: mtu3: avoid sleep in atomic context when enter test mode
Use readl_poll_timeout_atomic() instead of readl_poll_timeout() in atomic context Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
fbe9db75b4
commit
3d7678e2a0
1 changed files with 1 additions and 1 deletions
|
@ -299,7 +299,7 @@ static int handle_test_mode(struct mtu3 *mtu, struct usb_ctrlrequest *setup)
|
|||
mtu3_writel(mbase, U3D_EP0CSR, value | EP0_SETUPPKTRDY | EP0_DATAEND);
|
||||
|
||||
/* wait for ACK status sent by host */
|
||||
readl_poll_timeout(mbase + U3D_EP0CSR, value,
|
||||
readl_poll_timeout_atomic(mbase + U3D_EP0CSR, value,
|
||||
!(value & EP0_DATAEND), 100, 5000);
|
||||
|
||||
mtu3_writel(mbase, U3D_USB2_TEST_MODE, mtu->test_mode_nr);
|
||||
|
|
Loading…
Reference in a new issue