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 631781096B; Fri, 15 Dec 2023 07:34:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HpD4UKJh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CFFB8C433CB; Fri, 15 Dec 2023 07:34:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702625684; bh=ccmOE9j3jNhe4GDIdM1CW0I44hLwXu8dmx+o/QgsK+0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HpD4UKJhNlD8/uebof6RQdb+aUvamm7Xl7XMyPaL/3KLU9qCdNJfISUWjS9XhFI93 tbXBqqXVbRbMAyAY5qPzLjL+CeiTLfJAnUZkNebVc5+BxOdZBr1ufqzFgZj6M6txsI tvTR8UqrZgRNTv/cmj/yFjbiyJENmTklp9X/zAyqqP0k22r92+CnhUzL6dI8Je+KzD /GqVrTX70r5tUe2kIEfsLTrSds44PSed3O/NiOTlqzqkDI2HE4YdJpII+VgYSi2JZ/ I2EFC64gljV1y/2KirKfWFjrAOorKc52tTXb1LW12WNnKHf1qnUC3E17gPL1uDu7vu /Ef5Airp/WBoA== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1rE2iV-00066d-2I; Fri, 15 Dec 2023 08:34:39 +0100 Date: Fri, 15 Dec 2023 08:34:39 +0100 From: Johan Hovold To: Richard Acayan Cc: Johan Hovold , Bjorn Andersson , Andy Gross , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Krishna Kurapati PSSNV , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 1/3] arm64: dts: qcom: sdm670: fix USB DP/DM HS PHY interrupts Message-ID: References: <20231214074319.11023-1-johan+linaro@kernel.org> <20231214074319.11023-2-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Dec 14, 2023 at 08:46:27PM -0500, Richard Acayan wrote: > On Thu, Dec 14, 2023 at 08:43:17AM +0100, Johan Hovold wrote: > > The USB DP/DM HS PHY interrupts need to be provided by the PDC interrupt > > controller in order to be able to wake the system up from low-power > > states and to be able to detect disconnect events, which requires > > triggering on falling edges. > > > > A recent commit updated the trigger type but failed to change the > > interrupt provider as required. This leads to the current Linux driver > > failing to probe instead of printing an error during suspend and USB > > wakeup not working as intended. > > > > Fixes: de3b3de30999 ("arm64: dts: qcom: sdm670: fix USB wakeup interrupt types") > > Fixes: 07c8ded6e373 ("arm64: dts: qcom: add sdm670 and pixel 3a device trees") > > Cc: stable@vger.kernel.org # 6.2 > > Cc: Richard Acayan > > Signed-off-by: Johan Hovold > > --- > > Tested-by: Richard Acayan > > On a Pixel 3a, plugging in a USB cable doesn't wake up the device > (presumably because there is no wakeup-source property) but this gets > USB working again on linux-next. Thanks for testing. And yes, the wakeup interrupts will indeed not be enabled at system suspend unless the wakeup-source property is there. Did you try adding it? Johan