From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2D60C3F68F for ; Thu, 13 Feb 2020 22:43:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B1315218AC for ; Thu, 13 Feb 2020 22:43:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581633805; bh=P8g0JzCda0yX0oXSo8KC7UIvbh71SQLjKYuxOQEknxE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:List-ID:From; b=j7cPT87gimbW4BQ/amxvDeG4tZKNkY7P1OSq3WCpuKl6mLmGFVqjdVMDc0+++YA1I ddvYBZZcuZvUdmyOiuB1hdYWZ8Zd22cTyQz8ztlmoXxDhNXBtgjySvEerHEdUeleBF NAjYilybSrZmum+i77KpBh3h0ye/1GtMA5vFzcx4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727707AbgBMWnZ (ORCPT ); Thu, 13 Feb 2020 17:43:25 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:32875 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727347AbgBMWnZ (ORCPT ); Thu, 13 Feb 2020 17:43:25 -0500 Received: by mail-ot1-f65.google.com with SMTP id b18so7308773otp.0; Thu, 13 Feb 2020 14:43:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Y/I0tTkwJibmul9vKP2bADMtVfoWuV76rC3/FPcX9E4=; b=aNuq3//3MDk4sUxxOQe4nS8vmpJT5vb2AU1rOxevDyKke1x01/KftLnrGEazceydiC QnHUEa+qlw2rjYHXulA04pcSMMcqFhAbQtBCVf/s+FS/AzPUX84chpukYoSd+RYHVB1v mKU1b8ePDFoliOa4X3Lq0bclgGwwamqouLjfWvJxi3nEa7WAdN/zVFD5wjnVB6KhxgBx w5RViK6nntKwmFhHf7Gj7Z1eN9rHejYeOjd8yfs3rPXIWmkickqA9kLuR4K9ZSnG/glI 50Nla5lLbwp6lZZUCdfiegfYYm/i9QznYrIqhwnHBmc9UTiH/6b7NuggeMeTBfeF3tzR QULQ== X-Gm-Message-State: APjAAAVQsZg5dhfvq9N5a4/PRHRuoAJJBufbRUXlxXyMFAvxce0unhQ5 D3lCD3ZY+R3Eom0E/PCBvotVtKoOznlRv6sAfn8= X-Google-Smtp-Source: APXvYqygqKjtDa2NahYmvQ09yEI1RbucOaFU5niv7YahP2CObEy3GlvCokICWQmUDX7aUPfgnNkSzsfK6+GvLzXDiGk= X-Received: by 2002:a9d:67d7:: with SMTP id c23mr15298990otn.262.1581633803551; Thu, 13 Feb 2020 14:43:23 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: "Rafael J. Wysocki" Date: Thu, 13 Feb 2020 23:43:12 +0100 Message-ID: Subject: Re: [PATCH 0/2] ACPI: Tiny power button driver To: Josh Triplett Cc: "Rafael J. Wysocki" , ACPI Devel Maling List , Arjan van de Ven , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 12, 2020 at 12:36 AM Josh Triplett wrote: > > Virtual machines often use an ACPI power button event to tell the > machine to shut down gracefully. > > Provide an extremely lightweight "tiny power button" driver to handle > this event by signaling init directly, rather than running a separate > daemon (such as acpid or systemd-logind) that adds to startup time and > VM image complexity. > > I originally proposed a change to the ACPI power button driver to > introduce an optional path to signal init, but Rafael expressed a > preference to have this as a separate, mutually exclusive driver > instead. The result did come out much simpler, conceptually, with the > added benefit of being able to disable CONFIG_INPUT entirely for a > kernel that exclusively targets cloud/VM systems. > > The first patch in the series just moves HID definitions to > acpi/button.h in preparation for sharing them with the tiny-power-button > driver. The second patch provides the driver itself. > > Josh Triplett (2): > acpi: button: move HIDs to acpi/button.h > acpi: Add new tiny-power-button driver to directly signal init Applied as 5.7 material, thanks!