Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1686671pxb; Fri, 22 Oct 2021 05:56:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLuRI0jjJXIjWF12p4fnnfsy7S13moa6H+5GkQwjGmYrw7C81sLuJR5o+2x+0kcBTcUi/5 X-Received: by 2002:a17:907:1b25:: with SMTP id mp37mr15482170ejc.140.1634907411035; Fri, 22 Oct 2021 05:56:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634907411; cv=none; d=google.com; s=arc-20160816; b=q2/Wck8Tc8td6fH4GT4QQi+4xUQrKl4it9CN8Dxy0+Jz1tp5lRAz9LJeAmTiknCfiL Owrah0GnJc96c/6oBhnkNqTShqNXHler5Y8LxCk5/sSrOc+LnFNlhJARE0Dfq85T3PbW 4zfXRXO/jpKcIYSGQwvm+DZm8jpZE/NxCfzK+rmuk1mGDG6sF7AeO5EDNUeS4Ant6yQW k3+ORA29va6LslPr/gPRKXCHtim0VtDtJ6UdlRdk1FH5m6KrZFvg4PsRx91YIKaXLNzF x8FZBJ+0iAmPQ27ayeB5B3pMdAFO0eTjWZuXGtwPDElBbuBOGQCG3lnzOCzfjWJba227 sBSw== 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; bh=GYP+RNyBqBuOdod1if5TYy7V3dvSsNBqml4X5eFZpc0=; b=uRxSfGcyv/485UWVDfvM5res32O9YuBecfBg1OVDXuvBMlg1brIWc4mWTF/E4CIfWo gJuf7/xtSEYET3cTX0wIZvfcQPZWERyEKAPD4g5QxdMseqItdS02EgSwOOkn3O0qvNZT GXXe4GdhpGUAT/pvXbxxZ+Vb8euEdxfDcwvaORAQ9OU783VuHW0pXigREXzHVdbVX40U aezc2JTXwX0n4xEqDEBaolwPm0WFkecqtnYivRPCt6M+b6HX3pfyEZeRsS7rdBjRifGS pw3Ee6/BQhF1XkqdNqpjeA2B4KtgaaaIFkBULeSdOYh/LxoRURD/f5OjITKCqOk8nzKj bghA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gb9si12779920ejc.301.2021.10.22.05.56.27; Fri, 22 Oct 2021 05:56:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231586AbhJVM4s (ORCPT + 99 others); Fri, 22 Oct 2021 08:56:48 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:54480 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229842AbhJVM4q (ORCPT ); Fri, 22 Oct 2021 08:56:46 -0400 Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 3.0.0) id 5dd49476cd0eb2b1; Fri, 22 Oct 2021 14:54:27 +0200 Received: from kreacher.localnet (unknown [213.134.175.233]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by v370.home.net.pl (Postfix) with ESMTPSA id D821B66A92E; Fri, 22 Oct 2021 14:54:26 +0200 (CEST) From: "Rafael J. Wysocki" To: Mario Limonciello Cc: Linus Walleij , Basavaraj Natikar , Shyam Sundar S K , "open list:PIN CONTROL SUBSYSTEM" , open list , Nehal Shah , Mario Limonciello , Linux ACPI Subject: Re: [PATCH v3 1/2] ACPI: Add stubs for wakeup handler functions Date: Fri, 22 Oct 2021 14:54:26 +0200 Message-ID: <2615562.mvXUDI8C0e@kreacher> In-Reply-To: <20211019160401.8296-1-mario.limonciello@amd.com> References: <20211019160401.8296-1-mario.limonciello@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 213.134.175.233 X-CLIENT-HOSTNAME: 213.134.175.233 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvtddrudeljedgleelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkjghfggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpedvjeelgffhiedukedtleekkedvudfggefhgfegjefgueekjeelvefggfdvledutdenucfkphepvddufedrudefgedrudejhedrvdeffeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvudefrddufeegrddujeehrddvfeefpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhrtghpthhtohepmhgrrhhiohdrlhhimhhonhgtihgvlhhlohesrghmugdrtghomhdprhgtphhtthhopehlihhnuhhsrdifrghllhgvihhjsehlihhnrghrohdrohhrghdprhgtphhtthhopeeurghsrghvrghrrghjrdfprghtihhkrghrsegrmhgurdgtohhmpdhrtghpthhtohepufhhhigrmhdqshhunhgurghrrdfuqdhksegrmhgurdgtohhmpdhrtghpthhtoheplhhinhhugidqghhpihho sehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheppfgvhhgrlhdqsggrkhhulhgthhgrnhgurhgrrdfuhhgrhhesrghmugdrtghomhdprhgtphhtthhopehlihhnuhigqdgrtghpihesvhhgvghrrdhkvghrnhgvlhdrohhrgh X-DCC--Metrics: v370.home.net.pl 1024; Body=9 Fuz1=9 Fuz2=9 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CC: linux-acpi On Tuesday, October 19, 2021 6:04:00 PM CEST Mario Limonciello wrote: > commit ddfd9dcf270c ("ACPI: PM: Add acpi_[un]register_wakeup_handler()") > added new functions for drivers to use during the s2idle wakeup path, but > didn't add stubs for when CONFIG_ACPI wasn't set. > > Add those stubs in for other drivers to be able to use. > > Fixes: ddfd9dcf270c ("ACPI: PM: Add acpi_[un]register_wakeup_handler()") > Signed-off-by: Mario Limonciello > --- > include/linux/acpi.h | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/include/linux/acpi.h b/include/linux/acpi.h > index 72e4f7fd268c..b31bcc0f4c89 100644 > --- a/include/linux/acpi.h > +++ b/include/linux/acpi.h > @@ -976,6 +976,14 @@ static inline int acpi_get_local_address(acpi_handle handle, u32 *addr) > return -ENODEV; > } > > +static inline int acpi_register_wakeup_handler( > + int wake_irq, bool (*wakeup)(void *context), void *context) > +{ > + return -EINVAL; -ENOTSUPP ? > +} > +static inline void acpi_unregister_wakeup_handler( > + bool (*wakeup)(void *context), void *context) { } > + > #endif /* !CONFIG_ACPI */ > > #ifdef CONFIG_ACPI_HOTPLUG_IOAPIC >