Message ID | 20231109004311.2449566-2-bryan.odonoghue@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b129:0:b0:403:3b70:6f57 with SMTP id q9csp138192vqs; Wed, 8 Nov 2023 16:43:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IFYq4jE52m6JLh4C6xL4zC8lwmWv3SSsn3IYxOJhox9SixmyBTXtmddpt5UA8byRpo/B2BE X-Received: by 2002:a05:6a21:6d99:b0:175:7085:ba18 with SMTP id wl25-20020a056a216d9900b001757085ba18mr4179954pzb.58.1699490609716; Wed, 08 Nov 2023 16:43:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699490609; cv=none; d=google.com; s=arc-20160816; b=gKpt/MFKktUuwvUlYe7pOyHKop48Dk5FYBePu4Va77ABRrJXfpUI5zuFo9JFfMz6r0 R0AeQZG83BCP8Nx0lxdniX6RMbGsGdlzBcloBmF5LfNa/TLhT6gEUxIkW4SV6s+Tctqw 6RNtUwRRfdh5vSG7YSEpnZIpLZOMcPx5mPEc5OtVQJl+db8HqCxcbxcBFR2+Q7+6ZCW9 f5tyhQeDDsDntLZkYE3A/BJg4zs8PWSSlJkw41c5sMVlW5hc+hu0ZgdwC8Vg6Z86R2mT pT2KA+3l3+YiraQ1K2LFWmn+G6xvrsLjJvFazBrHDDl7WYYhyliEpz7BMwl71a/Y3nw2 MdkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nHJqLlqe6wRkJrD0GLv7Y/DjDcegCAylpgYGBIqvOCI=; fh=YS31USPgFuh3vD2PodcUtYcONGD7C10TwyxA+pzhmPI=; b=qO8za2cvLlw6gv7SL7/839wa5g05CI2HzMYEFVITQHH3VwCP0jIN0hxGZ809S5OmY6 DTYR/LdappqVfhyKU5Arc42ysIOABCtX5O3Kea6fEqWfH0Zvht+EogDXfvKaA5MuEITu 2Ufar3OGWM6fW60cUGCLU0nh69dUWBBW58kL8CHkJIBd83e50kFrq3FxTDdvKEHWDkEM r2Sl6ddaSElHiZkfq9Q3qu293DWTK3gN88TL7V9YfEvW21wD02OWAZmC8aAc2M1XumiW 4Eu4CjJ7XCadLHDENv8zmEw9yIN/sxjLxtfpmC1PyP+PSl+pQVYHb6dcUsuj0gU3Mil+ FPJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RAxkPt55; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id e5-20020a170902744500b001cc15d1ac7csi3340448plt.563.2023.11.08.16.43.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 16:43:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RAxkPt55; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D841B822CAED; Wed, 8 Nov 2023 16:43:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231523AbjKIAnU (ORCPT <rfc822;jaysivo@gmail.com> + 32 others); Wed, 8 Nov 2023 19:43:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231585AbjKIAnS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 8 Nov 2023 19:43:18 -0500 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40C5D1992 for <linux-kernel@vger.kernel.org>; Wed, 8 Nov 2023 16:43:16 -0800 (PST) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-40891d38e3fso1676095e9.1 for <linux-kernel@vger.kernel.org>; Wed, 08 Nov 2023 16:43:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699490594; x=1700095394; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nHJqLlqe6wRkJrD0GLv7Y/DjDcegCAylpgYGBIqvOCI=; b=RAxkPt55ER7DW9zvGVb+L8lWXv9xBeT/T68tuEN4RL/R1JupQZtZuINAe+KmmIwoAp b79oVmqscYX2vypU3N8V0V0cbDVo24GyNmSQZyz9hV+2hZAtpfATJPmknH9lWxe+68T9 BxhrGPwSOPLH7xL+Rr+2Se0hr29oL/SV7VrvrafGal7+R6QBl7TTl/QmKh2cI5Dlwb8v Qg2NzoXXbx6v5aA5WNM7BR0z6UaMsbmcZNT5xCti+iwmuOeXTFiXU63SFY7aup876q1N LdsJulZdXBS9yUPcbZxc/QOrnDk9iPlcTgPUcbkKUpofnQtmFBwpfs7Odtof947fhAe3 7asg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699490594; x=1700095394; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nHJqLlqe6wRkJrD0GLv7Y/DjDcegCAylpgYGBIqvOCI=; b=kZPNLTbLQK4mNhXOfd/lyjYNcEhkAH0czrUXznIvnL+NCJ4pIVJnUL73SrKs60U/06 93NZbNCUrOhKd6B34cx87GzHVhvNUIpLGQZy5zpYGNc1dWKvisNzFmpzivbTrUzd20iE AossOwN7FQFyyTCK/KlwZ2fEHW7ewmoGxj8Oq49+50amaNcpvn2urrpadGasPPu6ZvDc emVDEgNtGYu3sNO50BhjzoKecBpPAntyTYQlZ7wImuCgGz6WzKyfDm2K1mHhOYHZy6lB NSe+uSkfRU8T6t/Jt3lobCpRAjDp9zmugOsGsg8LgeSMko5hVJDrXwQP73f9wVa0EWH2 AZUQ== X-Gm-Message-State: AOJu0Yxm4s23lEQzynmWPdNcGzuLXlESroQ2cGa3s38gPRzHed9bo4A9 kmZe9POx+YyUP1fpVZDXNezxIw== X-Received: by 2002:a05:6000:4014:b0:32d:b991:1a71 with SMTP id cp20-20020a056000401400b0032db9911a71mr2756601wrb.0.1699490594797; Wed, 08 Nov 2023 16:43:14 -0800 (PST) Received: from sagittarius-a.nxsw.local ([37.228.218.3]) by smtp.gmail.com with ESMTPSA id y18-20020a5d4ad2000000b00323287186aasm6099238wrs.32.2023.11.08.16.43.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 16:43:14 -0800 (PST) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, dmitry.baryshkov@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bryan.odonoghue@linaro.org Subject: [PATCH 1/1] arm64: dts: qcom: sm8250: Add wakeup-source to usb_1 and usb_2 Date: Thu, 9 Nov 2023 00:43:11 +0000 Message-ID: <20231109004311.2449566-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231109004311.2449566-1-bryan.odonoghue@linaro.org> References: <20231109004311.2449566-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 08 Nov 2023 16:43:28 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782045065605794950 X-GMAIL-MSGID: 1782045065605794950 |
Series |
Switch on USB as a wakeup source on sm8250
|
|
Commit Message
Bryan O'Donoghue
Nov. 9, 2023, 12:43 a.m. UTC
To test out a different GDSC change I wanted to have a USB keypress resume
a system in suspend.
Adding wakeup-source to usb_1 and usb_2 "just works" for me on rb5.
Consistent with qcm2290 and sa8775p add wakeup-source to the dtsi for the
SoC.
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
---
arch/arm64/boot/dts/qcom/sm8250.dtsi | 2 ++
1 file changed, 2 insertions(+)
Comments
On 11/9/23 01:43, Bryan O'Donoghue wrote: > To test out a different GDSC change I wanted to have a USB keypress resume > a system in suspend. > > Adding wakeup-source to usb_1 and usb_2 "just works" for me on rb5. > Consistent with qcm2290 and sa8775p add wakeup-source to the dtsi for the > SoC. > > Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> > --- Maybe we could make it the default in qcom glue somehow.. Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Konrad
diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index e43a16df4c7ec..c2d929e62c840 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -3878,6 +3878,7 @@ usb_1: usb@a6f8800 { "dp_hs_phy_irq"; power-domains = <&gcc USB30_PRIM_GDSC>; + wakeup-source; resets = <&gcc GCC_USB30_PRIM_BCR>; @@ -3942,6 +3943,7 @@ usb_2: usb@a8f8800 { "dp_hs_phy_irq"; power-domains = <&gcc USB30_SEC_GDSC>; + wakeup-source; resets = <&gcc GCC_USB30_SEC_BCR>;