From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796383432; b=zN66+HiAQ4pSBbJ7Z7YfKUrCxNhgmxMLkQ7ZSzqe2SZHHHdDcUBZPOJbL0we9qJ1S+Z2 gUduRcSYJUfC6Cbxr/Kn3IJpgSDhroCbcYY4LMy6eDqGtREKAHeND7EqHV+EYVBHqLRtD /uaWYmXRyX+ebD7CFQTIFvm3BlcLfsHk5GdWQTfzrcp3n+gBNPwT8t2FkOOb943eEN5be DGszbM3J84n0m0oDwTVE0SAzjKjYi3AxUbjV6r4nZCZGll7Y1mBg8CkJYWkSSwtfMTK5h epMl4NpGPg4weABqHf1Fnd1EagpZZhprTOe9vEsDkCv9B16LgvPWfo9IYHT1gZgVxHw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796383432; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=ZRoFr/avRPuUHIsYrVyCtSSNFlEV44DBNVOnYoPyC88=; b=i08fbtTrhMBai361c8nNzBWt7GKI6Gzt/BK7P05+g5aOsuC9ny1bu17jIBGjkcjXPBha zn7CRorIFTk0KN9WjPVroH23215LR/JwXJnBytXz0O5T7tzOabE3yjX+IoYFiPvjHXLqX cerr98X9iImXHzmGuwHQmRU7dfULijMiDlfMhoS8kgOnZfWsXBoWubaMbb1q06CyaaOzA ddYUX/Mmi4Hqj0CPNcHdsDZnEwbtgcxrUoTRctf5qjBuiBPtw3fxbD4R343rt2t8eZZk2 eLmU4TuT9aCz0RizkwAeamjNJwrURVvlPYjPKoxp5ZcN95q2+7mHJ1EU3uMSINhRPeA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=HWhBIvJ3; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BAEAA606A335; Fri, 4 Dec 2026 11:23:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=HWhBIvJ3 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97A5E1F00A0F; Fri, 4 Dec 2026 11:23:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796383432; bh=ZRoFr/avRPuUHIsYrVyCtSSNFlEV44DBNVOnYoPyC88=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=HWhBIvJ3x27d6K3AiKdBrbLiIW74tyw7zxbjv9QJrYvxNbahBx83swhzaJzyw5NlL jTtB6JBkgNbTRgLGG7vTt7kzenfUtrGb63dGVLf44mRL2I5Xu053PTxYJNatPLtIOg wdV1pkiiWadSswRteErif1coF452Nft8g5C20iqI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jiale Yao , Peter Chen , Sasha Levin Subject: [PATCH 6.12 222/555] usb: cdns3: report endpoint reset timeout Date: Fri, 4 Dec 2026 19:04:25 +0900 Message-ID: <20261204100617.510095007@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100603.988357525@linuxfoundation.org> References: <20261204100603.988357525@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jiale Yao [ Upstream commit 8f51823de3c9184fd8b7a4430a030eb071f39dae ] cdns3_gadget_ep_disable() discards the endpoint reset poll result and then tests ret, which is still zero. A reset timeout is therefore neither reported nor returned to the caller. Store the poll result in ret so the existing diagnostic and return path expose the timeout. Fixes: 7733f6c32e36 ("usb: cdns3: Add Cadence USB3 DRD Driver") Signed-off-by: Jiale Yao Add: stable@kernel.org Acked-by: Peter Chen Link: https://patch.msgid.link/20261003081152.433499-1-yaojiale02@163.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/usb/cdns3/cdns3-gadget.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/cdns3/cdns3-gadget.c b/drivers/usb/cdns3/cdns3-gadget.c index 331f10cc3fca8..29a69d6d09668 100644 --- a/drivers/usb/cdns3/cdns3-gadget.c +++ b/drivers/usb/cdns3/cdns3-gadget.c @@ -2530,9 +2530,9 @@ static int cdns3_gadget_ep_disable(struct usb_ep *ep) !(val & EP_STS_DBUSY), 1, 10); writel(EP_CMD_EPRST, &priv_dev->regs->ep_cmd); - readl_poll_timeout_atomic(&priv_dev->regs->ep_cmd, val, - !(val & (EP_CMD_CSTALL | EP_CMD_EPRST)), - 1, 1000); + ret = readl_poll_timeout_atomic(&priv_dev->regs->ep_cmd, val, + !(val & (EP_CMD_CSTALL | EP_CMD_EPRST)), + 1, 1000); if (unlikely(ret)) dev_err(priv_dev->dev, "Timeout: %s resetting failed.\n", priv_ep->name); -- 2.53.0