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 109B74189B9 for ; Mon, 5 Oct 2026 08:46:32 +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=1791189995; cv=none; b=jbPzmOfYGjl/89AwreJvaX/fhvQmiZYU9K2feSHZqqTtSz9rCS2xAc+9PLCvLL3br2U4q60T/IDpjtjYmw066H6/Ku6UiF25rlW6a3Yds9W9FVYMeZb6z6fNKZsA2FgnwrVX1zOjq3Bd3OpkT35LNA1bgjUL+BGSFFSrizyW0A0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791189995; c=relaxed/simple; bh=VNsJK1MFswRZkeclXM/q5K5rtXxOharGlEZXQXcWCa8=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=NllBmOOT16+mHVrZTKEHxLFJdz3yNe7bef/F+2fwVDViKcgbUoA3JhFk7jAJg/GQog3wKWtux3stt+UXZQwIM+ja7vZs9hwwkJ42Lvwelam3tOiIZaPa7pJND2iMYyLgCN73Lvag/9pcn2NvYnQIZNHOZjg/NeSxskrCrivDvjs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0aY+v+Wx; 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="0aY+v+Wx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 047B31F000FF; Mon, 5 Oct 2026 08:46:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791189992; bh=VIR3bNg1bTqcSHQIPI4iZ6N4nZjEEJWnp+/Y/DO+rDg=; h=Subject:To:Cc:From:Date; b=0aY+v+Wxuhj902on8vHiMWiYk4tAtrD6pOuieEZO+wkMZTwA93fbRgUgH+Z5OdwUz nPHjyqtKoC7BqiozLvqTicSczsBf9wnhiNMk6ySW1pFx1xyYnax3DIcgH5aevmGjns moEezOy72emAvVYl14a0J0iiz+tBtzuUAti33VFA= Subject: FAILED: patch "[PATCH] USB: dwc2: shut down wakeup timer before freeing HCD state" failed to apply to 6.12-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:29 +0200 Message-ID: <2026100529-serving-grandly-7f98@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 6.12-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-6.12.y git checkout FETCH_HEAD git cherry-pick -x fd772af9512cdecb83de34a461801533828e77fd # git commit -s git send-email --to '' --in-reply-to '2026100529-serving-grandly-7f98@gregkh' --subject-prefix 'PATCH 6.12.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); }