From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B8C32931C3 for ; Mon, 5 Oct 2026 08:46:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791190014; cv=none; b=s0aezrWAspt2tz5OR9fajQl55V+MqpFER/qYXYiPwirzjik2hif9klnT3jFyUBkREkpLtQUM6VamFxPSSg6/L5PHq7nApzDFmt8z1rx2gmvs9OotRqxyF5A/utClTHJNLN3HUybgZjmxV341knBYYWTJgsPG4iSYyr2P+NGiqZs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791190014; c=relaxed/simple; bh=JyzY9rs4lXfYe96a1uyRuIDUE7fvspQULbbinjUDsJ4=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=c0dOSeA7HpdQ1LpVoCY0Kob3DG635ah4FV/lfUU5YDkDltnrgMymgBshiu9T7jVqK9fma6NT/yJaq4QcwMbCshtgfiA4SKJdMlATdGAw8Kn8QJu/mnfcFEB9Az3J8AhVNdF+wXddn+7Mh7mwQe+6vVvO2wv9Lm1joStqrBApjxo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HlZL+OW1; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="HlZL+OW1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99EC71F00898; Mon, 5 Oct 2026 08:46:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791190011; bh=iTiqI6GAaDNif7IOZRViPgbCJXgq9G1uyeMK4InHnVE=; h=Subject:To:Cc:From:Date; b=HlZL+OW1cqkBYwJQjgK1O2IvzjUWXn6dYQh9dN+5xdiVFYM5aswsPfLrRmqoyKhsM CqGx6WL0xe57K5/TqiXFMt7yTTTvsDVniCM09EgWUT+nZZwKpFXl1Lxqy2vE5RXXg9 74w8HcPtJRTwHQYYUftUs1m2R6NNwVbjp4ekh6i4= Subject: FAILED: patch "[PATCH] USB: dwc2: shut down wakeup timer before freeing HCD state" failed to apply to 5.15-stable tree To: runyu.xiao@seu.edu.cn,Thinh.Nguyen@synopsys.com,gregkh@linuxfoundation.org,stable@kernel.org Cc: From: Date: Mon, 05 Oct 2026 10:46:31 +0200 Message-ID: <2026100531-stamp-citable-47a4@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.15-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.15.y git checkout FETCH_HEAD git cherry-pick -x fd772af9512cdecb83de34a461801533828e77fd # git commit -s git send-email --to '' --in-reply-to '2026100531-stamp-citable-47a4@gregkh' --subject-prefix 'PATCH 5.15.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From fd772af9512cdecb83de34a461801533828e77fd Mon Sep 17 00:00:00 2001 From: Runyu Xiao Date: Fri, 4 Sep 2026 14:53:23 +0800 Subject: [PATCH] USB: dwc2: shut down wakeup timer before freeing HCD state dwc2_wakeup_detected() accesses the DWC2 host state and can rearm the wakeup timer. dwc2_hcd_free() currently deletes the timer only after freeing host-owned state, and timer_delete() does not synchronize a callback or prevent it from being queued again. Stop and shut down the timer in dwc2_hcd_release(), before the HCD resources are freed. This covers both the HCD initialization error path and normal HCD removal. Fixes: 7359d482eb4d ("staging: HCD files for the DWC2 driver") Cc: stable Assisted-by: Codex:GPT-5 Signed-off-by: Runyu Xiao Reviewed-by: Thinh Nguyen Link: https://patch.msgid.link/20260904065323.4047026-1-runyu.xiao@seu.edu.cn Signed-off-by: Greg Kroah-Hartman diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c index 2414291aa908..cd0dc876b421 100644 --- a/drivers/usb/dwc2/hcd.c +++ b/drivers/usb/dwc2/hcd.c @@ -5082,14 +5082,13 @@ static void dwc2_hcd_free(struct dwc2_hsotg *hsotg) } cancel_work_sync(&hsotg->phy_reset_work); - - timer_delete(&hsotg->wkp_timer); } static void dwc2_hcd_release(struct dwc2_hsotg *hsotg) { /* Turn off all host-specific interrupts */ dwc2_disable_host_interrupts(hsotg); + timer_shutdown_sync(&hsotg->wkp_timer); dwc2_hcd_free(hsotg); }