From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 4FB65379C54 for ; Tue, 12 May 2026 12:26:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778588803; cv=none; b=BbWBL6FNEl91u5nhAdkIhpacR2EJWRXlg+8ohhdUwykFnrZWi86EEUiC4lcMALLRQvPQ/ESdpFw0XP3YGXxhZhuuVGRbRltaleEhvuGjc2LolLFDAiFtqX9GDC/u4jneHGYHwgIBdhwCTjLksuZfGaQovL36dVNOlsSc0ImmBZ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778588803; c=relaxed/simple; bh=GYIjdMIt7Fubb6emPUOGKBOHgknJZ9NGTLaE/S7wKbE=; h=Subject:To:Cc:From:Date:Message-ID; b=KVnPv+7gzN9/032cpar55+cy4YuPHM0pcv0kSW1VV4Hzu71AK/n+NtT6zQQbqVOTPLyHCRqC/2hH/KGn9hIEQzWWdwtdS17sO7+BV4X17Jv03nda6wIEvTCFhFjLXGVvp8LHp6lY5osv1sueyDa1PuoupR3lZ8tIjrenHop1w1A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Qr1Fd+va; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Qr1Fd+va" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99B0AC2BCB0; Tue, 12 May 2026 12:26:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778588802; bh=GYIjdMIt7Fubb6emPUOGKBOHgknJZ9NGTLaE/S7wKbE=; h=Subject:To:Cc:From:Date:From; b=Qr1Fd+vaZDn+J33TxYW4zh0tdksN9dpj+FJxxMn5AGFaiXWP5Ija45bpkdCG1oECU 4SBuMc/1K7gszH4ofoHisfNcPYzoDeGqeNDIDxAL7ydI28GPEBpeNfNVyfk9gVyu21 oQhxNF1kUlzrUMQub5d+PVjDaaeZqTfQa98BqoaA= Subject: FAILED: patch "[PATCH] usb: dwc3: Move GUID programming after PHY initialization" failed to apply to 6.18-stable tree To: selvarasu.g@samsung.com,Thinh.Nguyen@synopsys.com,gregkh@linuxfoundation.org,pritam.sutar@samsung.com,stable@kernel.org Cc: From: Date: Tue, 12 May 2026 14:26:40 +0200 Message-ID: <2026051240-configure-sizably-846f@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The patch below does not apply to the 6.18-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.18.y git checkout FETCH_HEAD git cherry-pick -x aad35f9c926ec220b0742af1ada45666ae667956 # git commit -s git send-email --to '' --in-reply-to '2026051240-configure-sizably-846f@gregkh' --subject-prefix 'PATCH 6.18.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From aad35f9c926ec220b0742af1ada45666ae667956 Mon Sep 17 00:00:00 2001 From: Selvarasu Ganesan Date: Fri, 17 Apr 2026 12:03:11 +0530 Subject: [PATCH] usb: dwc3: Move GUID programming after PHY initialization The Linux Version Code is currently written to the GUID register before PHY initialization. Certain PHY implementations (such as Synopsys eUSB PHY performing link_sw_reset) clear the GUID register to its default value during initialization, causing the kernel version information to be lost. Move the GUID register programming to occur after PHY initialization completes to ensure the Linux version information persists. Fixes: fa0ea13e9f1c ("usb: dwc3: core: write LINUX_VERSION_CODE to our GUID register") Cc: stable Reported-by: Pritam Manohar Sutar Signed-off-by: Selvarasu Ganesan Acked-by: Thinh Nguyen Link: https://patch.msgid.link/20260417063314.2359-1-selvarasu.g@samsung.com Signed-off-by: Greg Kroah-Hartman diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 58899b1fa96d..65213896de99 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -1359,12 +1359,6 @@ int dwc3_core_init(struct dwc3 *dwc) hw_mode = DWC3_GHWPARAMS0_MODE(dwc->hwparams.hwparams0); - /* - * Write Linux Version Code to our GUID register so it's easy to figure - * out which kernel version a bug was found. - */ - dwc3_writel(dwc, DWC3_GUID, LINUX_VERSION_CODE); - ret = dwc3_phy_setup(dwc); if (ret) return ret; @@ -1398,6 +1392,12 @@ int dwc3_core_init(struct dwc3 *dwc) if (ret) goto err_exit_phy; + /* + * Write Linux Version Code to our GUID register so it's easy to figure + * out which kernel version a bug was found. + */ + dwc3_writel(dwc, DWC3_GUID, LINUX_VERSION_CODE); + dwc3_core_setup_global_control(dwc); dwc3_core_num_eps(dwc);