From 6a2b13c256d1f5c8562976ec6b3a82e448d88c51 Mon Sep 17 00:00:00 2001 From: chehan Date: Wed, 13 May 2026 19:10:20 -0700 Subject: [PATCH] Fix device suspend failure when interval timeout is set Signed-off-by: chehan --- src/windows/wdfserial/QCRD.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/windows/wdfserial/QCRD.c b/src/windows/wdfserial/QCRD.c index 979b271..9a33902 100644 --- a/src/windows/wdfserial/QCRD.c +++ b/src/windows/wdfserial/QCRD.c @@ -562,7 +562,8 @@ void QCRD_ReadRequestHandlerThread // and a request is pending in the timeout queue. This resets the // inter-byte gap timer so the request completes only after the // device stops sending data for ReadIntervalTimeout milliseconds. - if (pDevContext->ReadTimeout.bUseReadInterval && + if (bDeviceAwaken && + pDevContext->ReadTimeout.bUseReadInterval && !QCUTIL_IsIoQueueEmpty(pDevContext->TimeoutReadQueue) && pDevContext->Timeouts.ReadIntervalTimeout > 0) {