Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4607956rwd; Sun, 4 Jun 2023 08:47:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5FKpm9UKRzJTRXAtxS5BkW+tOrG9031WjLTkAbtOZU114z3rEutItHob3uUqv2Iwe4UJab X-Received: by 2002:a05:6a20:734f:b0:10a:f8d3:2cf3 with SMTP id v15-20020a056a20734f00b0010af8d32cf3mr1711697pzc.7.1685893644760; Sun, 04 Jun 2023 08:47:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685893644; cv=none; d=google.com; s=arc-20160816; b=cJTw6pTEBA7sSBF/GuWwfqwtf4ReyF8MrsmewtsdXSKiXRMy6URfClnxJvv+bc7mFJ tXWo8FIatiVjN1tosUmm/uYmDy3Hesdw9MALWy4hk5J0AUTA6OuXpCLWvtJGIMNCqfhd b3z9iQy/+4vYT/ELyCOVUuUVUPdlAWpKSbiCHn99q/onMrKM9o6i5vVb9PNmk8YJQuxI i+74GqqBac0WHPoc6P+qbYKaYlAN84g7moO6oZHYno4p4lT4kXbAT90GyKbx6KnaEiJU hBrmFGAOMpU8pqZKNatpgGDcTRTmsCnGz0XG1JieRNaYDVZaJbiB2/mx08bS0QYURrJ0 18nQ== 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 :message-id:date:subject:cc:to:from; bh=i5aqtHVXEXH/Yd7YfDoWd2p4MaaO6NXbpTgsoNZ4jrY=; b=EdGkzGim60OwuZKdNYs81NY7fCHsgGVvsvmxGcKwrOKOTXNOVTn/8w5O4crTh8YrII hCWGYy8l0Arlr3Fm/e+mvLBPsq70vnunfqRTumnYUzZoylMvRYkUQiCGwFk+/hTkCBxv LNRoRKku0bpRge2llv766R7anqnV/Os15A96q2u+yQjgDU3PiDXFpFSm/AgyRsLOu4xX rdwYXWJ9Q6DZ50kOsirPL1je2qZpU5MphShvZiJeIhazZkaRZWlYf1Pq3wD6mqc4PsJt ZbhngcP1hf3nTu+YJjNS40INXHUT3xOkdtIHXpp6R/sOaQUaEzG0kfq4ynUpM3hmXuCq XPTA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g2-20020a170902c38200b001a1bfe84f8dsi4001568plg.611.2023.06.04.08.47.11; Sun, 04 Jun 2023 08:47:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230005AbjFDPYr (ORCPT + 99 others); Sun, 4 Jun 2023 11:24:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230493AbjFDPYh (ORCPT ); Sun, 4 Jun 2023 11:24:37 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95CBACA; Sun, 4 Jun 2023 08:24:36 -0700 (PDT) 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 5.2.0) id f4b8a39ed7b90b15; Sun, 4 Jun 2023 17:24:35 +0200 Received: from kreacher.localnet (unknown [195.136.19.94]) (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 9F0EE961C82; Sun, 4 Jun 2023 17:24:34 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Michal Wilczynski Subject: [RFT][PATCH v1 0/4] ACPI: Install notify or event handlers in ACPI button drivers Date: Sun, 04 Jun 2023 17:17:22 +0200 Message-ID: <1847933.atdPhlSkOF@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 195.136.19.94 X-CLIENT-HOSTNAME: 195.136.19.94 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeljedgkeekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepgeffhfdujeelhfdtgeffkeetudfhtefhhfeiteethfekvefgvdfgfeeikeeigfehnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucfkphepudelhedrudefiedrudelrdelgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduleehrddufeeirdduledrleegpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeefpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohepmhhitghhrghlrdifihhltgiihihnshhkihesihhnthgvlhdrtghomh X-DCC--Metrics: v370.home.net.pl 1024; Body=3 Fuz1=3 Fuz2=3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Folks, This series reworks the two ACPI button drivers to install notify or fixed event handlers (depending on the device type) by themselves, so the core code need not take the "fixed event handler for a button driver" case in the general driver notify handler installer. As a bonus, it separates the notify handler in the "generic" button driver into a lid notify handler and a proper button notify handler. It modifies also the core to drop the "fixed event handler for a button driver" case from there (last patch). It works for me, but I would appreciate as much testing of this as possible especially on old hardware. Obviously, it replaces https://lore.kernel.org/linux-acpi/4500594.LvFx2qVVIh@kreacher/T/#m064d4130b57cbcb0ece1bb415fae1465ebc20f42 and its followers to some extent, but I think that it's better to deal with the special case first and then take care of the rest. Thanks!