Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1691281pxb; Fri, 22 Oct 2021 06:01:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbUqPKhhgXISd1VBhrjj40xwqyN8Ws/bJAejgTEcJfLknhi/l2qvSGSzQ/A2S6UvM7Q373 X-Received: by 2002:a17:906:7ac9:: with SMTP id k9mr15396516ejo.411.1634907713466; Fri, 22 Oct 2021 06:01:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634907713; cv=none; d=google.com; s=arc-20160816; b=y+rY4ntyZDPfw0H1wgywXaDDJaZsz/185NyOh5fmf/kgwrDyPeL1StVfrsSIIqVm3j QnqPKliWMjS/OgsfJ/blNuAZF7zubmDC61JDz0/rn7Apg/flE1a/hUPS9nhyfOReWBKt ISneLvC52xbfjBneXp/lYP870jfy6TQkOfzljWyuyYyk+qsCa9eE/ZuMWz/eYK3Aa8nr nDlU86o6yu6DAbq/Uf2axslJDVABL6R951bxnS87lGI2wonFhgNPTb9+roZ0sYE0Gxvs 39yDz6JF/GuoRymncLMFQmV9eJ+xeYkX1z4liFoC0hNV3lLKw02nwiNEDMa+88/yq25l C0iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=sdVW3UDZwK61lxuEJ1bpro4jif3jQr2QR2HEc/tjWM8=; b=jhqlhHnnAiqqkPD4IpPYN2JcZivkaApxe6cI1w8IQA/ut8R8tVOePiVvpbcI5c6/T5 9E8X9aF8HLrm4NJPBApzST0GHAho6VBT3H7wOKnsKY5/QVWZmQJCefYcNIR6WvkMOYDK RRIF/G+l0TWeMybCAqNSmhD4Jn/TKfrFuXpDaSWAviiToJPEGEVzUjpHWGeDoKEiBXQd EtqwK2M+vAtxCAecjO9zLneIm0a7FplYdeFreRojCgUk/D0OiQbzVgkQaZUDT0CDyenP A490xeExkoWMoZ6k7WfZSl4mmqegOO1QUOHg4pfFSXwN9k+x3NUOKAXHtH7Jc5xXK16v p83Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EZ1t7Sxr; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ji10si2924398ejc.8.2021.10.22.06.01.26; Fri, 22 Oct 2021 06:01:53 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EZ1t7Sxr; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232002AbhJVNAk (ORCPT + 99 others); Fri, 22 Oct 2021 09:00:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229925AbhJVNAj (ORCPT ); Fri, 22 Oct 2021 09:00:39 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDB18C061764; Fri, 22 Oct 2021 05:58:21 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id ec8so1411791edb.6; Fri, 22 Oct 2021 05:58:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sdVW3UDZwK61lxuEJ1bpro4jif3jQr2QR2HEc/tjWM8=; b=EZ1t7Sxrf/AR2RQHe2Io3nofGIoyEMedxRDuXeZW3sRr0uYWY5LV8l75w5jLWDeeKI 6cUd6LvLAlhmgM6SdSDEu+jnanWNTQ1UKnOA7Z7OBVoa7OrePjcAZ+ZIm4hxzruOvBMe Bgipn3FntDMtxHTqyfnE/3t2hoUimKKlB+6H3j5lzwTzgdrLDxMUhugew1Cls+CVSHrW xd4RzkeB7gxreJVvZ/HFxgntg9KTtbiWQCe9zSKPFpTdVANPWLtXqHEF+24sU+sKad7m JID86uGa09Ja5zlrFg4HV4wpUTxzUyqDxaGiV6VS8Ffl1G9RpXD6aWm9rTTztVTsHuTF hAVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sdVW3UDZwK61lxuEJ1bpro4jif3jQr2QR2HEc/tjWM8=; b=AI0umt+GwqeecYT0Ykq6yEuRytl/odbH691eb8nVdCqWdBQqm8uOK9dmCet5EFZN+D UaH0zCF1FK8RrcEgiULZOeKY7bU6lheGbh89S3ScsSBCMjVFs3G8Tiu8jP0Ur9NnYA9f fe7czaqeXEyPqAQRm1g1ae2RW03xdtOX77vJQQNIWNMRHXkHxqx6YSuedREjWPKx2JwC StMh3dQxfWa4QV3uU1uX+BszbdFw2VxmDFYu5jVj83B2uboLP+8JaS7rEbxFBejRbGdD ZvXZxOnyLO/xLblhVwQx+vreAb3BbR+FUJQiiUkonxtqwPcFPEEaESzGe3y86F/MrgBv RBjA== X-Gm-Message-State: AOAM531ZtcZdcP/f2wJhOtVIvXkQeaGYY7pMXtRX20JYHbLK1lB1FnCU Pll2KJboVF2VAq3BDQz3BTmKkTg2cgkHk/0clO4= X-Received: by 2002:a17:906:a158:: with SMTP id bu24mr14112090ejb.356.1634907500360; Fri, 22 Oct 2021 05:58:20 -0700 (PDT) MIME-Version: 1.0 References: <20211019160401.8296-1-mario.limonciello@amd.com> In-Reply-To: <20211019160401.8296-1-mario.limonciello@amd.com> From: Andy Shevchenko Date: Fri, 22 Oct 2021 15:57:24 +0300 Message-ID: Subject: Re: [PATCH v3 1/2] ACPI: Add stubs for wakeup handler functions To: Mario Limonciello Cc: Linus Walleij , Basavaraj Natikar , Shyam Sundar S K , "open list:PIN CONTROL SUBSYSTEM" , open list , Nehal Shah , "Rafael J . Wysocki" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 19, 2021 at 7:05 PM Mario Limonciello wrote: Thanks! My comments below. > commit ddfd9dcf270c ("ACPI: PM: Add acpi_[un]register_wakeup_handler()") The commit > 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. ... > +static inline int acpi_register_wakeup_handler( > + int wake_irq, bool (*wakeup)(void *context), void *context) A bit of a strange indentation. Can wake_irq be on the previous line? -- With Best Regards, Andy Shevchenko