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=1796355188; b=Pfe0PyPzWgNHxWLGPCwT+hWejmYOriVDmqhiCfjlWnUOFJdvp7Ikm3Jpvr0rOcAoAur7 i5P83cpfGggx0a1ncnYRY4AvpNXuoVQacoBKsSwNNLWRf7lBrrUyDgJ3a4lN0MeBrf4wy uqZf8icVpMqI93560QfQZM7f9d2DVAzdOqBMSamyq8M2i4jH+EZqulanUNTbxRaJEiXtd w3Rsdkhu1ChEoQo//f3BMUCyCwhlSYC/Hkqy3rM5u16F0WrMx37AlUcJaobVoS+uyap1C PegffUG0Yimb1w4WPJF68hPG+b4Xu7UT4S7u029FeDI0tGIjP7qdTgmcBgZRIjhbrRw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796355188; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=pUIax+wNp3WfTgq31KEhOS8vZHj6kZf7vwSxqtVJrnE=; b=o0sG9Bq/MhmTenZB8T1ZRX/3a05Q3ggmbOX6angYDfU87K7WT3mmx7RK0XA9EtNisZ61 EgcE+TFlbFxjXH1sIcCvKikHU4t/WBQGZlKhXNo7JLqRVAQNNCN4uuUasXWJR3IO5UQEX kPNtgcjGWxfZUCVntuxvrnHyIu7F8uHYRA2HvFRPuUDtKwUMJDtdiMYPqX5SvsyPSY7b4 xWFJX19PmXg2QgEEOL9Xs11oVwjxedp2L9Hsthimi+EOtY3fCcweSBKlTpXyrHvhjN7xY exfOjCF6WNcGLdQavkBQuiAVXxhi+G9rXO4rS/QCovv5d8TGIp8Z+VQtMx/8227nczA== 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=ejnSKZW2; 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 15FC8606A32C; Fri, 4 Dec 2026 03:33:07 +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=ejnSKZW2 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E821C1F000C2; Fri, 4 Dec 2026 03:33:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796355187; bh=pUIax+wNp3WfTgq31KEhOS8vZHj6kZf7vwSxqtVJrnE=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=ejnSKZW2LQa7tlHVOz2ChpmxON3iHW7n5LxrKr2lVCYNuh1f3YXin8L2DeMPqXyu8 xJhI4ajHlErTHEa6Rm1ze3B0IYGYNyDrhCd2HGmv/hm6eefMLy++bvktr8IL6a1vj/ mpAyXLe8LeCn8sbB+2XrNiyec3yosa1nfiuNw9rA= Date: Thu, 3 Dec 2026 22:16:50 +0100 From: Greg KH To: Faisal Hassan Cc: Thinh.Nguyen@synopsys.com, linux-usb@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, krishna.kurapati@oss.qualcomm.com, peter.chen@oss.qualcomm.com, krzysztof.kozlowski@oss.qualcomm.com Subject: Re: [PATCH v5 03/11] usb: dwc3: qcom: Keep wakeup IRQ enable/disable balanced on failed resume Message-ID: <2026120322-refreeze-shortness-edf5@gregkh> References: <20261123104727.1539149-1-faisal.hassan@oss.qualcomm.com> <20261123104727.1539149-4-faisal.hassan@oss.qualcomm.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261123104727.1539149-4-faisal.hassan@oss.qualcomm.com> On Mon, Nov 23, 2026 at 04:17:18PM +0530, Faisal Hassan wrote: > dwc3_qcom_resume() disables the wakeup interrupts before enabling the > clocks. If clk_bulk_prepare_enable() fails, it returns with them > disabled. The next suspend returns early on is_suspended without > re-enabling them, and the next resume disables them again, so every > failed resume leaves the disable depth one level deeper and host-mode > wakeup is lost for good. > > Re-enabling them on the error path is not safe either: the > level-triggered ss_phy interrupt can stay asserted, and the handler > can't make progress while the controller is not resumed, so it would > fire continuously. > > Track whether the wakeup interrupts are armed and make enabling and > disabling them idempotent. A failed resume now leaves them disarmed and > balanced, and the next suspend arms them again. > > Signed-off-by: Faisal Hassan > Reviewed-by: Peter Chen > Reviewed-by: Krishna Kurapati > --- > drivers/usb/dwc3/dwc3-qcom.c | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) This series fails to apply here on my usb-testing branch. Can you rebase and resend after collecting the reviewed-by comments as well? thanks, greg k-h