From patchwork Mon Jul 11 15:40:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 12913936 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2E843C43334 for ; Mon, 11 Jul 2022 15:41:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VFT3vs9huqJICsIXwbhyNOUem5DhHhYTtcdkwxZ1jqo=; b=0u+4s/923ixgGz tFWUUbgAgbba3c1E42OuMPw//+k9eBJujN7JYCcEWXoQmPeOGYNNBxFIlDSXJtKCHxMk/bfAi4NlV 9TJH+F2EzJInrrnBQgK2rYnsJjlsXumzyjdIKMmXbaVxN3sqqQ2pnIX0jOTVZkfUX+G6jQHa3LBAJ aH3OTlunn2C0PsLzvj4PcU7U1lSmDCwtXN98/pkki0c6obFgX94DxGsfpNVkYkNuRqdoJfb3o+H6B SXOeiLjpm7G7BkaD3VfXRiDSOtqfRs7B6IDECxlxBV8KICI2L5yi0JbIQ/DL+VFSDvBIeLYwOVLlZ gwzGOW/drUSf1FDzWF1g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oAvWu-002vUH-E6; Mon, 11 Jul 2022 15:41:00 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oAvWc-002vJT-EZ for linux-arm-kernel@lists.infradead.org; Mon, 11 Jul 2022 15:40:43 +0000 Received: by mail-wr1-x434.google.com with SMTP id v14so7542901wra.5 for ; Mon, 11 Jul 2022 08:40:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ez9+tjVgr9xPqmbVh6v+qKgZ5GQQjYM0LVlLWfjutJs=; b=JD5XMAOHWrsVkWSLdsWZUqKoqjXpza6DqI0JMspe9IxEC9XBRtg19sHw0aTM3YR2z/ e7MXm4BMfigtA+jY6mhOQF2wYOXn2eoULMJ5lonySUhrGPrMNW7BQvkctIdaOqc6VLr+ CpK++yYbEXM3SQX7dgnsXVAKhIWow/foWvvJtPp/x5aV9XnM5dQVM1ZVsuNPt+1Vbl1q RpJIRVqXpljY+JXkkV1ghLfisqn9Y7roruQ5o19SrsGXQqSNQzAc33HfvjObxypRleeB ht1jgJE4PptPBpWX36ZFIMRB5MdANl6Usz7Rjp8qvpEhH/ZFFPbq/pRxDfP4vcwkF0j1 N0Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ez9+tjVgr9xPqmbVh6v+qKgZ5GQQjYM0LVlLWfjutJs=; b=xLPUcXoQroXDzAS4hf2Eirfn8bviJyyq6dEOiaM4oeL5C5bf34UugqT8YxX/ieY5Qh NDk9O9HC/SWooTzjKAilTTUWMJjKL47JajJz8ZTip430efCwYiXnSemH2RfYsLI2I2GQ DXl7gd6fh8Qtlf8yK/fWnuReMUjPV11c3XMEAP4OlbsqExV6h5zxVgc1zGHhm1roGkEH wI1GnmYuTP6Unx2+KAJ61aY+8AoWhJVu8WDX3bVRIzPwPSFxFILTPXlsWax8xqDlmO/Z 8bLPxzLo7EznKq3TPzAyZPeQZ6OgtzvOtLIJSJS0zNHEDdJsDyYTlZJqNW1z4fhlVFQZ csOg== X-Gm-Message-State: AJIora+eBp2CohH5v/tIwWrNv1e+sSOBh0KaGdzXDxIUwrDVDYC/dfac 5Mb1+EygMi3G6sENeZIkrLvXq85iB/E= X-Google-Smtp-Source: AGRyM1v2Lwn8k/6H6KzX8TdTfHsnUve19NS2WHE5hrP9R/YpJXpoaZsbnOR/RIYJKxLOP5/Qj95F+A== X-Received: by 2002:a05:6000:2a4:b0:21d:8646:37f6 with SMTP id l4-20020a05600002a400b0021d864637f6mr16832102wry.661.1657554038723; Mon, 11 Jul 2022 08:40:38 -0700 (PDT) Received: from localhost (p200300e41f12c800f22f74fffe1f3a53.dip0.t-ipconnect.de. [2003:e4:1f12:c800:f22f:74ff:fe1f:3a53]) by smtp.gmail.com with ESMTPSA id j9-20020a05600c410900b003a02cbf862esm6955667wmi.13.2022.07.11.08.40.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 08:40:37 -0700 (PDT) From: Thierry Reding To: Thierry Reding , Jon Hunter Cc: JC Kuo , Marc Zyngier , linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/3] soc/tegra: pmc: Add USB port wake events for Tegra194 Date: Mon, 11 Jul 2022 17:40:31 +0200 Message-Id: <20220711154031.689715-3-thierry.reding@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220711154031.689715-1-thierry.reding@gmail.com> References: <20220711154031.689715-1-thierry.reding@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220711_084042_516806_82DD8EE9 X-CRM114-Status: GOOD ( 10.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Thierry Reding Tegra194 supports waking up from suspend when activity is detected on any of the USB ports. Add these wake events so that the system can be woken on such activity. Signed-off-by: Thierry Reding --- drivers/soc/tegra/pmc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/soc/tegra/pmc.c b/drivers/soc/tegra/pmc.c index 48286bc59f46..03d614acd521 100644 --- a/drivers/soc/tegra/pmc.c +++ b/drivers/soc/tegra/pmc.c @@ -3776,6 +3776,13 @@ static const struct tegra_wake_event tegra194_wake_events[] = { TEGRA_WAKE_IRQ("pmu", 24, 209), TEGRA_WAKE_GPIO("power", 29, 1, TEGRA194_AON_GPIO(EE, 4)), TEGRA_WAKE_IRQ("rtc", 73, 10), + TEGRA_WAKE_SIMPLE("usb3-port-0", 76), + TEGRA_WAKE_SIMPLE("usb3-port-1", 77), + TEGRA_WAKE_SIMPLE("usb3-port-2-3", 78), + TEGRA_WAKE_SIMPLE("usb2-port-0", 79), + TEGRA_WAKE_SIMPLE("usb2-port-1", 80), + TEGRA_WAKE_SIMPLE("usb2-port-2", 81), + TEGRA_WAKE_SIMPLE("usb2-port-3", 82), }; static const struct tegra_pmc_soc tegra194_pmc_soc = {